Back to Devexpress

PdfPrinterSettings.Scale Property

officefileapi-devexpress-dot-pdf-dot-pdfprintersettings-75b431de.md

latest4.5 KB
Original Source

PdfPrinterSettings.Scale Property

Specifies the percentage scale factor of the document page to be printed.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Pdf.v25.2.Drawing.dll

NuGet Package : DevExpress.Pdf.Drawing

Declaration

csharp
public float Scale { get; set; }
vb
Public Property Scale As Single

Property Value

TypeDescription
Single

A Single value which represents the scale factor of the document page (the scale is measured as a percentage).

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to Scale
WinForms ControlsPdfPageSetupDialogShowingEventArgs

.PrinterSettings .Scale

| | WPF Controls | PageSetupDialogShowingEventArgs |

.PrinterSettings .Scale

|

Remarks

The Scale property works in conjunction with the custom scale mode that can be specified by setting the PdfPrinterSettings.ScaleMode property to PdfPrintScaleMode.CustomScale.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Scale 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-specify-printer-settings/CS/PdfProcessorPrinterOptions/Program.cs#L23

csharp
pdfPrinterSettings.ScaleMode = PdfPrintScaleMode.CustomScale;
pdfPrinterSettings.Scale = 90;

pdf-viewer-use-the-pdf-printer-settings-to-print-a-file/CS/PdfPrinterSettingsDemo/Form1.cs#L33

csharp
pdfPrinterSettings.ScaleMode = PdfPrintScaleMode.CustomScale;
pdfPrinterSettings.Scale = 90;

how-to-use-pdf-printer-settings/CS/SpecifyPrinterSettings/MainWindow.xaml.cs#L29

csharp
pdfPrinterSettings.ScaleMode = PdfPrintScaleMode.CustomScale;
pdfPrinterSettings.Scale = 90;

pdf-document-api-specify-printer-settings/VB/PdfProcessorPrinterOptions/Program.vb#L19

vb
pdfPrinterSettings.ScaleMode = PdfPrintScaleMode.CustomScale
pdfPrinterSettings.Scale = 90
' Print the document using the specified printer settings.

pdf-viewer-use-the-pdf-printer-settings-to-print-a-file/VB/PdfPrinterSettingsDemo/Form1.vb#L32

vb
pdfPrinterSettings.ScaleMode = PdfPrintScaleMode.CustomScale
pdfPrinterSettings.Scale = 90
' Print the document using the specified printer settings.

See Also

PdfPrinterSettings Class

PdfPrinterSettings Members

DevExpress.Pdf Namespace