Skip to content

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

License

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)