Closed benninkcorien closed 9 months ago
Hi,
The class HTMLToPDF
simply isn't capable of handling complex HTML. It also doesn't handle CSS.
In your usecase I would opt for removing the man in the middle. Simply generate the daily planner page from scratch in borb.
Kind regards, Joris Schellekens
Describe the bug
I'm trying to convert a local HTML file (of a yearly planner, messy work in progress: python generated html files with css for styling and layout ) to PDF.
I'm getting all kinds of errors SVG unsuported. If I delete all SVGs I think there's a problem with the
Is this something that should work with borb? I haven't found a good solution/package yet that can convert HTML to CSS with all the layout/styling in place.
To Reproduce Steps to reproduce the behaviour:
save the attached .txt as .html in a "testfiles" folder. Create a "borb" folder on the same level. run python:
Expected behaviour A PDF file from the HTML file, preferably one that takes all the CSS into account as well (and maybe SVG support, though I can easily replace those with JPG/PNG or something)
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
planner_full_result.txt