PDFPARSER
Vue de l’ensemble
‘PDFParser’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: ‘Closeable’.
Pariser de fichiers PDF intégral en mettant en œuvre la charge d’objets lisse.
Cette classe fournit 16 méthodes pour travailler avec les objets PDFParser dans les programmes Java. Les méthodologies disponibles comprennent: ‘PDFParzer’, ‘close’, getAllObjectKeys', ‘getCatalog’, 'getDecryptor', ’getTrailer', ‚getVersion, ‘initSecurity , 'isEncrypted et 2 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : ‘allObjects` ; ‘catalog’, “decrypter’, «encrypte », «trailer », version.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
trailer | PdfDictionary | Read | Returns the trailer dictionary. |
version | float | Read | Returns the PDF version (e.g. |
catalog | PdfDictionary | Read | Returns the root catalog dictionary (the value of /Root in the trailer). |
allObjectKeys | Set<PdfObjectKey> | Read | Returns all known object keys from the cross-reference table. |
encrypted | boolean | Read | Returns true if this document is encrypted. |
decryptor | PDFDecryptor | Read | Returns the active decryptor, if the document was opened successfully with encryption. |
méthodes
| Signature | Description |
|---|---|
PDFParser(reader: RandomAccessReader) | Constructs a new PDFParser for the given source. |
parse() | Parses the PDF file structure: header, cross-reference, and trailer. |
getObject(key: PdfObjectKey) → PdfBase | Loads an object by its key (object number + generation number). |
getObject(objectNumber: int) → PdfBase | Loads an object by object number (generation 0). |
getTrailer() → PdfDictionary | Returns the trailer dictionary. |
getVersion() → float | Returns the PDF version (e.g. |
getCatalog() → PdfDictionary | Returns the root catalog dictionary (the value of /Root in the trailer). |
getAllObjectKeys() → Set<PdfObjectKey> | Returns all known object keys from the cross-reference table. |
initSecurity(password: byte[]) | Initializes decryption if the PDF is encrypted. |
initSecurity(password: byte[], customHandler: ICustomSecurityHandler) | Initializes decryption if the PDF is encrypted. |
isEncrypted() → boolean | Returns true if this document is encrypted. |
setDecryptor(decryptor: PDFDecryptor) | Sets the decryptor directly (for testing). |
getDecryptor() → PDFDecryptor | Returns the active decryptor, if the document was opened successfully with encryption. |
resolveReference(obj: PdfBase) → PdfBase | Resolves a PDF object reference to the actual object. |
parseObjectBody() → PdfBase | Parses an object body at the current lexer position. |
close() | Closes the underlying reader, releasing any associated resources. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise