Scaling contents

In my software I use a lot of word templates in A4 format which will populated by using Gembox.Document. I am looking for a simple way to scale the document content to the appropriate paper size when printing or creating a PDF. In Gembox.PDF there is a scaling option available.

Currently I use the Gembox.Document version 35.

Thanks

Hi,

With GemBox.Document, you just need to change the Section.PageSetup.PaperType property.
For example, try this:

var document = DocumentModel.Load("input.docx");

foreach (var section in document.Sections)
    section.PageSetup.PaperType = PaperType.A3;

document.Save("output.pdf");

Does this solve your issue?

Regards,
Mario