DynamicPDF by ceTe Software

com.cete.dynamicpdf.merger
Class PdfPage

java.lang.Object
  extended by com.cete.dynamicpdf.merger.PdfPage

public class PdfPage
extends java.lang.Object

Represents a page from an imported PDF document.

Licensing:
This class is a DynamicPDF Merger Standard Edition feature. One of the following licenses is required for non-evaluation usage:


Method Summary
 byte[] getContents()
          Returns the uncompressed binary contents of the page.
 java.lang.String getDictionaryValue(java.lang.String key)
          Returns the value of a given page dictionary key.
 PageDimensions getDimensions()
          Gets the page dimensions of the page.
 FontInformation[] getFonts()
          Gets the informaton of all the fonts present in the page.
 ImageInformation[] getImages()
          Returns an array of ImageInformation objects of all the images present in the pdf page.
 PdfNoteAnnotation[] getNoteAnnotations()
          Gets the note annotations from the the PDF page.
 int getRotate()
          Gets the rotation value of the page.
 java.lang.String getText()
          Gets the text in the page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNoteAnnotations

public PdfNoteAnnotation[] getNoteAnnotations()
Gets the note annotations from the the PDF page.

Returns:
array of note annotations present in the PDF page.

getDictionaryValue

public java.lang.String getDictionaryValue(java.lang.String key)
Returns the value of a given page dictionary key.

Parameters:
key - The dictionaries key.
Returns:
The dictionary key's value as a string.

getContents

public byte[] getContents()
Returns the uncompressed binary contents of the page.

Returns:
A byte array containing the pages contents.

getRotate

public int getRotate()
Gets the rotation value of the page.

Returns:
the rotation value of the page.

getDimensions

public PageDimensions getDimensions()
Gets the page dimensions of the page.

Returns:
A PageDimensions object.
See Also:
PageDimensions

getFonts

public FontInformation[] getFonts()
Gets the informaton of all the fonts present in the page.

Returns:
an array of the FontInformation.

getText

public java.lang.String getText()
Gets the text in the page.

Returns:
the text in the page. A string containing the text in the page. This method can be used to extract the text in the same order the pdf operators are loaded

getImages

public ImageInformation[] getImages()
Returns an array of ImageInformation objects of all the images present in the pdf page. NOTE: This method returns image information only when the license key is applied and it will not work in evaluation mode.

Returns:
An array of ImageInformation objects of all the images present in the document.

Licensing:
This class is a DynamicPDF Merger Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:

  • DynamicPDF Merger Enterprise Edition


DynamicPDF by ceTe Software

API Reference for DynamicPDF v11.02 for Java generated on Sep 02, 2021
© Copyright 2021, ceTe Software