public class PdfExplicitDestination extends PdfDestination
PdfExplicitRemoteGoToDestination class instead.
Note that despite methods with integer value for page parameter are deprecated in this class,
Adobe Acrobat handles such destinations correctly, but removes them completely from a PDF,
when it is saved as an optimized pdf with the "discard-invalid-links" option.
Therefore it is strongly recommended to use methods accepting pdfPage instance, if the destination is inside of the current document.| Constructor and Description |
|---|
PdfExplicitDestination() |
PdfExplicitDestination(PdfArray pdfObject) |
| Modifier and Type | Method and Description |
|---|---|
static PdfExplicitDestination |
create(PdfPage page,
PdfName type,
float left,
float bottom,
float right,
float top,
float zoom)
Creates a
PdfExplicitDestination associated with an object inside current PDF document. |
static PdfExplicitDestination |
createFit(PdfPage page)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createFitB(PdfPage page)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createFitBH(PdfPage page,
float top)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createFitBV(PdfPage page,
float left)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createFitH(PdfPage page,
float top)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createFitR(PdfPage page,
float left,
float bottom,
float right,
float top)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createFitV(PdfPage page,
float left)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createXYZ(PdfPage page,
float left,
float top,
float zoom)
Creates
PdfExplicitDestination. |
PdfObject |
getDestinationPage(Map<String,PdfObject> names) |
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the
resultant document.
|
makeDestinationensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic PdfExplicitDestination()
public PdfExplicitDestination(PdfArray pdfObject)
public PdfObject getDestinationPage(Map<String,PdfObject> names)
getDestinationPage in class PdfDestinationpublic static PdfExplicitDestination createXYZ(PdfPage page, float left, float top, float zoom)
PdfExplicitDestination. The designated page will be displayed with its contents
magnified by the factor zoom and positioned at the upper-left corner of the window.page - the destination pageleft - the X coordinate of the left edge of the destination rectangletop - the Y coordinate of the upper edge of the destination rectanglezoom - zoom factorPdfExplicitDestinationpublic static PdfExplicitDestination createFit(PdfPage page)
PdfExplicitDestination. The designated page will be displayed with its contents
magnified just enough to fit the entire page within the window both horizontally and vertically.page - the destination pagePdfExplicitDestinationpublic static PdfExplicitDestination createFitH(PdfPage page, float top)
PdfExplicitDestination. The designated page will be displayed with its contents
magnified just enough to fit the entire width of the page within the window.page - the destination pagetop - the Y coordinate of the upper edge of the destination rectanglePdfExplicitDestinationpublic static PdfExplicitDestination createFitV(PdfPage page, float left)
PdfExplicitDestination. The designated page will be displayed with its contents
magnified just enough to fit the entire height of the page within the window.page - the destination pageleft - the X coordinate of the left edge of the destination rectanglePdfExplicitDestinationpublic static PdfExplicitDestination createFitR(PdfPage page, float left, float bottom, float right, float top)
PdfExplicitDestination. The designated page will be displayed with its contents
magnified just enough to fit the rectangle specified by the coordinates left, bottom, right, and top
entirely within the window both horizontally and vertically.page - the destination pageleft - the X coordinate of the left edge of the destination rectanglebottom - the Y coordinate of the lower edge of the destination rectangleright - the X coordinate of the right edge of the destination rectangletop - the Y coordinate of the upper edge of the destination rectanglePdfExplicitDestinationpublic static PdfExplicitDestination createFitB(PdfPage page)
PdfExplicitDestination. The designated page will be displayed with its contents
magnified just enough to fit its bounding box entirely within the window both horizontally and vertically.page - the destination pagePdfExplicitDestinationpublic static PdfExplicitDestination createFitBH(PdfPage page, float top)
PdfExplicitDestination. The designated page will be displayed with its contents
magnified just enough to fit the entire width of its bounding box within the window.page - the destination pagetop - the Y coordinate of the upper edge of the destination rectanglePdfExplicitDestinationpublic static PdfExplicitDestination createFitBV(PdfPage page, float left)
PdfExplicitDestination. The designated page will be displayed with its contents
magnified just enough to fit the entire height of its bounding box within the window.page - the destination pageleft - the X coordinate of the left edge of the destination rectanglePdfExplicitDestinationpublic static PdfExplicitDestination create(PdfPage page, PdfName type, float left, float bottom, float right, float top, float zoom)
PdfExplicitDestination associated with an object inside current PDF document.page - the destination pagetype - a PdfName specifying one of the possible ways to define the area to be displayed.
See ISO 32000-1, section 12.3.2.2 "Explicit Destinations", Table 151 – Destination syntaxleft - the X coordinate of the left edge of the destination rectanglebottom - the Y coordinate of the lower edge of the destination rectangleright - the X coordinate of the right edge of the destination rectangletop - the Y coordinate of the upper edge of the destination rectanglezoom - zoom factorPdfExplicitDestinationprotected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapperisWrappedObjectMustBeIndirect in class PdfObjectWrapper<PdfObject>Copyright © 1998–2022 iText Group NV. All rights reserved.