Example usage for Java com.itextpdf.text.pdf PdfReader fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | unethicalreading The iText developers are not responsible if you decide to change the value of this static parameter. |
boolean | consolidateNamedDestinations |
void | close() Closes the reader, and any underlying stream or data source used to create the reader |
byte[] | decodeBytes(byte[] b, final PdfDictionary streamDictionary, Map Decode a byte[] applying the filters specified in the provided dictionary using the provided filter handlers. |
byte[] | FlateDecode(final byte in[], ByteArrayOutputStream out) Decodes a stream that has the FlateDecode filter. |
byte[] | FlateDecode(final byte in[], final boolean strict) A helper to FlateDecode. |
AcroFields | getAcroFields() Gets a read-only version of AcroFields . |
Rectangle | getBoxSize(final int index, final String boxName) Gets the box size. |
PdfDictionary | getCatalog() Returns the document's catalog. |
int | getCertificationLevel() Gets the certification level for this document. |
Rectangle | getCropBox(final int index) Gets the crop box without taking rotation into account. |
int | getCryptoMode() |
long | getFileLength() Getter for property fileLength. |
HashMap | getInfo() Returns the content of the document information dictionary as a HashMap of String . |
byte[] | getMetadata() Gets the XML metadata. |
int | getNumberOfPages() Gets the number of pages in the document. |
byte[] | getPageContent(final int pageNum, final RandomAccessFileOrArray file) Gets the contents of the page. |
byte[] | getPageContent(final PdfDictionary page) Gets the content from the page dictionary. |
byte[] | getPageContent(final int pageNum) Gets the contents of the page. |
PdfDictionary | getPageN(final int pageNum) Gets the dictionary that represents a page. |
PdfDictionary | getPageNRelease(final int pageNum) |
PdfDictionary | getPageResources(final int pageNum) Retrieve the given page's resource dictionary |
PdfDictionary | getPageResources(final PdfDictionary pageDict) Retrieve the given page's resource dictionary |
int | getPageRotation(final int index) Gets the page rotation. |
int | getPageRotation(final PdfDictionary page) |
Rectangle | getPageSize(final int index) Gets the page size without taking rotation into account. |
Rectangle | getPageSize(final PdfDictionary page) Gets the page from a page dictionary |
Rectangle | getPageSizeWithRotation(final int index) Gets the page size, taking rotation into account. |
Rectangle | getPageSizeWithRotation(final PdfDictionary page) Gets the rotated page from a page dictionary. |
PdfObject | getPdfObject(PdfObject obj) Reads a PdfObject resolving an indirect reference if needed. |
PdfObject | getPdfObject(final int idx) |
PdfObject | getPdfObjectRelease(final PdfObject obj) |
PdfObject | getPdfObjectRelease(final int idx) |
char | getPdfVersion() Gets the PDF version. |
long | getPermissions() Gets the encryption permissions. |
byte[] | getStreamBytes(final PRStream stream) Get the content from a stream applying the required filters. |
byte[] | getStreamBytesRaw(final PRStream stream) Get the content from a stream as it is without applying any filter. |
int | getXrefSize() Gets the number of xref objects. |
boolean | is128Key() Returns true if the PDF has a 128 bit key encryption. |
boolean | isEncrypted() Returns true if the PDF is encrypted. |
boolean | isMetadataEncrypted() |
boolean | isOpenedWithFullPermissions() Checks if the document was opened with the owner password so that the end application can decide what level of access restrictions to apply. |
boolean | isTampered() Checks if the document was changed. |
PdfObject | killIndirect(final PdfObject obj) Eliminates the reference to the object freeing the memory used by it and clearing the xref entry. |
int | removeUnusedObjects() Removes all the unreachable objects. |
void | selectPages(final String ranges) Selects the pages to keep in the document. |
void | selectPages(final List Selects the pages to keep in the document. |
void | setPageContent(final int pageNum, final byte content[]) Sets the contents of the page. |