Java com.itextpdf.text.pdf PdfReader fields, constructors, methods, implement or subclass

Example usage for Java com.itextpdf.text.pdf PdfReader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.itextpdf.text.pdf PdfReader.

The text is from its open source code.

Field

booleanunethicalreading
The iText developers are not responsible if you decide to change the value of this static parameter.
booleanconsolidateNamedDestinations

Constructor

Method

voidclose()
Closes the reader, and any underlying stream or data source used to create the reader
byte[]decodeBytes(byte[] b, final PdfDictionary streamDictionary, Map filterHandlers)
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.
AcroFieldsgetAcroFields()
Gets a read-only version of AcroFields.
RectanglegetBoxSize(final int index, final String boxName)
Gets the box size.
PdfDictionarygetCatalog()
Returns the document's catalog.
intgetCertificationLevel()
Gets the certification level for this document.
RectanglegetCropBox(final int index)
Gets the crop box without taking rotation into account.
intgetCryptoMode()
longgetFileLength()
Getter for property fileLength.
HashMapgetInfo()
Returns the content of the document information dictionary as a HashMap of String.
byte[]getMetadata()
Gets the XML metadata.
intgetNumberOfPages()
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.
PdfDictionarygetPageN(final int pageNum)
Gets the dictionary that represents a page.
PdfDictionarygetPageNRelease(final int pageNum)
PdfDictionarygetPageResources(final int pageNum)
Retrieve the given page's resource dictionary
PdfDictionarygetPageResources(final PdfDictionary pageDict)
Retrieve the given page's resource dictionary
intgetPageRotation(final int index)
Gets the page rotation.
intgetPageRotation(final PdfDictionary page)
RectanglegetPageSize(final int index)
Gets the page size without taking rotation into account.
RectanglegetPageSize(final PdfDictionary page)
Gets the page from a page dictionary
RectanglegetPageSizeWithRotation(final int index)
Gets the page size, taking rotation into account.
RectanglegetPageSizeWithRotation(final PdfDictionary page)
Gets the rotated page from a page dictionary.
PdfObjectgetPdfObject(PdfObject obj)
Reads a PdfObject resolving an indirect reference if needed.
PdfObjectgetPdfObject(final int idx)
PdfObjectgetPdfObjectRelease(final PdfObject obj)
PdfObjectgetPdfObjectRelease(final int idx)
chargetPdfVersion()
Gets the PDF version.
longgetPermissions()
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.
intgetXrefSize()
Gets the number of xref objects.
booleanis128Key()
Returns true if the PDF has a 128 bit key encryption.
booleanisEncrypted()
Returns true if the PDF is encrypted.
booleanisMetadataEncrypted()
booleanisOpenedWithFullPermissions()
Checks if the document was opened with the owner password so that the end application can decide what level of access restrictions to apply.
booleanisTampered()
Checks if the document was changed.
PdfObjectkillIndirect(final PdfObject obj)
Eliminates the reference to the object freeing the memory used by it and clearing the xref entry.
intremoveUnusedObjects()
Removes all the unreachable objects.
voidselectPages(final String ranges)
Selects the pages to keep in the document.
voidselectPages(final List pagesToKeep)
Selects the pages to keep in the document.
voidsetPageContent(final int pageNum, final byte content[])
Sets the contents of the page.