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
toAppendVarName
Context variable. - Then, it appends all the blobs stored in the
toAppendListVarName
Context variable. - And last, it appends the blobs stored in the docs whose IDs are passed in
toAppendDocIDsVarName
, using thexpath
parameter.
All variable names are optional: You can pass only toAppendVarName
, or toAppendVarName
and
toAppendDocIDsVarName
, or ...
Returns the final PDF.
- Since:
- 8.10
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Blob
run
(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
-