Example usage for Java com.lowagie.text.pdf PdfReader fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | consolidateNamedDestinations |
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. |
void | close() Closes the reader |
byte[] | computeUserPassword() |
AcroFields | getAcroFields() Gets a read-only version of AcroFields . |
PRAcroForm | getAcroForm() Returns the document's acroform, if it has one. |
PdfDictionary | getCatalog() Returns the document's catalog. |
int | getCertificationLevel() Gets the certification level for this document. |
Rectangle | getCropBox(int index) Gets the crop box without taking rotation into account. |
int | getCryptoMode() |
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(int pageNum) Gets the contents of the page. |
PdfDictionary | getPageN(int pageNum) Gets the dictionary that represents a page. |
int | getPageRotation(int index) Gets the page rotation. |
int | getPageRotation(PdfDictionary page) |
Rectangle | getPageSize(int index) Gets the page size without taking rotation into account. |
Rectangle | getPageSize(PdfDictionary page) Gets the page from a page dictionary |
Rectangle | getPageSizeWithRotation(int index) Gets the page size, taking rotation into account. |
Rectangle | getPageSizeWithRotation(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(int idx) |
PdfObject | getPdfObjectRelease(PdfObject obj) |
PdfObject | getPdfObjectRelease(int idx) |
char | getPdfVersion() Gets the PDF version. |
int | getPermissions() Gets the encryption permissions. |
RandomAccessFileOrArray | getSafeFile() 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. |
boolean | isEncrypted() Returns true if the PDF is encrypted. |
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 | isRebuilt() Checks if the document had errors and was rebuilt. |
byte[] | LZWDecode(byte in[]) Decodes a stream that has the LZWDecode filter. |
int | removeUnusedObjects() Removes all the unreachable objects. |
void | removeUsageRights() Removes any usage rights that this PDF may have. |
void | selectPages(String ranges) Selects the pages to keep in the document. |
void | selectPages(List pagesToKeep) Selects the pages to keep in the document. |
void | setPageContent(int pageNum, byte content[]) Sets the contents of the page. |