HTML to PDF Plugin in PDF-Package
#39
pritamps
started this conversation in
General Discussions
Replies: 1 comment
-
@ChakshuGautam, can you help here? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have started work on a HTML to PDF transformer to enable more flexible creation of templates for various use cases.
An initial thought was to try it with Google Doc's HTML export function. Currently, the Google Docs Plugin (and ODK plugin) need to connect to an Apps Script to fill in template variables and generate the PDF. Downloading the doc as a HTML would allow all this to be done on the server itself.
As a POC, I used python's
pdfkit
library (which useswkhtmltopdf
as its backend). However, this did not work too well because:As an illustration, here is the doc generated from the template:
out.pdf
With this information, I don't think this will work, and we will need to create a HTML templating engine for this effort to be worth it. One possibility is to use the
Jinja2
as the templating engine.ls Is this something the UCI team will want to consider?
Beta Was this translation helpful? Give feedback.
All reactions