Conversion from Word to PDF, problem with paper size setting

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: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

haviital
User
Posts: 11
Joined: Mon Oct 07, 2013 11:23 am

Conversion from Word to PDF, problem with paper size setting

Post by haviital »

Hi,

we are using your product integrated in our document management product. Our customer has reported that when converting Word to PDF (using PDF XChange ) the paper size is alwys A4, even if the souce Word document is done in Letter paper size. This makes e.g. legal documents to look bad.
A couple of questions for you:

1) If the paper size is not explicitely set, what is the default value? Is there some PDFXChange default value or is it using some windows system default value? How can that default be affected by the end user.

2) How can we alter the paper size in code? There a some setting we tweak like this:

Code: Select all

m_spPrinter->put_Option( CComBSTR( L"Save.File" ), CComVariant( szDstFilename ) );

But I have not found anything related to paper size in the documentation.

Br,
Hannu Viitala
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Conversion from Word to PDF, problem with paper size set

Post by Stefan - PDF-XChange »

Hi Hannu Viitala,

Please ask your customer to Open word and go to File -> Options -> Advanced -> Print
and check whether the "Scale Content for A4 or 8.5 x 11'' paper sizes" checkbox is on.
With this turned on Word will detect the regional settings of Windows and always force A4 for Europe and Letter for America when printing, so it should be turned off.

Regards,
Stefan