Document doesn't fill the page

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
steve.thresher
User
Posts: 80
Joined: Wed Aug 26, 2009 8:42 am

Document doesn't fill the page

Post by steve.thresher » Fri Dec 18, 2009 4:59 pm

On a couple of workstations the documents generated only fill about 75% of the page. This is happening for both version 3 and version 4 drivers. If we use the printer in another application such as outlook or excel the document fills the page as expected. The same result can be achieved manually by using the scaling options in the printer settings.

We're using the virtual printer method with version 4 and the only options we specify are as follows:

if (SUCCEEDED(CLSIDFromProgID(L"PXCComLib.CPXCControlEx",&clsid)))
m_pFactory = PXC::IPXCControlExPtr(__uuidof(PXC::CPXCControlEx));

m_pPrinter = m_pFactory->Printer[L"", L"PDF-XChange 4.0", L"<licence>", L"<key>"];

m_pPrinter->ResetDefaults();
m_pPrinter->Option[L"Save.SaveType"] = L"Save";
m_pPrinter->Option[L"Save.ShowSaveDialog"] = L"No";
m_pPrinter->Option[L"Save.File"] = m_pdf_path.GetString();
m_pPrinter->Option[L"Save.WhenExists"] = L"Overwrite";
m_pPrinter->Option[L"Save.RunApp"] = FALSE;
m_pPrinter->Option[L"Overlay.Enabled"] = FALSE;
m_pPrinter->Option[L"Compression.Graphics"] = TRUE;
m_pPrinter->Option[L"Compression.Text"] = TRUE;
m_pPrinter->Option[L"Fonts.EmbedAll"] = FALSE;
m_pPrinter->Option[L"Saver.ShowProgress"] = FALSE;
m_pPrinter->ApplyOptions(0);

Any ideas why the document generated doesn't fill the whole page?

John - Tracker Supp
Site Admin
Posts: 8204
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Re: Document doesn't fill the page

Post by John - Tracker Supp » Fri Dec 18, 2009 9:42 pm

Moved to the correct forum for Developers questions.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

steve.thresher
User
Posts: 80
Joined: Wed Aug 26, 2009 8:42 am

Re: Document doesn't fill the page

Post by steve.thresher » Tue Dec 22, 2009 9:49 am

I've added an example document to show the problem. Anybody got any thoughts on this one?
Attachments
Print Quotation OK.zip
The same document created on a different workstation with the same driver.
(12.26 KiB) Downloaded 131 times
Print Quotation.zip
The content of the this document should fill the entire page and does if created on another workstation.
(12.36 KiB) Downloaded 140 times

Ivan - Tracker Software
Site Admin
Posts: 3620
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Document doesn't fill the page

Post by Ivan - Tracker Software » Tue Dec 22, 2009 7:22 pm

From which application are you printing ?
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

steve.thresher
User
Posts: 80
Joined: Wed Aug 26, 2009 8:42 am

Re: Document doesn't fill the page

Post by steve.thresher » Tue Dec 22, 2009 7:52 pm

It's our own application. Is there an option I can set to force the scaling to 100%?

Ivan - Tracker Software
Site Admin
Posts: 3620
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Document doesn't fill the page

Post by Ivan - Tracker Software » Thu Dec 24, 2009 8:30 am

As with any other printers, you need to set dmScale field of DEVMODE structure to 100, and add DM_SCALE flag into dmFields field of this structure.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

axisfirst
User
Posts: 1
Joined: Tue Dec 22, 2009 10:48 am

Re: Document doesn't fill the page

Post by axisfirst » Thu Dec 24, 2009 12:58 pm

That doesn't make any difference. Do you have any other suggestions?

Ivan - Tracker Software
Site Admin
Posts: 3620
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Document doesn't fill the page

Post by Ivan - Tracker Software » Thu Dec 24, 2009 1:46 pm

Please send me .tmp file which is created by the driver during printing (but please from V4 driver, not from V3).
How to get these file please see this topic:
http://www.tracker-software.com/forum3/ ... .php?t=800

Also, what is of interest: 0.75 = 72 / 96 where 72 is points per inch, and 96 is a default screen DPI.
Maybe there are some mistake in your application with the co-ordinates calculations?
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

steve.thresher
User
Posts: 80
Joined: Wed Aug 26, 2009 8:42 am

Re: Document doesn't fill the page

Post by steve.thresher » Wed Dec 30, 2009 9:54 am

Looks like you might be onto something with you DPI idea. I've tested the prints while using the windows "large fonts" option and that produces the same result. I've not been able to check with the affected workstations yet to determine if they are set that way as the users are currently on holiday. We're also trying to collect the temporary files requested.

John - Tracker Supp
Site Admin
Posts: 8204
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Re: Document doesn't fill the page

Post by John - Tracker Supp » Wed Dec 30, 2009 2:16 pm

Thanks Steve,

please let us have the extra info and files when you can.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

steve.thresher
User
Posts: 80
Joined: Wed Aug 26, 2009 8:42 am

Re: Document doesn't fill the page

Post by steve.thresher » Mon Jan 04, 2010 4:40 pm

I've now had chance to check the affected workstations and they are using large fonts so the problem is entirely with our software which means you can consider this issue closed. Thankyou very much for your assistance, the DPI suggestion was a great help.

John - Tracker Supp
Site Admin
Posts: 8204
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Re: Document doesn't fill the page

Post by John - Tracker Supp » Mon Jan 04, 2010 4:56 pm

Excellent - thanks Steve,
Nice to have it off the agenda for the new year :)
cheers
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply