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, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

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

Document doesn't fill the page

Post by steve.thresher »

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?
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Document doesn't fill the page

Post by John - Tracker Supp »

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: 81
Joined: Wed Aug 26, 2009 8:42 am

Re: Document doesn't fill the page

Post by steve.thresher »

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 193 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 203 times
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
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 »

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: 81
Joined: Wed Aug 26, 2009 8:42 am

Re: Document doesn't fill the page

Post by steve.thresher »

It's our own application. Is there an option I can set to force the scaling to 100%?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
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 »

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 »

That doesn't make any difference. Do you have any other suggestions?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
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 »

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:
https://forum.pdf-xchange.com/ ... .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: 81
Joined: Wed Aug 26, 2009 8:42 am

Re: Document doesn't fill the page

Post by steve.thresher »

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.
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Document doesn't fill the page

Post by John - Tracker Supp »

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: 81
Joined: Wed Aug 26, 2009 8:42 am

Re: Document doesn't fill the page

Post by steve.thresher »

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.
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Document doesn't fill the page

Post by John - Tracker Supp »

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