DocumentActions

Vue de l’ensemble

‘DocumentActions’ est une classe dans Aspose.PDF FOSS pour Java.

Les actions au niveau du document déclenchent (ISO 32000-1:2008, §12.6.4.1, p.417).

Cette classe fournit 13 méthodes pour travailler avec des objets DocumentActions dans les programmes Java. Les méthodologies disponibles comprennent: ‘DocumentAccions’, ‘getAfterPrinting’, getBetterClosing' , 'gettBeforePrenting, ‘GetBeterSaving’, ‘getOpenAction , ’setAtterPranting‘, ‘setBaterSave’, 'setBe BeforeClanning et 1 méthode supplémentaire. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspoe.PDF FOSS pour le package Java . Propriétés : ‘afterPrintering ́, aftersSaving’before, ''fourbeoise,''foursbeopening.

Propriétés

NameTypeAccessDescription
openActionPdfActionReadReturns the action that runs when the document is opened
({@code /OpenAction}), or {@code null} if absent or the entry is a
destination array instead of an action.
beforeClosingPdfActionRead@return the will-close action ({@code /AA/WC}), or null.
beforeSavingPdfActionRead@return the will-save action ({@code /AA/WS}), or null.
afterSavingPdfActionRead@return the did-save action ({@code /AA/DS}), or null.
beforePrintingPdfActionRead@return the will-print action ({@code /AA/WP}), or null.
afterPrintingPdfActionRead@return the did-print action ({@code /AA/DP}), or null.

méthodes

SignatureDescription
DocumentActions(catalog: PdfDictionary, document: Document)Wraps the given catalog dictionary as a document-actions view.
getOpenAction()PdfActionReturns the action that runs when the document is opened
({@code /OpenAction}), or {@code null} if absent or the entry is a
destination array instead of an action.
setOpenAction(action: PdfAction)Sets the {@code /OpenAction} entry.
getBeforeClosing()PdfAction@return the will-close action ({@code /AA/WC}), or null.
getBeforeSaving()PdfAction@return the will-save action ({@code /AA/WS}), or null.
getAfterSaving()PdfAction@return the did-save action ({@code /AA/DS}), or null.
getBeforePrinting()PdfAction@return the will-print action ({@code /AA/WP}), or null.
getAfterPrinting()PdfAction@return the did-print action ({@code /AA/DP}), or null.
setBeforeClosing(action: PdfAction)Sets the will-close ({@code /AA/WC}) action; null removes the entry.
setBeforeSaving(action: PdfAction)Sets the will-save ({@code /AA/WS}) action; null removes the entry.
setAfterSaving(action: PdfAction)Sets the did-save ({@code /AA/DS}) action; null removes the entry.
setBeforePrinting(action: PdfAction)Sets the will-print ({@code /AA/WP}) action; null removes the entry.
setAfterPrinting(action: PdfAction)Sets the did-print ({@code /AA/DP}) action; null removes the entry.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français