Class ConcatenatePDFs
java.lang.Object
org.nuxeo.ecm.automation.core.operations.blob.ConcatenatePDFs
Given a File document holding a pdf on the file:content property and 2 pdfs on the files:files property, the
following operation will provide a pdf that is the result of the merge of all the pdfs, with the content of the one
in file:content property first.
- Since:
- 5.8
-
Field Summary
Modifier and TypeFieldDescriptionprotected OperationContext
protected String
static final String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Blob
appendPDFs
(org.apache.pdfbox.multipdf.PDFMergerUtility ut) protected void
Check if blob is a pdf.protected void
handleBlobToAppend
(org.apache.pdfbox.multipdf.PDFMergerUtility ut) Check if blob to append is a PDF blob.
-
Field Details
-
ID
- See Also:
-
ctx
-
xpathBlobToAppend
-
filename
-
-
Constructor Details
-
ConcatenatePDFs
public ConcatenatePDFs()
-
-
Method Details
-
run
- Throws:
OperationException
IOException
-
run
- Throws:
IOException
OperationException
-
appendPDFs
- Throws:
IOException
-
handleBlobToAppend
protected void handleBlobToAppend(org.apache.pdfbox.multipdf.PDFMergerUtility ut) throws IOException, OperationException Check if blob to append is a PDF blob.- Throws:
IOException
OperationException
-
checkPdf
Check if blob is a pdf.- Throws:
OperationException
-