Free Support Forum - aspose.com

Page not diplaying the correct PageSize


Hi,

I am trying to save a word doc as a pdf and need it printed in the A4 format. I use the following code

Aspose.Words.Document doc = new Aspose.Words.Document(path + "Interested.docx");

foreach (Aspose.Words.Section section in doc)
section.PageSetup.PaperSize = PaperSize.Letter;

doc.Save(path + "aa.pdf", Aspose.Words.SaveFormat.Pdf);


But when i check the pdf it always displays it in the Letter format. How do i fix it?

Regards,

Pooja

Hi Pooja,


Thanks for your inquiry.

In case you are using an older version of Aspose.Words, I would suggest you please upgrade to the latest version (v13.2.0) from here and let us know how it goes on your side. If the problem still remains, please attach your input Word document here for testing. I will investigate the issue on my side and provide you more information.