org.foray.pdf.object
Class PDFAnnotation
java.lang.Object
org.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFAnnotation
- Direct Known Subclasses:
- PDFLink
public abstract class PDFAnnotation
- extends PDFObject
Abstract superclass for /Annot objects.
Methods inherited from class org.foray.pdf.object.PDFObject |
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFAnnotation
public PDFAnnotation(PDFDocument doc,
Rectangle2D r)
- Create objects associated with a link annotation (GoToR).
- Parameters:
doc
- The PDF document being built.r
- The rectangle which outlines the link.
getRectangle
public Rectangle2D getRectangle()
- Returns the rectange for this annotation.
- Returns:
- Returns the rectangle.
Copyright © 2017. All rights reserved.