ben
104
Thank you for your kind words.
I have set my endpoint so that it will accept any HTML document and to save it wherever I want.
and this is the form input to post the value:
<input name="storage_path" id="storage_path_input" type="hidden" dmx-bind:value="'/safety-contacts/'+first_aiders.data.first_aiders[0].licensee_id+'/safety-contacts-'+emergency_contact_numbers_version.value+'-'+company_emergency_number_version.value+'.pdf'">
This wil place the PDF in the safety-contacts/[licensee_id] folder inside the site root directory
George
105
Can you pack and publish this extension to npm so it can be easily installed by other Wappler users. See:
ben
106
@George, if the reply was to my post, then this is the published version: https://www.npmjs.com/package/@benpley/wappler-html2pdf
It is also available in Wappler:
2 Likes