transactions.printReceiptToPDF
Description
Print a receipt to a PDF file (requires Bullzip to be installed).

Parameters
transactionID number
filename string
pageWidth int

Return value
success bool

Example
local transactionID = 60000
local transactionNumber = transactions.transactionIDToTransactionNumber(transactionID)

local pdfFilename = "C:\\Temp\\Receipt_" .. transactionNumber .. ".pdf"
local pageWidth = 1700

transactions.printReceiptToPDF(transactionID, pdfFilename, pageWidth)

Comments
Bullzip PDF Printer must be installed.
Supports concurrent jobs.

See also

Back
Generated on the 26 June 2024 at 22:01:29 (UK Time)