Class PDFMergeDocumentsOperation
java.lang.Object
org.nuxeo.ecm.platform.pdf.operations.PDFMergeDocumentsOperation
The input document(s) always is(are) the first PDF(s), and each pdf is read in the
xpath field. If
xpath is not set, it is set to the default value file:content.
The operation appends:
- First, The blob referenced in the
toAppendVarNameContext variable. - Then, it appends all the blobs stored in the
toAppendListVarNameContext variable. - And last, it appends the blobs stored in the docs whose IDs are passed in
toAppendDocIDsVarName, using thexpathparameter.
All variable names are optional: You can pass only toAppendVarName, or toAppendVarName and
toAppendDocIDsVarName, or ...
Returns the final PDF.
- Since:
- 8.10
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Blobrun(DocumentModel inDoc) run(DocumentModelList inDocs)
-
Field Details
-
ID
- See Also:
-
session
-
ctx
-
xpath
-
toAppendVarName
-
toAppendListVarName
-
toAppendDocIDsVarName
-
fileName
-
pdfTitle
-
pdfSubject
-
pdfAuthor
-
-
Constructor Details
-
PDFMergeDocumentsOperation
public PDFMergeDocumentsOperation()
-
-
Method Details
-
run
- Throws:
NuxeoException
-
run
- Throws:
NuxeoException
-
doMerge
- Throws:
NuxeoException
-