[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Collapse]Cross-Platform Core Libraries
 [Expand]DevExpress ORM Tool
 [Expand]DevExpress Data Library
 [Expand]DevExpress Pivot Grid Core Library
 [Expand]Miscellaneous
 [Collapse]API Reference
  [Expand]DevExpress.Data
  [Expand]DevExpress.Data.Browsing
  [Expand]DevExpress.Data.Browsing.Design
  [Expand]DevExpress.Data.Camera
  [Expand]DevExpress.Data.Controls
  [Expand]DevExpress.Data.Controls.ExpressionEditor
  [Expand]DevExpress.Data.Entity
  [Expand]DevExpress.Data.Filtering
  [Expand]DevExpress.Data.Filtering.Exceptions
  [Expand]DevExpress.Data.Filtering.Helpers
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Data.ODataLinq
  [Expand]DevExpress.Data.PivotGrid
  [Expand]DevExpress.Data.PLinq
  [Expand]DevExpress.Data.TreeList
  [Expand]DevExpress.Data.Utils
  [Expand]DevExpress.Data.Utils.ServiceModel
  [Expand]DevExpress.Data.WcfLinq
  [Expand]DevExpress.Data.WizardFramework
  [Expand]DevExpress.Data.XtraReports.DataProviders
  [Expand]DevExpress.Data.XtraReports.Labels
  [Expand]DevExpress.Data.XtraReports.ServiceModel
  [Expand]DevExpress.Data.XtraReports.ServiceModel.DataContracts
  [Expand]DevExpress.Data.XtraReports.Wizard
  [Expand]DevExpress.Data.XtraReports.Wizard.Presenters
  [Expand]DevExpress.Data.XtraReports.Wizard.Views
  [Expand]DevExpress.DataAccess
  [Expand]DevExpress.DataAccess.ConnectionParameters
  [Expand]DevExpress.DataAccess.EntityFramework
  [Expand]DevExpress.DataAccess.Excel
  [Expand]DevExpress.DataAccess.ExpressionEditor
  [Expand]DevExpress.DataAccess.Localization
  [Expand]DevExpress.DataAccess.ObjectBinding
  [Expand]DevExpress.DataAccess.Sql
  [Expand]DevExpress.DataAccess.Sql.DataApi
  [Expand]DevExpress.DataAccess.UI
  [Expand]DevExpress.DataAccess.UI.Design
  [Expand]DevExpress.DataAccess.UI.EntityFramework
  [Expand]DevExpress.DataAccess.UI.Excel
  [Expand]DevExpress.DataAccess.UI.Localization
  [Expand]DevExpress.DataAccess.UI.ObjectBinding
  [Expand]DevExpress.DataAccess.UI.Sql
  [Expand]DevExpress.DataAccess.UI.Wizard
  [Expand]DevExpress.DataAccess.UI.Wizard.Services
  [Expand]DevExpress.DataAccess.UI.Wizard.Views
  [Expand]DevExpress.DataAccess.Web
  [Expand]DevExpress.DataAccess.Wizard
  [Expand]DevExpress.DataAccess.Wizard.Model
  [Expand]DevExpress.DataAccess.Wizard.Presenters
  [Expand]DevExpress.DataAccess.Wizard.Services
  [Expand]DevExpress.DataAccess.Wizard.Views
  [Expand]DevExpress.Diagram.Core
  [Expand]DevExpress.Diagram.Core.Layout
  [Expand]DevExpress.Diagram.Core.Localization
  [Expand]DevExpress.Diagram.Core.Shapes
  [Expand]DevExpress.Diagram.Core.Themes
  [Expand]DevExpress.DocumentServices.ServiceModel
  [Expand]DevExpress.DocumentServices.ServiceModel.Client
  [Expand]DevExpress.DocumentServices.ServiceModel.DataContracts
  [Expand]DevExpress.DocumentView
  [Expand]DevExpress.Entity.Model
  [Expand]DevExpress.Entity.ProjectModel
  [Expand]DevExpress.Export
  [Expand]DevExpress.Export.Xl
  [Expand]DevExpress.Map
  [Expand]DevExpress.Mvvm
  [Expand]DevExpress.Mvvm.DataAnnotations
  [Expand]DevExpress.Mvvm.DataModel
  [Expand]DevExpress.Mvvm.ModuleInjection
  [Expand]DevExpress.Mvvm.UI
  [Expand]DevExpress.Mvvm.Utils
  [Expand]DevExpress.Mvvm.ViewModel
  [Expand]DevExpress.Office
  [Expand]DevExpress.Office.Crypto
  [Expand]DevExpress.Office.Drawing
  [Expand]DevExpress.Office.Export
  [Expand]DevExpress.Office.Export.Html
  [Expand]DevExpress.Office.Import
  [Expand]DevExpress.Office.Localization
  [Expand]DevExpress.Office.Options
  [Expand]DevExpress.Office.Services
  [Expand]DevExpress.Office.Utils
  [Collapse]DevExpress.Pdf
   [Expand]IPdfViewer Interface
   [Expand]PdfAcroFormBorderAppearance Class
    PdfAcroFormBorderStyle Enumeration
    PdfAcroFormButtonStyle Enumeration
   [Expand]PdfAcroFormCheckBoxField Class
   [Expand]PdfAcroFormChoiceField Class
   [Expand]PdfAcroFormComboBoxField Class
   [Expand]PdfAcroFormCommonVisualField Class
   [Expand]PdfAcroFormField Class
   [Expand]PdfAcroFormFieldAppearance Class
   [Expand]PdfAcroFormFieldNameCollision Structure
    PdfAcroFormFieldRotation Enumeration
   [Expand]PdfAcroFormGroupField Class
   [Expand]PdfAcroFormListBoxField Class
   [Expand]PdfAcroFormRadioGroupField Class
   [Expand]PdfAcroFormSignatureField Class
    PdfAcroFormStringAlignment Enumeration
   [Expand]PdfAcroFormTextBoxField Class
    PdfAcroFormTextFieldType Enumeration
   [Expand]PdfAcroFormVisualField Class
   [Expand]PdfAction Class
   [Expand]PdfAnnotation Class
   [Expand]PdfAnnotationActions Class
   [Expand]PdfAnnotationAppearance Class
   [Expand]PdfAnnotationAppearances Class
   [Expand]PdfAnnotationBorder Class
   [Expand]PdfAnnotationBorderStyle Class
    PdfAnnotationFlags Enumeration
    PdfAnnotationHighlightingMode Enumeration
    PdfAssociatedFileRelationship Enumeration
   [Expand]PdfBookmark Class
   [Expand]PdfButtonFormField Class
   [Expand]PdfCharacter Class
   [Expand]PdfCharacterMapping Class
   [Expand]PdfChoiceFormField Class
   [Expand]PdfColor Class
   [Expand]PdfColorSpace Class
   [Expand]PdfCommand Class
   [Expand]PdfCommandList Class
    PdfCompatibility Enumeration
   [Expand]PdfCreationOptions Class
   [Expand]PdfDestination Class
   [Expand]PdfDocument Class
   [Expand]PdfDocumentActions Class
   [Expand]PdfDocumentArea Class
   [Expand]PdfDocumentContent Class
    PdfDocumentContentType Enumeration
    PdfDocumentDataExtractionPermissions Enumeration
    PdfDocumentInteractivityPermissions Enumeration
    PdfDocumentModificationPermissions Enumeration
   [Expand]PdfDocumentPosition Class
    PdfDocumentPrintingPermissions Enumeration
   [Expand]PdfDocumentProcessorHelper Class
    PdfEncryptionAlgorithm Enumeration
   [Expand]PdfEncryptionOptions Class
   [Expand]PdfFileAttachment Class
   [Expand]PdfFileSpecification Class
   [Expand]PdfFilter Class
   [Expand]PdfFitBBoxDestination Class
   [Expand]PdfFitBBoxHorizontallyDestination Class
   [Expand]PdfFitBBoxVerticallyDestination Class
   [Expand]PdfFitDestination Class
   [Expand]PdfFitHorizontallyDestination Class
   [Expand]PdfFitRectangleDestination Class
   [Expand]PdfFitVerticallyDestination Class
   [Expand]PdfFont Class
   [Expand]PdfFontDescriptor Class
    PdfFontFlags Enumeration
    PdfFontStretch Enumeration
    PdfFontStyle Enumeration
   [Expand]PdfForm Class
   [Expand]PdfFormData Class
    PdfFormDataFormat Enumeration
   [Expand]PdfGoToAction Class
   [Expand]PdfGraphics Class
   [Expand]PdfGraphicsAcroFormBorderAppearance Class
   [Expand]PdfGraphicsAcroFormCheckBoxField Class
   [Expand]PdfGraphicsAcroFormChoiceField Class
   [Expand]PdfGraphicsAcroFormComboBoxField Class
   [Expand]PdfGraphicsAcroFormCommonField Class
   [Expand]PdfGraphicsAcroFormField Class
   [Expand]PdfGraphicsAcroFormFieldAppearance Class
   [Expand]PdfGraphicsAcroFormListBoxField Class
   [Expand]PdfGraphicsAcroFormRadioGroupField Class
   [Expand]PdfGraphicsAcroFormSignatureField Class
   [Expand]PdfGraphicsAcroFormTextBoxField Class
    PdfGraphicsJpegImageQuality Enumeration
    PdfGraphicsTextOrigin Enumeration
    PdfHotkeyPrefix Enumeration
   [Expand]PdfIconFit Class
    PdfIconScalingCircumstances Enumeration
    PdfIconScalingType Enumeration
   [Expand]PdfImage Class
   [Expand]PdfInteractiveForm Class
   [Expand]PdfInteractiveFormField Class
   [Expand]PdfInteractiveFormFieldActions Class
    PdfInteractiveFormFieldFlags Enumeration
   [Expand]PdfJavaScriptAction Class
   [Expand]PdfJumpAction Class
   [Expand]PdfLineStyle Class
   [Expand]PdfLinkAnnotation Class
   [Expand]PdfMarkupAnnotation Class
   [Expand]PdfMarkupAnnotationData Class
   [Expand]PdfMarkupAnnotationInfo Class
    PdfMarkupAnnotationReplyType Enumeration
   [Expand]PdfMetadata Class
   [Expand]PdfNamedAction Class
   [Expand]PdfNames Class
   [Expand]PdfOptionalContent Class
   [Expand]PdfOptionalContentConfiguration Class
   [Expand]PdfOptionalContentGroup Class
    PdfOptionalContentIntent Enumeration
   [Expand]PdfOptionalContentOrder Class
    PdfOptionalContentOrderListMode Enumeration
   [Expand]PdfOptionalContentProperties Class
   [Expand]PdfOptionalContentRadioButtonGroup Class
    PdfOptionalContentState Enumeration
   [Expand]PdfOptionalContentUsage Class
   [Expand]PdfOptionalContentUsageApplication Class
   [Expand]PdfOptionsFormFieldOption Class
   [Expand]PdfOrientedRectangle Class
   [Expand]PdfOutline Class
   [Expand]PdfOutlineItem Class
   [Expand]PdfOutlines Class
   [Expand]PdfPage Class
    PdfPageLayout Enumeration
    PdfPageMode Enumeration
   [Expand]PdfPageTreeObject Class
   [Expand]PdfPaperSize Class
   [Expand]PdfPasswordRequestedEventArgs Class
    PdfPasswordRequestedEventHandler Delegate
   [Expand]PdfPattern Class
   [Expand]PdfPoint Structure
   [Expand]PdfPopupAnnotation Class
   [Expand]PdfPrinterSettings Class
   [Collapse]PdfPrintPageEventArgs Class
     PdfPrintPageEventArgs Members
    [Collapse]PdfPrintPageEventArgs Properties
      PageCount Property
      PageNumber Property
    PdfPrintPageEventHandler Delegate
    PdfPrintPageOrientation Enumeration
    PdfPrintScaleMode Enumeration
   [Expand]PdfQuadrilateral Class
   [Expand]PdfQueryPageSettingsEventArgs Class
    PdfQueryPageSettingsEventHandler Delegate
   [Expand]PdfRange Class
   [Expand]PdfRectangle Class
   [Expand]PdfRemoteGoToAction Class
    PdfRenderingIntent Enumeration
   [Expand]PdfRenderingSettings Class
   [Expand]PdfResetFormAction Class
   [Expand]PdfRGBColor Class
   [Expand]PdfSaveOptions Structure
   [Expand]PdfSignature Class
    PdfSignatureFlags Enumeration
    PdfStringAlignment Enumeration
   [Expand]PdfStringFormat Class
    PdfStringFormatFlags Enumeration
    PdfStringTrimming Enumeration
   [Expand]PdfTextAnnotation Class
   [Expand]PdfTextFormField Class
    PdfTextJustification Enumeration
   [Expand]PdfTextMarkupAnnotation Class
   [Expand]PdfTextMarkupAnnotationData Class
   [Expand]PdfTextMarkupAnnotationInfo Class
    PdfTextMarkupAnnotationType Enumeration
    PdfTextSearchDirection Enumeration
   [Expand]PdfTextSearchParameters Class
   [Expand]PdfTextSearchResults Class
    PdfTextSearchStatus Enumeration
   [Expand]PdfUriAction Class
   [Expand]PdfWidgetAnnotation Class
    PdfWidgetAnnotationTextPosition Enumeration
   [Expand]PdfWidgetAppearanceCharacteristics Class
   [Expand]PdfWord Class
   [Expand]PdfWordSegment Class
   [Expand]PdfXFAForm Class
   [Expand]PdfXObject Class
   [Expand]PdfXYZDestination Class
  [Expand]DevExpress.Pdf.Localization
  [Expand]DevExpress.PivotGrid.Printing
  [Expand]DevExpress.Printing
  [Expand]DevExpress.Printing.Core
  [Expand]DevExpress.Printing.ExportHelpers
  [Expand]DevExpress.ReportServer.Printing
  [Expand]DevExpress.ReportServer.Printing.Services
  [Expand]DevExpress.ReportServer.ServiceModel.Client
  [Expand]DevExpress.ReportServer.ServiceModel.ConnectionProviders
  [Expand]DevExpress.ReportServer.ServiceModel.DataContracts
  [Expand]DevExpress.Schedule
  [Expand]DevExpress.Services
  [Expand]DevExpress.Sparkline
  [Expand]DevExpress.Spreadsheet
  [Expand]DevExpress.Spreadsheet.Charts
  [Expand]DevExpress.Spreadsheet.Drawings
  [Expand]DevExpress.Spreadsheet.Export
  [Expand]DevExpress.Spreadsheet.Formulas
  [Expand]DevExpress.Spreadsheet.Functions
  [Expand]DevExpress.TreeMap
  [Expand]DevExpress.Utils
  [Expand]DevExpress.Utils.Commands
  [Expand]DevExpress.Utils.Controls
  [Expand]DevExpress.Utils.Filtering.Internal
  [Expand]DevExpress.Utils.IoC
  [Expand]DevExpress.Utils.Localization
  [Expand]DevExpress.Utils.Serializing.Helpers
  [Expand]DevExpress.WebUtils
  [Expand]DevExpress.Xpf.Core
  [Expand]DevExpress.Xpf.Printing
  [Expand]DevExpress.Xpo
  [Expand]DevExpress.Xpo.DB
  [Expand]DevExpress.Xpo.DB.Exceptions
  [Expand]DevExpress.Xpo.DB.Helpers
  [Expand]DevExpress.Xpo.Exceptions
  [Expand]DevExpress.Xpo.Helpers
  [Expand]DevExpress.Xpo.Metadata
  [Expand]DevExpress.XtraCharts
  [Expand]DevExpress.XtraCharts.Localization
  [Expand]DevExpress.XtraCharts.Printing
  [Expand]DevExpress.XtraEditors
  [Expand]DevExpress.XtraEditors.DXErrorProvider
  [Expand]DevExpress.XtraExport.Csv
  [Expand]DevExpress.XtraGauges.Base
  [Expand]DevExpress.XtraGauges.Core
  [Expand]DevExpress.XtraGauges.Core.Base
  [Expand]DevExpress.XtraGauges.Core.Drawing
  [Expand]DevExpress.XtraGauges.Core.Localization
  [Expand]DevExpress.XtraGauges.Core.Model
  [Expand]DevExpress.XtraGauges.Core.Primitive
  [Expand]DevExpress.XtraGrid
  [Expand]DevExpress.XtraPivotGrid
  [Expand]DevExpress.XtraPivotGrid.Customization
  [Expand]DevExpress.XtraPivotGrid.Data
  [Expand]DevExpress.XtraPivotGrid.Localization
  [Expand]DevExpress.XtraPivotGrid.Selection
  [Expand]DevExpress.XtraPrinting
  [Expand]DevExpress.XtraPrinting.BarCode
  [Expand]DevExpress.XtraPrinting.Caching
  [Expand]DevExpress.XtraPrinting.DataNodes
  [Expand]DevExpress.XtraPrinting.Drawing
  [Expand]DevExpress.XtraPrinting.Export
  [Expand]DevExpress.XtraPrinting.Export.Web
  [Expand]DevExpress.XtraPrinting.Localization
  [Expand]DevExpress.XtraPrinting.Native
  [Expand]DevExpress.XtraPrinting.Shape
  [Expand]DevExpress.XtraPrinting.Shape.Native
  [Expand]DevExpress.XtraPrinting.WebClientUIControl.DataContracts
  [Expand]DevExpress.XtraPrinting.XamlExport
  [Expand]DevExpress.XtraPrintingLinks
  [Expand]DevExpress.XtraReports
  [Expand]DevExpress.XtraReports.Design
  [Expand]DevExpress.XtraReports.Parameters
  [Expand]DevExpress.XtraReports.ReportGeneration
  [Expand]DevExpress.XtraReports.UI
  [Expand]DevExpress.XtraRichEdit
  [Expand]DevExpress.XtraRichEdit.API.Layout
  [Expand]DevExpress.XtraRichEdit.API.Native
  [Expand]DevExpress.XtraRichEdit.API.Native.Implementation
  [Expand]DevExpress.XtraRichEdit.Commands
  [Expand]DevExpress.XtraRichEdit.Export
  [Expand]DevExpress.XtraRichEdit.Export.Html
  [Expand]DevExpress.XtraRichEdit.Export.Rtf
  [Expand]DevExpress.XtraRichEdit.Forms
  [Expand]DevExpress.XtraRichEdit.Import
  [Expand]DevExpress.XtraRichEdit.Localization
  [Expand]DevExpress.XtraRichEdit.Services
  [Expand]DevExpress.XtraRichEdit.Utils
  [Expand]DevExpress.XtraScheduler
  [Expand]DevExpress.XtraScheduler.Compatibility
  [Expand]DevExpress.XtraScheduler.Drawing
  [Expand]DevExpress.XtraScheduler.Exchange
  [Expand]DevExpress.XtraScheduler.iCalendar
  [Expand]DevExpress.XtraScheduler.iCalendar.Components
  [Expand]DevExpress.XtraScheduler.Localization
  [Expand]DevExpress.XtraScheduler.Native
  [Expand]DevExpress.XtraScheduler.Outlook
  [Expand]DevExpress.XtraScheduler.Outlook.Interop
  [Expand]DevExpress.XtraScheduler.Reporting
  [Expand]DevExpress.XtraScheduler.Services
  [Expand]DevExpress.XtraScheduler.Services.Implementation
  [Expand]DevExpress.XtraScheduler.Tools
  [Expand]DevExpress.XtraScheduler.UI
  [Expand]DevExpress.XtraScheduler.Xml
  [Expand]DevExpress.XtraSpellChecker
  [Expand]DevExpress.XtraSpreadsheet
  [Expand]DevExpress.XtraSpreadsheet.Export
  [Expand]DevExpress.XtraSpreadsheet.Export.Html
  [Expand]DevExpress.XtraSpreadsheet.Import
  [Expand]DevExpress.XtraSpreadsheet.Localization
  [Expand]DevExpress.XtraSpreadsheet.Services
