Answer the question
In order to leave comments, you need to log in
mpdf and bid-12?
The other day there was a need to display an invoice on the site.
First I solved the problem with simple HTML and @media print
. But some browsers, namely Chrome and Safari, did not correctly handle page-break-*
table rows.
Then I decided to drive everything into PDF. Then mpdf turned up.
But there is one problem - everyone who is in the subject knows that in the form of bidding-12, if the last block with information about the manager and shipment does not fit on the page, then it moves to the next with the last line from the table with goods.
So, as I did not suffer, I could not add page-break-before: auto;
the last line of the table and information to the group.
So far, as a head-on solution, the last line and the information block are always carried over to the next page.
Who can faced it? How did you decide?
Answer the question
In order to leave comments, you need to log in
Personally, I never managed to build this form according to the html template. (does mpdf take a template as input?)
A more flexible approach is to use tcpdf . You will have to calculate the remaining space on the page manually, but the document will be displayed as intended.
But what about Cyrillic?
I need! Basically, of course, html + css, so as not to repeat the work done many times over again.
Has anyone managed to solve this problem? Using fPDF, I generate TORG-12, and "transferring the last line of the table" is the only cant, so far without a hint of a solution.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question