Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Used to think PDF was amazing for documents...then had to get data out of a PDF...don't think anything else needs to be said.
-
ghostlkr759y@kanduvisla that looks like it could be very useful, however I am not in a position to suggest new a frame work or process. There are already several places in our web app that generates pdf's from html. Granted they are not including images, which seems to be my downfall.
-
I can recommend mPDF (PHP). Was using DomPDF but that thig has so many undocumented random bugs (Including infinite loops on nested tables...)
-
jaunkst329yWrap the HTML in an electron app and bundle it up.. Look mom I don't even need Adobe to read it. Just kidding. HTML to PDF sucks.. Wait PDF sucks lol.
-
dkomito3109yWkhtmltopdf is the best I've found, but still quirky and even harder when going through Drupal. This took up all last week.
-
ghostlkr759y@dkomito that is what I am using, and what other devs have used at work. However none of them are generating pdf's with images which is where everything is exploding for me.
-
stretch your window to be A4 width. take a picture. save picture to PDF. Looks just like it did on the web :-) tehehe
-
ghostlkr759y@dkomito I am displaying a grid of products in a table, and there is always at least one row on one of the pages that add about 50px or more of padding throwing off the entire page.
-
dkomito3109y@ghostlkr Ah! I experienced a problem with tables adding an extra page. I think table{ table-layout: fixed } helped in one instance, but had to just give-up and use floated divs.
Related Rants
Converting html to a pdf is the worst thing to do ever.
undefined
html
css
pdf