Package org.openpdf.text.pdf
Class PdfAnnotation
java.lang.Object
org.openpdf.text.pdf.PdfObject
org.openpdf.text.pdf.PdfDictionary
org.openpdf.text.pdf.PdfAnnotation
A
PdfAnnotation is a note that is associated with a page.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PdfNamehighlight attributenameprotected PdfIndirectReferenceReference to this annotation.protected PdfWriterFields inherited from class org.openpdf.text.pdf.PdfDictionary
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGESFields inherited from class org.openpdf.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static PdfAnnotationcreateLink(PdfWriter writer, Rectangle rect, PdfName highlight) Creates a link.static PdfAnnotationcreateLink(PdfWriter writer, Rectangle rect, PdfName highlight, String namedDestination) Creates an Annotation with an local destination.static PdfAnnotationcreateLink(PdfWriter writer, Rectangle rect, PdfName highlight, PdfAction action) Creates an Annotation with an Action.Returns an indirect reference to the annotationMethods inherited from class org.openpdf.text.pdf.PdfDictionary
contains, get, getAsDict, getDirectObject, getKeys, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toStringMethods inherited from class org.openpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, isArray, isDictionary, isName, isNull, isNumber, isString, setContent, type
-
Field Details
-
HIGHLIGHT_INVERT
highlight attributename -
writer
-
reference
Reference to this annotation.- Since:
- 2.1.6; was removed in 2.1.5, but restored in 2.1.6
-
-
Constructor Details
-
PdfAnnotation
-
-
Method Details
-
createLink
Creates a link. -
createLink
public static PdfAnnotation createLink(PdfWriter writer, Rectangle rect, PdfName highlight, PdfAction action) Creates an Annotation with an Action. -
createLink
public static PdfAnnotation createLink(PdfWriter writer, Rectangle rect, PdfName highlight, String namedDestination) Creates an Annotation with an local destination. -
getIndirectReference
Returns an indirect reference to the annotation- Returns:
- the indirect reference
-