Page Scaling

To scale a page, use one of the PageScaling child classes. Derived classes include:

The following two examples demonstrate first using PercentagePageScaling and then AutoPageScaling.

Percentage Page Scaling

This example demonstrates scaling a PDF page by a specific scaling factor. For example, a scaling factor of 0.5 scales the page dimensions by 50%.

PrintJob printJob = new PrintJob(Printer.Default, pdfFilePath);
PercentagePageScaling percentagePageScaling = new PercentagePageScaling(0.5f);
printJob.PrintOptions.Scaling = percentagePageScaling;
printJob.Print();  

Printable Area or Page Edge Scaling

This example demonstrates scaling a print job to the page printable area. Use ScaleTo.PageEdges to scale the print job to page edges.

PrintJob printJob = new PrintJob(Printer.Default, pdfFilePath);
AutoPageScaling autoPageScaling = new AutoPageScaling(ScaleTo.PagePrintableArea, true, true);
printJob.PrintOptions.Scaling = autoPageScaling;
printJob.Print();