We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Page size problem when converting DOC to PDF directly

Hi, I apply the latest method of converting Word document to PDF and the PDF page size is always 8.5 by 14 in. Is there a way to set the page size? Thanks.

MemoryStream ms = new MemoryStream();
doc.Save(ms, Aspose.Words.SaveFormat.AsposePdf);

Hi

Thanks for your inquiry. You can use PageSetup to specify size of page. Please see the following link for more information:

Hope this helps.

Best regards.

Hi,

The concern here is. Why isnt Doc to PDF conversion honoring the original documents’s paper size. I have a document which was A4, but the converted PDF is always Letter.

This appears like a bug to me.

Thanks !
Arun

Hi Arun,

Thanks for your inquiry. Could you please attach your input Word document here for testing? I will investigate the issue on my side and provide you more information.