Our accountant would like the PDF generated by this amazing plugin to by synced over to their accounting software. We have the tools to do that – all we need is the direct URL to the PDF; ex:
As far as I can tell PDFs are created in real time and presented in the browser. Is there a way to have this plugin generate and save a PDF to the server?
In your comment above, you said: “all we need is the direct URL to the PDF”. With the steps explained there, you will be able to store the PDF invoice link within the order data and then requested it using the WooCommerce REST API. Please note that our plugin generates the document on-the-fly by default.
That said, last week we introduced a new function in our development environment (here: PR#711) that should be available in a next release: wcpdf_get_document_file
If you have some PHP code skills, you could take advantage of that new function to get the document file directly and to serve it from the order context. You still would have to find out the way to get access to the order externally.
Another possible solution could be to use the Keep PDF on server setting, included in the Professional extension:
This feature stores the PDF document in your server, then you could manage to get the documents from the archive folder using the order number and the order key as a reference.
The last idea I can think of is to send the invoice as an attachment to your accountant, using the Order Notification, also included within the Professional extension. Actually, if the accounting software they are using allow to receive email attachment, you can send the email right to the accounting software email. See Configuring the Order Notification email.
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Direct link to the generated PDF’ is closed to new replies.