Document doesn't fill the page
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- User
- Posts: 81
- Joined: Wed Aug 26, 2009 8:42 am
Document doesn't fill the page
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?
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?
-
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
Re: Document doesn't fill the page
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
Best regards
Tracker Support
http://www.tracker-software.com
-
- User
- Posts: 81
- Joined: Wed Aug 26, 2009 8:42 am
Re: Document doesn't fill the page
I've added an example document to show the problem. Anybody got any thoughts on this one?
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 3550
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Document doesn't fill the page
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.
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.
-
- User
- Posts: 81
- Joined: Wed Aug 26, 2009 8:42 am
Re: Document doesn't fill the page
It's our own application. Is there an option I can set to force the scaling to 100%?
-
- Site Admin
- Posts: 3550
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Document doesn't fill the page
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.
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.
-
- User
- Posts: 1
- Joined: Tue Dec 22, 2009 10:48 am
Re: Document doesn't fill the page
That doesn't make any difference. Do you have any other suggestions?
-
- Site Admin
- Posts: 3550
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Document doesn't fill the page
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?
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.
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.
-
- User
- Posts: 81
- Joined: Wed Aug 26, 2009 8:42 am
Re: Document doesn't fill the page
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.
-
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
Re: Document doesn't fill the page
Thanks Steve,
please let us have the extra info and files when you can.
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
Best regards
Tracker Support
http://www.tracker-software.com
-
- User
- Posts: 81
- Joined: Wed Aug 26, 2009 8:42 am
Re: Document doesn't fill the page
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.
-
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
Re: Document doesn't fill the page
Excellent - thanks Steve,
Nice to have it off the agenda for the new year
cheers
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
Best regards
Tracker Support
http://www.tracker-software.com