officefileapi-devexpress-dot-pdf-dot-pdfprintersettings-bd4da2a1.md
Specifies the PDF document page numbers to be printed.
Namespace : DevExpress.Pdf
Assembly : DevExpress.Pdf.v25.2.Drawing.dll
NuGet Package : DevExpress.Pdf.Drawing
public int[] PageNumbers { get; set; }
Public Property PageNumbers As Integer()
| Type | Description |
|---|---|
| Int32[] |
An array of integer values that correspond to page numbers.
|
You can access this nested property as listed below:
| Library | Object Type | Path to PageNumbers |
|---|---|---|
| WinForms Controls | PdfPageSetupDialogShowingEventArgs |
.PrinterSettings .PageNumbers
| | WPF Controls | PageSetupDialogShowingEventArgs |
.PrinterSettings .PageNumbers
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the PageNumbers property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
pdf-document-api-customize-pdf-print-output/CS/CustomizePrintSettings/Program.cs#L16
// Specify the page numbers to be printed.
settings.PageNumbers = new int[] { 1, 2, 3, 4, 5, 6 };
pdf-document-api-specify-printer-settings/CS/PdfProcessorPrinterOptions/Program.cs#L18
pdfPrinterSettings.PageOrientation = PdfPrintPageOrientation.Portrait;
pdfPrinterSettings.PageNumbers = new int[] { 1, 3, 4, 5 };
pdf-viewer-use-the-pdf-printer-settings-to-print-a-file/CS/PdfPrinterSettingsDemo/Form1.cs#L31
pdfPrinterSettings.PageOrientation = PdfPrintPageOrientation.Auto;
pdfPrinterSettings.PageNumbers = new int[] { 1, 3, 4, 5 };
pdfPrinterSettings.ScaleMode = PdfPrintScaleMode.CustomScale;
how-to-use-pdf-printer-settings/CS/SpecifyPrinterSettings/MainWindow.xaml.cs#L27
pdfPrinterSettings.PageOrientation = PdfPrintPageOrientation.Auto;
pdfPrinterSettings.PageNumbers = new int[] { 1, 3, 4, 5 };
pdfPrinterSettings.ScaleMode = PdfPrintScaleMode.CustomScale;
pdf-document-api-customize-pdf-print-output/VB/CustomizePrintSettings/Program.vb#L15
' Specify the page numbers to be printed.
settings.PageNumbers = New Integer() {1, 2, 3, 4, 5, 6}
' Handle the PrintPage event to specify print output.
pdf-document-api-specify-printer-settings/VB/PdfProcessorPrinterOptions/Program.vb#L15
pdfPrinterSettings.PageOrientation = PdfPrintPageOrientation.Portrait
pdfPrinterSettings.PageNumbers = New Integer() {1, 3, 4, 5}
' Setting the PdfPrintScaleMode property to CustomScale requires
pdf-viewer-use-the-pdf-printer-settings-to-print-a-file/VB/PdfPrinterSettingsDemo/Form1.vb#L30
pdfPrinterSettings.PageOrientation = PdfPrintPageOrientation.Auto
pdfPrinterSettings.PageNumbers = New Integer() {1, 3, 4, 5}
pdfPrinterSettings.ScaleMode = PdfPrintScaleMode.CustomScale
See Also