HTML to PDF Server Connect

Needed for my current project and decided to share.

@benpley/wappler-html2pdf - npm

Installing

How To Install Custom Wappler Extensions - Docs / Wappler Extensibility - Wappler Community

Usage

When I get the time, I will show a more dynamic application where a posted value is given for the HTML content.

Example

Dynamic content:

4 Likes

Hi Ben,

This extension looks really useful for creating PDFs on the server side with dynamic content.

I look forward to learning more about how to use it with dynamic data.

1 Like

Brilliant Ben, i was just about to start doingol one myself!
Saved me a job

1 Like

Just a quick demo for dynamic content.

1 Like

Version 1.0.3 is now available

  • Removed hardcoded /public folder requirement - PDFs can now be saved anywhere in the project structure

  • Custom paths are now relative to project root instead of forced into /public directory

  • Temp folder is no longer created when a custom path is provided - PDF is generated directly to final destination

  • Default temp location changed from public/temp/pdfs to temp/pdfs at project root level

Was just browsing the form and then I see this post.

@ben this is perfect. I am currently using ASP2PDF, but I am going to look at this as a replacement.

I leave some feedback once I have tested it out.

Thanks for the great work Ben.
Ray

Actually, just seen this is for NodeJS. My project is ASP.NET :frowning:

Give me a few hours and I'll see if I can convert to .cs files :crossed_fingers:

I don't use ASP.NET and it has been ages since I last used C#, so, I decided to get help from Claude Sonnet 4.5. to convert the NodeJS extension. I hope that this will work for you.

Please give me your feedback.

1 Like

I’ll give it a try and let you know how I get on!

Thanks.