PdfSaveOptionsZoomBehavior Property

Gets or sets a value determining what type of zoom should be applied when a document is opened with a PDF viewer.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public PdfZoomBehavior ZoomBehavior { get; set; }

Property Value

Type: PdfZoomBehavior
Remarks
The default value is None, i.e. no fit is applied.
Examples
Shows how to set the default zooming of an output PDF to 1/4 of default size.
// Open a document with multiple paragraphs
Document doc = new Document(MyDir + "Rendering.docx");

PdfSaveOptions options = new PdfSaveOptions();
options.ZoomBehavior = PdfZoomBehavior.ZoomFactor;
options.ZoomFactor = 25;
options.PageMode = PdfPageMode.UseThumbs;

// When opening the .pdf with a viewer such as Adobe Acrobat Pro, the zoom level will be at 25% by default,
// with thumbnails for each page to the left
doc.Save(ArtifactsDir + "PdfSaveOptions.ZoomBehaviour.pdf", options);
See Also