Package com.itextpdf.kernel.utils
Class PdfScriptMerger
java.lang.Object
com.itextpdf.kernel.utils.PdfScriptMerger
Utility class which provides functionality to merge ECMA scripts from pdf documents
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
mergeAdditionalActionsScripts
(PdfDocument source, PdfDocument destination) Copies AA catalog entry ECMA scripts, it only copies first action in chainstatic void
mergeNamesScripts
(PdfDocument source, PdfDocument destination) Copies ECMA scripts from Names catalog entrystatic void
mergeOpenActionsScripts
(PdfDocument source, PdfDocument destination) Copies open actions catalog entry ECMA scripts, it only copies first action in chainstatic void
mergeScripts
(PdfDocument source, PdfDocument destination) Merges ECMA scripts from source to destinations from all possible places for them, it only copies first action in chain for AA and OpenAction entries
-
Constructor Details
-
PdfScriptMerger
public PdfScriptMerger()
-
-
Method Details
-
mergeScripts
Merges ECMA scripts from source to destinations from all possible places for them, it only copies first action in chain for AA and OpenAction entries- Parameters:
-
source
- source document from which script will be copied -
destination
- destination document to which script will be copied
-
mergeAdditionalActionsScripts
Copies AA catalog entry ECMA scripts, it only copies first action in chain- Parameters:
-
source
- source document from which script will be copied -
destination
- destination document to which script will be copied
-
mergeOpenActionsScripts
Copies open actions catalog entry ECMA scripts, it only copies first action in chain- Parameters:
-
source
- source document from which script will be copied -
destination
- destination document to which script will be copied
-
mergeNamesScripts
Copies ECMA scripts from Names catalog entry- Parameters:
-
source
- source document from which script will be copied -
destination
- destination document to which script will be copied
-