PdfZoomBehavior Enumeration |
Specifies the type of zoom applied to a PDF document when it is opened in a PDF viewer.
Namespace:
Aspose.Words.Saving
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic enum PdfZoomBehavior
Public Enumeration PdfZoomBehavior
public enum class PdfZoomBehavior
Members
| Member name | Value | Description |
---|
| None | 0 |
How the document is displayed is left to the PDF viewer. Usually the viewer displays the document to fit page width.
|
| ZoomFactor | 1 |
Displays the page using the specified zoom factor.
|
| FitPage | 2 |
Displays the page so it visible entirely.
|
| FitWidth | 3 |
Fits the width of the page.
|
| FitHeight | 4 |
Fits the height of the page.
|
| FitBox | 5 |
Fits the bounding box (rectangle containing all visible elements on the page).
|
ExamplesShows how to set the default zooming of an output PDF to 1/4 of default size.
Document doc = new Document(MyDir + "Rendering.docx");
PdfSaveOptions options = new PdfSaveOptions();
options.ZoomBehavior = PdfZoomBehavior.ZoomFactor;
options.ZoomFactor = 25;
options.PageMode = PdfPageMode.UseThumbs;
doc.Save(ArtifactsDir + "PdfSaveOptions.ZoomBehaviour.pdf", options);
See Also