invoices.printInvoiceToPDF
Description
Print an invoice to a PDF file (requires Bullzip to be installed).

Parameters
invoiceID number
filename string

Return value
success bool

Example
local invoiceID = 1234
local invoiceNumber = invoices.invoiceIDToInvoiceNumber(invoiceID)

local pdfFilename = "C:\\Temp\\" .. invoiceNumber .. ".pdf"

invoices.printInvoiceToPDF(invoiceID, pdfFilename)

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

See also
printInvoice

Back