[Expand]Tools and Utilities
 End-User Documentation

PdfPrintPageEventArgs.PageNumber Property

Returns the page number of the currently printed page.

Namespace:DevExpress.Pdf
Assembly:DevExpress.Pdf.v18.1.Drawing.dll

Expanded Syntax

Property value

Type: Int32
An integer value that is the page number.

Expanded Example

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T334688.

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

A document is printed with the specified initial printer settings using the DevExpress.Pdf.PdfDocumentProcessor.Print method. In this example, the page numbers that should be printed in a document are specified using the PdfPrinterSettings.PageNumbers property.

When a page is printed, page settings for this page are queried via the DevExpress.Pdf.PdfDocumentProcessor.QueryPageSettings event.

In this example, the second page of a document is printed in landscape orientation by setting the PdfQueryPageSettingsEventArgs.PageSettings.Landscape property to true when the DevExpress.Pdf.PdfDocumentProcessor.QueryPageSettings event is handled.

When the document is sent to a printer, the DevExpress.Pdf.PdfDocumentProcessor.PrintPage event is raised.

To draw an additional image on a printed page, the Graphics property of the PdfPrintPageEventArgs is used when the DevExpress.Pdf.PdfDocumentProcessor.PrintPage event is handled. This image is drawn on each page by calling the Graphics.DrawImage method.

Expanded See Also

Is this topic helpful?​​​​​​​