DevExpress-Examples / pdf-document-api-customize-pdf-print-output

Customize print output and specify settings for a specific document page.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Files to look at:

PDF Document API - Customize PDF Print Output

This example shows how to customize the print output and change settings for a page to be printed. 

To specify the output to print, handle PdfDocumentProcessor.PrintPage event and use the PdfPrintPageEventArgs.Graphics property. For example, to draw an image on each page, call the Graphics.DrawImage method.

You can print each document page using different page settings. For example, to print the second page in landscape size set the PdfQueryPageSettingsEventArgs.PageSettings.Landscape property to true when the PdfDocumentProcessor.QueryPageSettings event is handled.

Files to Look At

About

Customize print output and specify settings for a specific document page.

License:Other


Languages

Language:Visual Basic .NET 50.8%Language:C# 49.2%