Package com.avoka.fc.core.util
Class PDFUtils
java.lang.Object
com.avoka.fc.core.util.PDFUtils
A utility class for assisting with the manipulation of flat PDF files.
- Since:
- 4.1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
Tasks a List<byte[]> of PDF documents and appends them together page by page.static byte[]
mergeReceiptPDF
(List<Submission> submissions) This takes a List of submissions, it returns a byte[] containing the receipts appended together page by page
-
Constructor Details
-
PDFUtils
public PDFUtils()
-
-
Method Details
-
mergePDF
Tasks a List<byte[]> of PDF documents and appends them together page by page. The resulting merge document is returned- Parameters:
pdfList
- a a List of PDF documents byte[]- Returns:
- the merged document
- Throws:
IOException
- an IO error occurs
-
mergeReceiptPDF
This takes a List of submissions, it returns a byte[] containing the receipts appended together page by page- Parameters:
submissions
- the Listcontaining the generated pdf to merge. - Returns:
- a byte[] containing the receipts appended together page by page
- Throws:
IOException
- an IO error occurs
-