PdfObjectCloner
Vue de l’ensemble
‘PdfObjectCloner’ est une classe dans Aspose.PDF FOSS pour Java.
Il clone récurrents un graphisme d’objet PDF à partir d’un seul document afin que le résultat soit indépendant du document source et qu’il puisse être inséré en toute sécurité dans un document cible.
Cette classe fournit 5 méthodes pour travailler avec les objets PdfObjectCloner dans les programmes Java. Les méthodologies disponibles comprennent: Pdf ObjectKloners, cloneAnnotationDict , ‘clonAnyetcloonePageDact. Tous les membres publics sont accessibles à n'importe quelle application Java après l'installation de l’Aspouse.PDF FOSS pour le package Java . Propriétés : ANNOT_STOP_KEYS;GLOBAL_ STOP-KEY; PAGE_Stop_ KEYS’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
PAGE_STOP_KEYS | Set<String> | Read | Keys skipped when cloning a page dictionary. |
ANNOT_STOP_KEYS | Set<String> | Read | Keys skipped when cloning an annotation dictionary. |
GLOBAL_STOP_KEYS | Set<String> | Read | Keys skipped in any dictionary. |
méthodes
| Signature | Description |
|---|---|
PdfObjectCloner(registry: ReferenceRegistry) | |
clonePageDict(srcPageDict: PdfDictionary) → PdfDictionary | Clones a page dictionary (skipping /Parent and /StructParents). |
cloneAnnotationDict(srcAnnot: PdfDictionary) → PdfDictionary | Clones an annotation dictionary (skipping /P and /Dest, clearing /A/D). |
cloneAny(src: PdfBase) → PdfBase | Clones an arbitrary PDF object (no extra stop-keys beyond the global set). |
forgetSource(src: PdfBase) | Evicts {@code src} from the visited cache so the next {@code clone*} |
| call on it produces a fresh clone instead of returning the previously | |
| cached one. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise