public class EmbeddedPdfLink extends Link
| Modifier and Type | Method and Description |
|---|---|
static EmbeddedPdfLink |
create(Document targetDocument,
Rectangle boundingBox,
FileReference fileReference)
Create a link to an embedded PDF document
|
static EmbeddedPdfLink |
createDynamicObject(long handle) |
static EmbeddedPdfLink |
createFromQuadrilaterals(Document targetDocument,
QuadrilateralList activeArea,
FileReference fileReference)
Create a link to an embedded PDF document with defined link area
|
java.lang.Boolean |
getNewWindow()
The opening behavior (Getter)
|
void |
setNewWindow(java.lang.Boolean value)
The opening behavior (Setter)
|
copy, getActiveArea, getBoundingBox, getHidden, getNoPrint, setBorderStyleequals, hashCodepublic static EmbeddedPdfLink createDynamicObject(long handle)
public static EmbeddedPdfLink create(Document targetDocument, Rectangle boundingBox, FileReference fileReference)
targetDocument but not yet part of any page.
It can be added to a page's list of links.targetDocument - The output document with which the returned object is associatedboundingBox - The location on the pagefileReference - The embedded PDF filejava.lang.IllegalArgumentException - if the targetDocument is nulljava.lang.IllegalArgumentException - if the targetDocument has already been closedjava.lang.IllegalArgumentException - if the targetDocument is read-onlyjava.lang.IllegalArgumentException - if the fileReference argument is nulljava.lang.IllegalArgumentException - if the fileReference argument or the containing document has already been closedjava.lang.IllegalArgumentException - if the fileReference argument does not contain a PDF documentjava.lang.IllegalArgumentException - if the fileReference argument is neither used in a file attachment annotation nor has it been appended to the targetDocument's list of plain embedded or associated files.java.lang.IllegalArgumentException - if the fileReference argument is used in a file attachment annotation and this annotation has not been appended to a page's list of annotations.java.lang.IllegalArgumentException - if boundingBox is nullpublic static EmbeddedPdfLink createFromQuadrilaterals(Document targetDocument, QuadrilateralList activeArea, FileReference fileReference)
activeArea.
The link is associated with the targetDocument but not yet part of any page.
It can be added to a page's list of links.targetDocument - The document in which the links is usedactiveArea - The active link area on the page.fileReference - The embedded PDF filejava.lang.IllegalArgumentException - if the targetDocument is nulljava.lang.IllegalArgumentException - if the targetDocument has already been closedjava.lang.IllegalArgumentException - if the targetDocument is read-onlyjava.lang.IllegalArgumentException - if the fileReference argument is nulljava.lang.IllegalArgumentException - if the fileReference argument or the containing document has already been closedjava.lang.IllegalArgumentException - if the fileReference argument does not contain a PDF documentjava.lang.IllegalArgumentException - if the fileReference argument is neither used in a file attachment annotation nor has it been appended to the targetDocument's list of plain embedded or associated files.java.lang.IllegalArgumentException - if the fileReference argument is used in a file attachment annotation and this annotation has not been appended to a page's list of annotations.java.lang.IllegalArgumentException - if the activeArea argument is nulljava.lang.IllegalArgumentException - if the activeArea is emptypublic java.lang.Boolean getNewWindow()
null: The viewer uses its default behavior.
true: Open the document in an additional window.
false: Replace the parent document with the embedded document.
java.lang.IllegalStateException - if the object has already been closedpublic void setNewWindow(java.lang.Boolean value)
null: The viewer uses its default behavior.
true: Open the document in an additional window.
false: Replace the parent document with the embedded document.
java.lang.IllegalStateException - if the object has already been closedjava.lang.UnsupportedOperationException - if the document is read-onlyjava.lang.IllegalStateException - if the annotation has already been appended to a page's list of annotations