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

NameTypeAccessDescription
PAGE_STOP_KEYSSet<String>ReadKeys skipped when cloning a page dictionary.
ANNOT_STOP_KEYSSet<String>ReadKeys skipped when cloning an annotation dictionary.
GLOBAL_STOP_KEYSSet<String>ReadKeys skipped in any dictionary.

méthodes

SignatureDescription
PdfObjectCloner(registry: ReferenceRegistry)
clonePageDict(srcPageDict: PdfDictionary)PdfDictionaryClones a page dictionary (skipping /Parent and /StructParents).
cloneAnnotationDict(srcAnnot: PdfDictionary)PdfDictionaryClones an annotation dictionary (skipping /P and /Dest, clearing /A/D).
cloneAny(src: PdfBase)PdfBaseClones 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
 Français