Page 1 of 1

Document doesn't fill the page

Posted: Fri Dec 18, 2009 4:59 pm
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?

Re: Document doesn't fill the page

Posted: Fri Dec 18, 2009 9:42 pm
by John - Tracker Supp
Moved to the correct forum for Developers questions.

Re: Document doesn't fill the page

Posted: Tue Dec 22, 2009 9:49 am
by steve.thresher
I've added an example document to show the problem. Anybody got any thoughts on this one?

Re: Document doesn't fill the page

Posted: Tue Dec 22, 2009 7:22 pm
by Ivan - Tracker Software
From which application are you printing ?

Re: Document doesn't fill the page

Posted: Tue Dec 22, 2009 7:52 pm
by steve.thresher
It's our own application. Is there an option I can set to force the scaling to 100%?

Re: Document doesn't fill the page

Posted: Thu Dec 24, 2009 8:30 am
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.

Re: Document doesn't fill the page

Posted: Thu Dec 24, 2009 12:58 pm
by axisfirst
That doesn't make any difference. Do you have any other suggestions?

Re: Document doesn't fill the page

Posted: Thu Dec 24, 2009 1:46 pm
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:
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?

Re: Document doesn't fill the page

Posted: Wed Dec 30, 2009 9:54 am
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.

Re: Document doesn't fill the page

Posted: Wed Dec 30, 2009 2:16 pm
by John - Tracker Supp
Thanks Steve,

please let us have the extra info and files when you can.

Re: Document doesn't fill the page

Posted: Mon Jan 04, 2010 4:40 pm
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.

Re: Document doesn't fill the page

Posted: Mon Jan 04, 2010 4:56 pm
by John - Tracker Supp
Excellent - thanks Steve,
Nice to have it off the agenda for the new year :)
cheers