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.
|
static PdfExplicitDestination |
create(PdfPage page, PdfName type, float left, float bottom, float right, float top, float zoom) |
static PdfExplicitDestination |
createFit(int pageNum)
Deprecated.
Use
PdfExplicitRemoteGoToDestination.createFit(int) instead.
|
static PdfExplicitDestination |
createFit(PdfPage page) |
static PdfExplicitDestination |
createFitB(int pageNum)
Deprecated.
Use
PdfExplicitRemoteGoToDestination.createFitB(int) instead.
|
static PdfExplicitDestination |
createFitB(PdfPage page) |
static PdfExplicitDestination |
createFitBH(int pageNum, float top)
Deprecated.
|
static PdfExplicitDestination |
createFitBH(PdfPage page, float top) |
static PdfExplicitDestination |
createFitBV(int pageNum, float left)
Deprecated.
|
static PdfExplicitDestination |
createFitBV(PdfPage page, float left) |
static PdfExplicitDestination |
createFitH(int pageNum, float top)
Deprecated.
|
static PdfExplicitDestination |
createFitH(PdfPage page, float top) |
static PdfExplicitDestination |
createFitR(int pageNum, float left, float bottom, float right, float top)
Deprecated.
|
static PdfExplicitDestination |
createFitR(PdfPage page, float left, float bottom, float right, float top) |
static PdfExplicitDestination |
createFitV(int pageNum, float left)
Deprecated.
|
static PdfExplicitDestination |
createFitV(PdfPage page, float left) |
static PdfExplicitDestination |
createXYZ(int pageNum, float left, float top, float zoom)
Deprecated.
|
static PdfExplicitDestination |
createXYZ(PdfPage page, float left, float top, float zoom) |
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)
@Deprecated public static PdfExplicitDestination createXYZ(int pageNum, float left, float top, float zoom)
PdfExplicitRemoteGoToDestination.createXYZ(int, float, float, float)
instead.
public static PdfExplicitDestination createFit(PdfPage page)
@Deprecated public static PdfExplicitDestination createFit(int pageNum)
PdfExplicitRemoteGoToDestination.createFit(int)
instead.
public static PdfExplicitDestination createFitH(PdfPage page, float top)
@Deprecated public static PdfExplicitDestination createFitH(int pageNum, float top)
PdfExplicitRemoteGoToDestination.createFitH(int, float)
instead.
public static PdfExplicitDestination createFitV(PdfPage page, float left)
@Deprecated public static PdfExplicitDestination createFitV(int pageNum, float left)
PdfExplicitRemoteGoToDestination.createFitV(int, float)
instead.
public static PdfExplicitDestination createFitR(PdfPage page, float left, float bottom, float right, float top)
@Deprecated public static PdfExplicitDestination createFitR(int pageNum, float left, float bottom, float right, float top)
PdfExplicitRemoteGoToDestination.createFitR(int, float, float, float, float)
instead.
public static PdfExplicitDestination createFitB(PdfPage page)
@Deprecated public static PdfExplicitDestination createFitB(int pageNum)
PdfExplicitRemoteGoToDestination.createFitB(int)
instead.
public static PdfExplicitDestination createFitBH(PdfPage page, float top)
@Deprecated public static PdfExplicitDestination createFitBH(int pageNum, float top)
PdfExplicitRemoteGoToDestination.createFitBH(int, float)
instead.
public static PdfExplicitDestination createFitBV(PdfPage page, float left)
@Deprecated public static PdfExplicitDestination createFitBV(int pageNum, float left)
PdfExplicitRemoteGoToDestination.createFitBV(int, float)
instead.
public static PdfExplicitDestination create(PdfPage page, PdfName type, float left, float bottom, float right, float top, float zoom)
@Deprecated public static PdfExplicitDestination create(int pageNum, PdfName type, float left, float bottom, float right, float top, float zoom)
PdfExplicitRemoteGoToDestination.create(int, PdfName, float, float, float, float, float)
instead.
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfObject>
Copyright © 1998–2020 iText Group NV. All rights reserved.