public class PDFMergeDocumentsOperation extends Object
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 the xpath
parameter.
All variable names are optional: You can pass only toAppendVarName
, or toAppendVarName
and
toAppendDocIDsVarName
, or ...
Returns the final PDF.
Modifier and Type | Field and Description |
---|---|
protected OperationContext |
ctx |
protected String |
fileName |
static String |
ID |
protected String |
pdfAuthor |
protected String |
pdfSubject |
protected String |
pdfTitle |
protected CoreSession |
session |
protected String |
toAppendDocIDsVarName |
protected String |
toAppendListVarName |
protected String |
toAppendVarName |
protected String |
xpath |
Constructor and Description |
---|
PDFMergeDocumentsOperation() |
Modifier and Type | Method and Description |
---|---|
protected Blob |
doMerge(PDFMerge inMergeTool) |
Blob |
run(DocumentModel inDoc) |
Blob |
run(DocumentModelList inDocs) |
public static final String ID
protected CoreSession session
protected OperationContext ctx
protected String toAppendVarName
protected String toAppendListVarName
protected String toAppendDocIDsVarName
protected String pdfSubject
public PDFMergeDocumentsOperation()
public Blob run(DocumentModel inDoc) throws NuxeoException
NuxeoException
public Blob run(DocumentModelList inDocs) throws NuxeoException
NuxeoException
protected Blob doMerge(PDFMerge inMergeTool) throws NuxeoException
NuxeoException
Copyright © 2018 Nuxeo. All rights reserved.