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.
|
makeDestination
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfExplicitDestination()
public PdfExplicitDestination(PdfArray pdfObject)
public PdfObject getDestinationPage(Map<String,PdfObject> names)
getDestinationPage
in class PdfDestination
public 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 page
left
- the X coordinate of the left edge of the destination rectangle
top
- the Y coordinate of the upper edge of the destination rectangle
zoom
- zoom factor
PdfExplicitDestination
@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 page
left
- the X coordinate of the left edge of the destination rectangle
top
- the Y coordinate of the upper edge of the destination rectangle
zoom
- zoom factor
PdfExplicitDestination
public 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 page
PdfExplicitDestination
@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 page
PdfExplicitDestination
public 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 page
top
- the Y coordinate of the upper edge of the destination rectangle
PdfExplicitDestination
@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 page
top
- the Y coordinate of the upper edge of the destination rectangle
PdfExplicitDestination
public 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 page
left
- the X coordinate of the left edge of the destination rectangle
PdfExplicitDestination
@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 page
left
- the X coordinate of the left edge of the destination rectangle
PdfExplicitDestination
public 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 page
left
- the X coordinate of the left edge of the destination rectangle
bottom
- the Y coordinate of the lower edge of the destination rectangle
right
- the X coordinate of the right edge of the destination rectangle
top
- the Y coordinate of the upper edge of the destination rectangle
PdfExplicitDestination
@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 page
left
- the X coordinate of the left edge of the destination rectangle
bottom
- the Y coordinate of the lower edge of the destination rectangle
right
- the X coordinate of the right edge of the destination rectangle
top
- the Y coordinate of the upper edge of the destination rectangle
PdfExplicitDestination
public 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 page
PdfExplicitDestination
@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 page
PdfExplicitDestination
public 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 page
top
- the Y coordinate of the upper edge of the destination rectangle
PdfExplicitDestination
@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 page
top
- the Y coordinate of the upper edge of the destination rectangle
PdfExplicitDestination
public 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 page
left
- the X coordinate of the left edge of the destination rectangle
PdfExplicitDestination
@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 page
left
- the X coordinate of the left edge of the destination rectangle
PdfExplicitDestination
public 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 page
type
- 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 syntax
left
- the X coordinate of the left edge of the destination rectangle
bottom
- the Y coordinate of the lower edge of the destination rectangle
right
- the X coordinate of the right edge of the destination rectangle
top
- the Y coordinate of the upper edge of the destination rectangle
zoom
- zoom factor
PdfExplicitDestination
@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 page
type
- 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 syntax
left
- the X coordinate of the left edge of the destination rectangle
bottom
- the Y coordinate of the lower edge of the destination rectangle
right
- the X coordinate of the right edge of the destination rectangle
top
- the Y coordinate of the upper edge of the destination rectangle
zoom
- zoom factor
PdfExplicitDestination
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfObject>
Copyright © 1998–2021 iText Group NV. All rights reserved.