Aspose.Words document saving to PDF with print default presets


I’m trying to create PDF document report using docx as a template

After saving to PDF when I’m trying to print the PDF document in Adobe Acrobat Reader default settings of printer are set to the Letter mode

Is there any approach to set default printer settings for the created document

docx template page size is set to A4


Hi there,

Thanks for your inquiry. You can change the paper size of document using PageSetup.PaperSize. Please check the following code example.

However, you can not change the Adobe Acrobat Reader default settings of printer using Aspose.Words. This setting is related to Adobe Acrobat Reader.

Moreover, you can print the document after changing the paper size using Aspose.Words. Document.Print prints the whole document to the default printer.

Document doc = new Document(MyDir + @"input.docx");
foreach (Section section in doc.Sections)
    section.PageSetup.PaperSize = PaperSize.A4;
// Save the document to PDF
doc.Save(MyDir + @"output.pdf", SaveFormat.Pdf);