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

PDFPage Class Methods
In This Topic

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

Public Methods

| Name | Description
--- | --- | ---
| addAnnotation | Adds an annotation to the page.
| addField | Add a form field to the page.
| addOptionalContentResource | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| addPropertyResource | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| convertDisplayPointToStandardPoint | Converts a point from the display coordinate system (origin of coordinate system in top left corner of display page area) to standard PDF coordinate system (origin of coordinate system in bottom left corner of page media box).
| convertDisplayRectangleToStandardRectangle | Converts a rectangle on the page from display coordinate system (origin of coordinate system in top left corner of display page area) to standard PDF coordinate system (origin of coordinate system in bottom left corner of page media box).
| convertStandardPointToDisplayPoint | Converts a point from standard PDF coordinate system (origin of coordinate system in bottom left corner of page media box) to display coordinate system (origin of coordinate system in top left corner of display page area).
| convertStandardRectangleToDisplayRectangle | Converts a rectangle on the page from standard PDF coordinate system (origin of coordinate system in bottom left corner of page media box) to display coordinate system (origin of coordinate system in top left corner of display page area).
| getAnnotation | Gets the annotation at the specified index.
| getAnnotations | Gets the list of page annotations.
| getArtBox | Gets the art box.
| getBleedBox | Gets the bleed box.
| getCanvas | Gets the page canvas.
| getCloseAction | Gets the page close action.
| getColorSpaceResource | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| getContentStreamContainer | Gets the inner COS dictionary. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| getCosPage | Gets the COS dictionary asssociated with this object. Incorrect manipulation of the information in the COS dictionary can lead to invalid PDF files.
| getCropBox | Gets the crop box.
| getDocument | Gets the PDF document.
| getField | Gets the form field with the specified name.
| getFields | Gets the page form fields.
| getFontResource | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| getGraphicsStateResource | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| getHeight | Gets the visual page height. The visual height is the height of the page as it is seen on the display. It is always measured on vertical no matter the page rotation.
| getIsEvaluationMessageAdded | This method supports the internal library infrastructure and should not be used by external client code.
| getMediaBox | Gets the media box.
| getOpenAction | Gets the page open action.
| getOptionalContentGroup | Gets the optional content group with the specified name.
| getOptionalContentGroups | Gets the list of optional content groups included in the page content. This collection is filled automatically with the optional content groups drawn on the page, either when page content is created or when a page is loaded from a source file.
| getPageFonts | Gets the set of fonts included in this page. This method examines the fonts included in page's resources dictionary. It is possible that not all the fonts are actually used on the page.
| getPageSize | Gets the PDF page size to a predefined value. The value returned by this property is matched against predefined page sizes within a certain margin () so the Width and Height properties of the returned object might not match the actual page Width and Height.
| getParent | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| getPatternResource | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| getPropertyResource | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| getResource | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| getResourcesDictionary | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| getRotation | Gets the rotation angle.
| getShadingResource | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| getTabOrder | Gets the annotations tab order.
| getTrimBox | Gets the trim box.
| getUserUnit | Gets the page user unit.
| getViewports | Gets the page viewports.
| getWidth | Gets the visual page width. The visual width is the width of the page as it is seen on the display. It is always measured on horizontal no matter the page rotation.
| getXmpMetadata | Gets the XMP page metadata.
| getXObjectResource | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| loadAnnotations | This method supports the internal library infrastructure and should not be used by external client code.
| mapMarkedContentIdentifierToStructureElement | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| mergeGraphicsStreams | This method supports the internal library infrastructure and should not be used by external client code.
| save | Saves the PDF page. The page must be included in a document and the save procedure must be already initiated by a call.
| saveCanvas | Saves the page canvas. The page graphics can be composed internally of multiple fragments. If you are working with large vector graphics, such as maps, then you can split the page graphics in fragments and save each fragmment as soon as it is done in order to reduce memory consumption. A graphics fragment is automatically created when method is called. The page must be included in a document and the save procedure must be already initiated by a call.
| saveImages | Saves the images drawn on the PDF page. The page must be included in a document and the save procedure must be already initiated by a call.
| setArtBox | Sets the art box.
| setBleedBox | Sets the bleed box.
| setCanvasPosition | Sets the position of the page graphics relative to existing page content. If the page is newly created this method has no effect since there is no previous content. If the page has been extracted from a PDF file or has been created by loading a PDF file into a then the page graphics can be under the existing page content or on top of existing page content (default).
| setCloseAction | Sets the page close action.
| setCropBox | Sets the crop box.
| setHeight | Sets the visual page height. The visual height is the height of the page as it is seen on the display. It is always measured on vertical no matter the page rotation.
| setIsEvaluationMessageAdded | This method supports the internal library infrastructure and should not be used by external client code.
| setMediaBox | Sets the media box.
| setOpenAction | Sets the page open action.
| setPageSize | Sets the PDF page size to a predefined value.
| setRotation | Sets the rotation angle. The accepted values for this method are 0, 90, 180 and 270 degrees.
| setTabOrder | Sets the annotations tab order.
| setTrimBox | Sets the trim box.
| setUserUnit | Sets the page user unit.
| setViewports | Sets the page viewports.
| setWidth | Sets the visual page width. The visual width is the width of the page as it is seen on the display. It is always measured on horizontal no matter the page rotation.
| setXmpMetadata | Sets the XMP page metadata.
| zInternalMethod43 | This method supports the internal library infrastructure and should not be used by external client code.
| zInternalMethod44 | This method supports the internal library infrastructure and should not be used by external client code.
| zInternalMethod46 | This method supports the internal library infrastructure and should not be used by external client code.
| zInternalMethod47 | This method supports the internal library infrastructure and should not be used by external client code.
| zInternalMethod48 | This method supports the internal library infrastructure and should not be used by external client code.
| zInternalMethod49 | This method supports the internal library infrastructure and should not be used by external client code.
| zInternalMethod50 | This method supports the internal library infrastructure and should not be used by external client code.
| zInternalMethod51 | This method supports the internal library infrastructure and should not be used by external client code.
| zInternalMethod52 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| zInternalMethod53 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| zInternalMethod54 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| zInternalMethod55 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| zInternalMethod56 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)
| zInternalMethod57 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.PDFContentStreamContainer)

Top
See Also

#### Reference

PDFPage Class
com.o2sol.pdf4java Package

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.