Click or drag to resize

Resizing PDF Pages

PdfResizeManager places the pages of an existing PDF document on pages of another size, orientation and margins - for example an A4 document on US Letter - scaling and aligning the content. Links, bookmarks, form fields, attachments and the document information go with the pages.

Resizing a document
using ExpertPdf.Anywhere.PdfDocument;
using ExpertPdf.Anywhere.PDFResize;

PdfResizeManager resizer = new PdfResizeManager();
resizer.Load("report-a4.pdf");

resizer.PageSize = PageSize.Letter;
resizer.PageOrientation = ExpertPdf.Anywhere.HtmlToPdf.PDFPageOrientation.Portrait;
resizer.PageMargins = new Margins(36);
resizer.AllowScale = true;
resizer.KeepAspectRatio = true;
resizer.HorizontalAlign = HorizontalAlign.Center;
resizer.VerticalAlign = VerticalAlign.Top;

resizer.Save("report-letter.pdf");
resizer.Close();
Options
See Also

Other Resources

Document Class