Getting the pdf invoice from WHMCS?
问题 For a small side project, I had to create a call that gets the PDF via WHMCS. I see the API can get the variables, such as quantity, invoice items etc, but I want the same PDF that the system would send if a client had placed an order. I have a PHP app. UPDATE Following the awesome advice below, I was able to solve this in one line: $pdf->Output('invoice.'.$invoicenum.'.pdf', 'F'); Now every time the invoice is viewed, or emailed, the latest version (paid or unpaid) is stored at the location