public class PdfZoomBehavior
Example:
Document doc = new Document(getMyDir() + "Rendering.docx");
PdfSaveOptions options = new PdfSaveOptions();
{
options.setZoomBehavior(PdfZoomBehavior.ZOOM_FACTOR);
options.setZoomFactor(25);
}
// Upon 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(getArtifactsDir() + "PdfSaveOptions.ZoomBehaviour.pdf", options);
Field Summary | ||
---|---|---|
static final int | NONE | |
How the document is displayed is left to the PDF viewer. Usually the viewer displays the document to fit page width.
|
||
static final int | ZOOM_FACTOR | |
Displays the page using the specified zoom factor.
|
||
static final int | FIT_PAGE | |
Displays the page so it visible entirely.
|
||
static final int | FIT_WIDTH | |
Fits the width of the page.
|
||
static final int | FIT_HEIGHT | |
Fits the height of the page.
|
||
static final int | FIT_BOX | |
Fits the bounding box (rectangle containing all visible elements on the page).
|
public static final int NONE
public static final int ZOOM_FACTOR
public static final int FIT_PAGE
public static final int FIT_WIDTH
public static final int FIT_HEIGHT
public static final int FIT_BOX