PDF4Java Reference Documentation
com.o2sol.pdf4java.annotations Package / PDFLineAnnotation Class
Collapse All Expand All Members Options: Show All Members Options: Filtered
Include Inherited Members
Include Protected Members
In This Topic

PDFLineAnnotation Class Methods
In This Topic

For a list of all members of this type, see PDFLineAnnotation members.

Public Methods

| Name | Description
--- | --- | ---
| beginInit | Signals the start of the initialization of annotation's properties. The annotation appearance is not updated while properties are initialized. When initialization is completed, call to signal the end of initialization and update the annotation appearance. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| canRotate | Gets a value indicating whether the annotation should be rotated when the page is rotated. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| createAnnotationAppearance | Creates the visual appearance for the annotation. This method supports the internal library infrastructure and should not be used by external client code.
| createAppearance | Creates the visual appearance for the annotation. This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| createFromCosAnnotation | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| createFromXFDF | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| endInit | Signals the end of the initialization of annotation's properties. The annotation appearance is updated when the initialization ends. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| exportAsXFDF | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| flatten | Merges the annotation appearance with the page content stream. After the annotation is flattened, it is removed from the page's annotations collection. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getAuthor | Gets the annotation author. (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| getContents | Gets the annotation contents. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getCosAnnotation | Gets the COS annotation. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getCreationDate | Gets the annotation creation date. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getDisplayRectangle | Gets the display rectangle of this annotation. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getEndLineStyle | Gets the style used for the end of the line.
| getEndPoint | Gets the line's end point.
| getID | Gets the annotation ID. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getInReplyTo | Gets the annotation that this annotation is "in reply to". (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| getInteriorColor | Gets the annotation interior color.
| getLineColor | Gets the annotation line color.
| getLineWidth | Gets the line width.
| getModifiedDate | Gets the annotation modified date. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getMouseDownAction | Gets the mouse down action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getMouseEnterAction | Gets the mouse enter action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getMouseLeaveAction | Gets the mouse leave action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getMouseUpAction | Gets the mouse up action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getNormalAppearance | Gets the annotation normal appearance. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getOpacity | Gets the annotation opacity. (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| getPage | Gets the page that contains this annotation.. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPageCloseAction | Gets the page close action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPageInvisibleAction | Gets the page invisible action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPageOpenAction | Gets the page open action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPageVisibleAction | Gets the page visible action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPDFRectangle | Gets the annotation rectangle in standard PDF coordinates. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPopup | Gets the associated popup annotation. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getRotation | Gets the annotation rotation angle. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getStartLineStyle | Gets the style used for the start of the line.
| getStartPoint | Gets the line's start point.
| getSubject | Gets the annotation subject. (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| getToggleNoView | Gets a value indicating whether the interpretation of isViewable method should be reversed. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getType | Gets the type of the annotation. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| importFromXFDF | This method supports the internal library infrastructure and should not be used by external client code.
| isHidden | Gets a value indicating whether to display the annotation or not. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isInvisible | Gets a value indicating whether the annotation should be displayed if it does not belong to one of the standard annotation types. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isLocked | Gets a value indicating whether the annotation should be modified. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isLockedContents | Gets a value indicating whether the annotation contents should be modified. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isPrintable | Gets a value indicating whether the annotation should be printed. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isReadOnly | Gets a value indicating whether the annotation is read only. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isViewable | Gets a value indicating whether the annotation should be displayed. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isZoomable | Gets a value indicating whether the annotation should be scaled to current page zoom. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setAuthor | Sets the annotation author. (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| setCanRotate | Sets a value indicating whether the annotation should be rotated when the page is rotated. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setContents | Sets the annotation contents. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setCreationDate | Sets the annotation creation date. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setDisplayRectangle | Sets the display rectangle of this annotation Object.
| setEndLineStyle | Sets the style used for the end of the line.
| setEndPoint | Overloaded. Sets the line's end point. Because the end point uses page display coordinates, the annotation must be added to the page before setting the end point.
| setHidden | Sets a value indicating whether to display the annotation or not. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setID | Sets the annotation ID. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setInReplyTo | Sets the annotation that this annotation is "in reply to". (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| setInteriorColor | Sets the annotation interior color. The color must be RGB, CMYK or Gray.
| setInvisible | Sets a value indicating whether the annotation should be displayed if it does not belong to one of the standard annotation types. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setLineColor | Sets the annotation line color. The color must be Gray, RGB or CMYK.
| setLineWidth | Sets the line width.
| setLocked | Sets a value indicating whether the annotation should be modified. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setLockedContents | Sets a value indicating whether the annotation contents should be modified. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setModifiedDate | Sets the annotation modified date. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setMouseDownAction | Sets the mouse down action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setMouseEnterAction | Sets the mouse enter action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setMouseLeaveAction | Sets the mouse leave action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setMouseUpAction | Sets the mouse up action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setNormalAppearance | Sets the annotation normal appearance. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setOpacity | Sets the annotation opacity. (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| setPageCloseAction | Sets the page close action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setPageInvisibleAction | Sets the page invisible action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setPageOpenAction | Sets the page open action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setPageVisibleAction | Sets the page visible action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setPDFRectangle | Sets the annotation rectangle in standard PDF coordinates. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setPopup | Sets the associated popup annotation. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setPrintable | Sets a value indicating whether the annotation should be printed. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setReadOnly | Sets a value indicating whether the annotation is read only. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setRotation | Sets the annotation rotation angle. The accepted values for this property are 0, 90, 180 and 270 degrees. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setStartLineStyle | Sets the style used for the start of the line.
| setStartPoint | Overloaded. Sets the line's start point. Because the start point uses page display coordinates, the annotation must be added to the page before setting the start point.
| setSubject | Sets the annotation subject. (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| setToggleNoView | Sets a value indicating whether the interpretation of isViewable method should be reversed. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setViewable | Sets a value indicating whether the annotation should be displayed. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setZoomable | Sets a value indicating whether the annotation should be scaled to current page zoom. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod1 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod2 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod3 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod4 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod5 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod6 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod7 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod8 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)

Top
Protected Methods

| Name | Description
--- | --- | ---
| initActions | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| initAdditionalAction | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| initAppearance | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setAction | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| writeXFDFAttributes | This method supports the internal library infrastructure and should not be used by external client code.
| writeXFDFChildNodes | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| writeXFDFEndElement | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| writeXFDFStartElement | This method supports the internal library infrastructure and should not be used by external client code.

Top
See Also

#### Reference

PDFLineAnnotation Class
com.o2sol.pdf4java.annotations Package

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.