PdfZoomBehavior Enum
Wordize.Saving.PdfZoomBehavior enum. Specifies the type of zoom applied to a PDF document when it is opened in a PDF viewer.
PdfZoomBehavior enumeration
Specifies the type of zoom applied to a PDF document when it is opened in a PDF viewer.
public enum PdfZoomBehavior
Values
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). |
Examples
Shows how to configure zoom factor in PDF.
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.ZoomBehavior = PdfZoomBehavior.ZoomFactor;
pdfSaveOptions.ZoomFactor = 50;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "PdfSaveOptions.ZoomBehavior.pdf", pdfSaveOptions)
.Execute();
See Also
- namespace Wordize.Saving
- assembly Wordize