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
FieldsModifier and TypeFieldDescriptionprotected OperationContextprotected Stringstatic final Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BlobappendPDFs(org.apache.pdfbox.multipdf.PDFMergerUtility ut) protected voidCheck if blob is a pdf.protected voidhandleBlobToAppend(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:
OperationExceptionIOException
-
run
- Throws:
IOExceptionOperationException
-
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:
IOExceptionOperationException
-
checkPdf
Check if blob is a pdf.- Throws:
OperationException
-