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

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

Introduction

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

The text is from its open source code.

Field

Constructor

PdfReader(String filename)
Reads and parses a PDF document.
PdfReader(byte pdfIn[])
Reads and parses a PDF document.
PdfReader(URL url)
Reads and parses a PDF document.
PdfReader(InputStream is)
Reads and parses a PDF document.
PdfReader(PdfReader reader)
Creates an independent duplicate.
PdfReader(String filename, byte ownerPassword[])
Reads and parses a PDF document.
PdfReader(byte pdfIn[], byte ownerPassword[])
Reads and parses a PDF document.
PdfReader(URL url, byte ownerPassword[])
Reads and parses a PDF document.
PdfReader(InputStream is, byte ownerPassword[])
Reads and parses a PDF document.
PdfReader(RandomAccessFileOrArray raf, byte ownerPassword[])
Reads and parses a pdf document.

Method

voidclose()
Closes the reader
byte[]computeUserPassword()
AcroFieldsgetAcroFields()
Gets a read-only version of AcroFields.
PRAcroFormgetAcroForm()
Returns the document's acroform, if it has one.
PdfDictionarygetCatalog()
Returns the document's catalog.
intgetCertificationLevel()
Gets the certification level for this document.
RectanglegetCropBox(int index)
Gets the crop box without taking rotation into account.
intgetCryptoMode()
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(int pageNum)
Gets the contents of the page.
PdfDictionarygetPageN(int pageNum)
Gets the dictionary that represents a page.
intgetPageRotation(int index)
Gets the page rotation.
intgetPageRotation(PdfDictionary page)
RectanglegetPageSize(int index)
Gets the page size without taking rotation into account.
RectanglegetPageSize(PdfDictionary page)
Gets the page from a page dictionary
RectanglegetPageSizeWithRotation(int index)
Gets the page size, taking rotation into account.
RectanglegetPageSizeWithRotation(PdfDictionary page)
Gets the rotated page from a page dictionary.
PdfObjectgetPdfObject(PdfObject obj)
Reads a PdfObject resolving an indirect reference if needed.
PdfObjectgetPdfObject(int idx)
PdfObjectgetPdfObjectRelease(PdfObject obj)
PdfObjectgetPdfObjectRelease(int idx)
chargetPdfVersion()
Gets the PDF version.
intgetPermissions()
Gets the encryption permissions.
RandomAccessFileOrArraygetSafeFile()
Gets a new file instance of the original PDF document.
byte[]getStreamBytes(PRStream stream)
Get the content from a stream applying the required filters.
byte[]getStreamBytesRaw(PRStream stream)
Get the content from a stream as it is without applying any filter.
booleanisEncrypted()
Returns true if the PDF is encrypted.
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.
booleanisRebuilt()
Checks if the document had errors and was rebuilt.
byte[]LZWDecode(byte in[])
Decodes a stream that has the LZWDecode filter.
intremoveUnusedObjects()
Removes all the unreachable objects.
voidremoveUsageRights()
Removes any usage rights that this PDF may have.
voidselectPages(String ranges)
Selects the pages to keep in the document.
voidselectPages(List pagesToKeep)
Selects the pages to keep in the document.
voidsetPageContent(int pageNum, byte content[])
Sets the contents of the page.