Class PageScalingMode
Specifies the different page scaling option that shall be selected when a print dialog is displayed for this document.
Inheritance
System.Object
PageScalingMode
Namespace: Syncfusion.Pdf
Assembly: Syncfusion.Pdf.UWP.dll
Syntax
public sealed class PageScalingMode : Enum
Remarks
Default value is AppDefault.
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Set AppDefault mode as page`s scaling mode.
document.ViewerPreferences.PageScaling = PageScalingMode.AppDefault;
//Add a page in the PDF document.
PdfPage page = document.Pages.Add();
//Create the PDF font instance.
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold);
//Draw the text in PDF page.
page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10));
//Save documen to disk.
document.Save("ScalingMode.pdf");
//Close the document.
document.Close(true);
'Create a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Set AppDefault mode as page`s scaling mode.
document.ViewerPreferences.PageScaling = PageScalingMode.AppDefault
'Add a page in the PDF document.
Dim page As PdfPage = document.Pages.Add()
'Create the PDF font instance.
Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold)
'Draw the text in PDF page.
page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10))
'Save document to disk.
document.Save("ScalingMode.pdf")
'Close the document.
document.Close(True)
Fields
AppDefault
Indicates the conforming reader�s default print scaling.
Declaration
public const PageScalingMode AppDefault
Field Value
Type |
---|
PageScalingMode |
None
Indicates no page scaling.
Declaration
public const PageScalingMode None
Field Value
Type |
---|
PageScalingMode |