public class PdfTargetDictionary extends PdfObjectWrapper<PdfDictionary>
| Constructor and Description |
|---|
PdfTargetDictionary(PdfDictionary pdfObject) |
PdfTargetDictionary(PdfName r) |
PdfTargetDictionary(PdfName r,
PdfString n,
PdfObject p,
PdfObject a,
PdfTargetDictionary t) |
| Modifier and Type | Method and Description |
|---|---|
PdfObject |
getAnnotation() |
PdfString |
getName()
Gets name of the file
|
PdfObject |
getPage()
Get the page number or a named destination that provides the page number containing the file attachment annotation
|
PdfTargetDictionary |
getTarget() |
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the
resultant document.
|
PdfTargetDictionary |
put(PdfName key,
PdfObject value) |
PdfTargetDictionary |
setAnnotation(int annotNumber)
Sets the index of the annotation in Annots array of the page specified by /P entry.
|
PdfTargetDictionary |
setAnnotation(String annotationName)
Sets the text value, which specifies the value of the /NM entry in the annotation dictionary.
|
PdfTargetDictionary |
setName(String name)
Sets the name of the file in the EmbeddedFiles name tree.
|
PdfTargetDictionary |
setPage(int pageNumber)
Sets the page number in the current document containing the file attachment annotation.
|
PdfTargetDictionary |
setPage(String namedDestination)
Sets a named destination in the current document that provides the page number of the file attachment annotation.
|
PdfTargetDictionary |
setTarget(PdfTargetDictionary target)
Sets a target dictionary specifying additional path information to the target document.
|
ensureObjectIsAddedToDocument, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic PdfTargetDictionary(PdfDictionary pdfObject)
public PdfTargetDictionary(PdfName r)
public PdfTargetDictionary(PdfName r, PdfString n, PdfObject p, PdfObject a, PdfTargetDictionary t)
public PdfTargetDictionary setName(String name)
name - the name of the filepublic PdfString getName()
public PdfTargetDictionary setPage(int pageNumber)
pageNumber - public PdfTargetDictionary setPage(String namedDestination)
namedDestination - public PdfObject getPage()
public PdfTargetDictionary setAnnotation(int annotNumber)
annotNumber - public PdfTargetDictionary setAnnotation(String annotationName)
annotationName - public PdfObject getAnnotation()
public PdfTargetDictionary setTarget(PdfTargetDictionary target)
target - public PdfTargetDictionary getTarget()
public PdfTargetDictionary put(PdfName key, PdfObject value)
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapperisWrappedObjectMustBeIndirect in class PdfObjectWrapper<PdfDictionary>Copyright © 1998–2016 iText Group NV. All rights reserved.