SaveToFile Produces A4 PDF from Letter Source

Discussions about PDF management.
Post Reply
blewis
Posts: 38
Joined: Wed May 18, 2011 4:28 am

SaveToFile Produces A4 PDF from Letter Source

Post by blewis » Sat Oct 11, 2014 2:40 am

I have some particular PDF files which are producing unexpected results when saving. These PDFs were produced using another .Net library (Syncfusion DocIO) which takes an MS Word document and converts it to PDF. The resulting PDF looks fine and the document properties in Acrobat Reader show 8.5x11 (US Letter). When I load this PDF from file and output the dimensions (using GetPageWidth / GetPageHeight) to the console it properly shows 8.5 x 11. Then, for purposes of this test, I just directly save the file to another location without doing any other transformation (using SaveToFile). That resulting PDF is then in the A4 size (8.26 x 11.69).

I cannot explain why this is happening and it doesn't happen with other PDFs. Since I cannot attach PDFs on the forum, here is a link to the PDF in question. If you have any insight into this, it would be appreciated.

https://drive.google.com/file/d/0B5KmhL ... sp=sharing

Thanks,
Bryan

delbeke
Posts: 89
Joined: Wed Oct 31, 2012 5:07 pm

Re: SaveToFile Produces A4 PDF from Letter Source

Post by delbeke » Fri Oct 17, 2014 9:50 am

Hi Bryan,

Sorry I can not reproduce the issue.

Could you specify the version your GdPicture and provide a code snippet reproducing the problem?

Jean-Luc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest