Package com.avoka.tm.svc
Class MergeReceiptSvc
java.lang.Object
com.avoka.tm.svc.MergeReceiptSvc
Provides a PDF Merge Receipt service which supports merging of various pdfs.
Examples
The example below merges transaction pfds appending them page by page.
import com.avoka.tm.svc.* import com.avoka.tm.vo.* // Get the transactions list object List<Txn> txns = ... // Merge the receipts byte[] receiptPdf = new MergeReceiptSvc() .setTxns(txns) .mergeReceipt()
The example below merges pfds appending them page by page.
import com.avoka.tm.svc.* import com.avoka.tm.vo.* // List of pdfs List<byte[]> pdfs = ... // Merge pdfs byte[] receiptPdf = new MergeReceiptSvc() .setPdfs(pdfs) .mergeReceipt()
- Since:
- 19.11.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Merge the transaction/pdf list receipts and return the PDF bytes data.Set the pdf-s list parameter.Set the transaction list parameter.
-
Constructor Details
-
MergeReceiptSvc
public MergeReceiptSvc()
-
-
Method Details
-
setTxns
Set the transaction list parameter.- Parameters:
txns
- the transaction list to set- Returns:
- the merge receipt service
-
setPdfs
Set the pdf-s list parameter.- Parameters:
pdfs
- the pdfs list to set- Returns:
- the merge receipt service
-
mergeReceipt
public byte[] mergeReceipt()Merge the transaction/pdf list receipts and return the PDF bytes data.- Returns:
- the rendered PDF data
-