Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to customize PDF print output

$
0
0
You can change print settings for each printed page in the PdfDocumentProcessor.PrintPageand PdfDocumentProcessor.QueryPageSettings event handlers.

In this example the second document page is printed in landscape size using the PdfQueryPageSettingsEventArgs.PageSettings.Landscape property when the PdfDocumentProcessor.QueryPageSettings event is handled.

This example also shows how to modify graphics used to paint the printed page by drawing a picture on each printed page when the DrawImage method is called. To access graphics API  the PdfPrintPageEventArgs.Graphics property is used in the PdfDocumentProcessor.PrintPage event handler.

Viewing all articles
Browse latest Browse all 7205

Trending Articles