Answer the question
In order to leave comments, you need to log in
Dynamic HTML to PDF with PHP with large tables. How?
There is a dynamic page with tables that can be more than 1 page and you need to generate a PDF from it so that the table is adequately expanded. Is this possible?
Answer the question
In order to leave comments, you need to log in
I had a similar issue once. The bottom line is this - php generated a table with data, a very long footcloth. It was necessary to make sure that the user could save it all in pdf / print.
I went the simplest way - I hung a script for printing a page on the button and, using media queries, stylized the page for printing.
Actually, here pdf is created by the browser itself. I agree that this is not the right and correct solution, but as an option.
There are libraries, Google will help you find them. But they have a lot of pitfalls, because. they all interpret markup and styles differently and ignore a lot of things. Most likely, you will have to generate a separate layout for them with tables sawn paginated and separately prescribed css styles, and then slip an html2pdf type converter into php. The task is not trivial, I faced this one and a half years ago.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question