Generate a Pre-Filled HTML Template in Browser for PDF Export – Is This Approach Possible?
Hello everyone,
I'm working on a feature in my ThingWorx application where I want to generate a PDF from a pre-defined HTML template (3 pages), but with a slightly different approach than typical mashup-based rendering.
Here’s the idea:
I have a fixed HTML template (a structured form or layout).
Only two fields need to be dynamically filled using values from the ThingWorx runtime.
The user should then see this HTML rendered directly in the browser (not inside a ThingWorx mashup container), just like a standalone form or page.
After that, the user can generate it as a PDF, and manually fill in the remaining fields on paper after printing if needed.
I’m aware of PDF generation extensions (e.g., twx.pdf.extension), but in this case, I’m looking for something lightweight and interactive, where HTML is opened first in the browser, filled on load (maybe via a service or URL parameters), and then saved or printed by the user.
Any tips, best practices, or sample setups would be much appreciated!
Thanks in advance!




