Make a PDF link

15 May, 2020 10:39:25
israelj
Topics: 13
Messages: 17
Is there a way to store a generate the PDF link without having to use the shortcode? Something that I can store in a meta field or trigger with another function and just get the url?
15 May, 2020 23:58:26
E2Pdf
Support
Topics: 7
Messages: 3188
Hi,

Please check answer in your other thread: https://e2pdf.com/support/desk/how-do-i-get-the-pdf-to-save. It will output path to saved pdf in the example above. So in theory you will need to convert "absolute" path to url.

Or use PHP function like:

$url = do_shortcode('[e2pdf-save id="1" dataset="1" download="true" overwrite="false" apply="true"]');

* it will save PDF and will generate E2Pdf download link, but it will use "saved" pdf (if file exists) to show instead of generating it on request .

We remain at your service.
We would really appreciate your feedback at WordPress.org!
18 May, 2020 12:29:19
israelj
Topics: 13
Messages: 17
Thanks!