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(int pageNum,
PdfName type,
float left,
float bottom,
float right,
float top,
float zoom)
Deprecated.
Use
create(PdfPage, PdfName, float, float, float, float, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.create(int, PdfName, float, float, float, float, float)
to create a destination in another PDF document instead. |
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(int pageNum)
Deprecated.
Use
createFit(PdfPage)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFit(int)
to create a destination in another PDF document instead. |
static PdfExplicitDestination |
createFit(PdfPage page)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createFitB(int pageNum)
Deprecated.
Use
createFitB(PdfPage)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFitB(int)
to create a destination in another PDF document instead. |
static PdfExplicitDestination |
createFitB(PdfPage page)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createFitBH(int pageNum,
float top)
Deprecated.
Use
createFitBH(PdfPage, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFitBH(int, float)
to create a destination in another PDF document instead. |
static PdfExplicitDestination |
createFitBH(PdfPage page,
float top)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createFitBV(int pageNum,
float left)
Deprecated.
Use
createFitBV(PdfPage, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFitBV(int, float)
to create a destination in another PDF document instead. |
static PdfExplicitDestination |
createFitBV(PdfPage page,
float left)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createFitH(int pageNum,
float top)
Deprecated.
Use
createFitH(PdfPage, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFitH(int, float)
to create a destination in another PDF document instead. |
static PdfExplicitDestination |
createFitH(PdfPage page,
float top)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createFitR(int pageNum,
float left,
float bottom,
float right,
float top)
Deprecated.
Use
createFitR(PdfPage, float, float, float, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFitR(int, float, float, float, float)
to create a destination in another PDF document instead. |
static PdfExplicitDestination |
createFitR(PdfPage page,
float left,
float bottom,
float right,
float top)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createFitV(int pageNum,
float left)
Deprecated.
Use
createFitV(PdfPage, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFitV(int, float)
to create a destination in another PDF document instead. |
static PdfExplicitDestination |
createFitV(PdfPage page,
float left)
Creates
PdfExplicitDestination. |
static PdfExplicitDestination |
createXYZ(int pageNum,
float left,
float top,
float zoom)
Deprecated.
Use
createXYZ(PdfPage, float, float, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createXYZ(int, float, float, float)
to create a destination in another PDF document instead. |
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 factorPdfExplicitDestination@Deprecated public static PdfExplicitDestination createXYZ(int pageNum, float left, float top, float zoom)
createXYZ(PdfPage, float, float, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createXYZ(int, float, float, float)
to create a destination in another PDF document instead.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.pageNum - 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 pagePdfExplicitDestination@Deprecated public static PdfExplicitDestination createFit(int pageNum)
createFit(PdfPage)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFit(int)
to create a destination in another PDF document instead.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.pageNum - 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 rectanglePdfExplicitDestination@Deprecated public static PdfExplicitDestination createFitH(int pageNum, float top)
createFitH(PdfPage, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFitH(int, float)
to create a destination in another PDF document instead.PdfExplicitDestination. The designated page will be displayed with its contents
magnified just enough to fit the entire width of the page within the window.pageNum - 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 rectanglePdfExplicitDestination@Deprecated public static PdfExplicitDestination createFitV(int pageNum, float left)
createFitV(PdfPage, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFitV(int, float)
to create a destination in another PDF document instead.PdfExplicitDestination. The designated page will be displayed with its contents
magnified just enough to fit the entire height of the page within the window.pageNum - 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 rectanglePdfExplicitDestination@Deprecated public static PdfExplicitDestination createFitR(int pageNum, float left, float bottom, float right, float top)
createFitR(PdfPage, float, float, float, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFitR(int, float, float, float, float)
to create a destination in another PDF document instead.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.pageNum - 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 pagePdfExplicitDestination@Deprecated public static PdfExplicitDestination createFitB(int pageNum)
createFitB(PdfPage)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFitB(int)
to create a destination in another PDF document instead.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.pageNum - 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 rectanglePdfExplicitDestination@Deprecated public static PdfExplicitDestination createFitBH(int pageNum, float top)
createFitBH(PdfPage, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFitBH(int, float)
to create a destination in another PDF document instead.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.pageNum - 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 rectanglePdfExplicitDestination@Deprecated public static PdfExplicitDestination createFitBV(int pageNum, float left)
createFitBV(PdfPage, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.createFitBV(int, float)
to create a destination in another PDF document instead.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.pageNum - 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 factorPdfExplicitDestination@Deprecated public static PdfExplicitDestination create(int pageNum, PdfName type, float left, float bottom, float right, float top, float zoom)
create(PdfPage, PdfName, float, float, float, float, float)
to create a destination inside current PDF document, or
PdfExplicitRemoteGoToDestination.create(int, PdfName, float, float, float, float, float)
to create a destination in another PDF document instead.PdfExplicitDestination associated with an object in current PDF document.pageNum - 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–2020 iText Group NV. All rights reserved.