Package com.avoka.tm.svc
Class MergeReceiptSvc
- java.lang.Object
-
- com.avoka.tm.svc.MergeReceiptSvc
-
public class MergeReceiptSvc extends Object
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
Constructors Constructor Description MergeReceiptSvc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
mergeReceipt()
Merge the transaction/pdf list receipts and return the PDF bytes data.MergeReceiptSvc
setPdfs(List<byte[]> pdfs)
Set the pdf-s list parameter.MergeReceiptSvc
setTxns(List<Txn> txns)
Set the transaction list parameter.
-
-
-
Method Detail
-
setTxns
public MergeReceiptSvc setTxns(List<Txn> txns)
Set the transaction list parameter.- Parameters:
txns
- the transaction list to set- Returns:
- the merge receipt service
-
setPdfs
public MergeReceiptSvc setPdfs(List<byte[]> pdfs)
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
-
-