You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background info: Woocommerce shop with the Woocommerce Invoices Plugin that generates invoice PDFs using the dompdf library. Using their filter I am trying to append the QR bill HTML. This works fine (HTML output before dompdf looks correct)
however in the generated PDF there are some layout issues.
the invoice is wider than the page (offsetting the 2cm page margins defined by the general styles by applying negative margins does not fix this)
the amount area in the payment part does not look as expected: amount is pushed down and currency does not float to its left
Screenshot for illustration.
Check below styles to understand the meaning of border colors.
Basically this looks like a positioning issue. You might need to add additional css or settings to make dompdf place the qr bill in the bottom left corner.
Also, many html2pdf converters are not very good. The HtmlOutput of this library is optimized to work with PrinceXML, which is the most powerful html2pdf engine I know of. I have never tried it with dompdf and do not know how it behaves there.
Feel free to re-open this issue if you have more information.
Background info: Woocommerce shop with the Woocommerce Invoices Plugin that generates invoice PDFs using the dompdf library. Using their filter I am trying to append the QR bill HTML. This works fine (HTML output before dompdf looks correct)
however in the generated PDF there are some layout issues.
Screenshot for illustration.
Check below styles to understand the meaning of border colors.
The text was updated successfully, but these errors were encountered: