Package com.avoka.fc.core.util
Class PDFUtils
- java.lang.Object
-
- com.avoka.fc.core.util.PDFUtils
-
public class PDFUtils extends Object
A utility class for assisting with the manipulation of flat PDF files.- Since:
- 4.1.0
-
-
Constructor Summary
Constructors Constructor Description PDFUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
mergePDF(List<byte[]> pdfList)
Tasks a Listof 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
-
-
-
Method Detail
-
mergePDF
public static byte[] mergePDF(List<byte[]> pdfList) throws IOException
Tasks a Listof 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
public static byte[] mergeReceiptPDF(List<Submission> submissions) throws IOException
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
-
-