Issue On. Converting HTML to PDF #1947
-
I'm trying to convert the html in this link to pdf using mpdf. but except for 1 class everything is fine. attaching the screenshot for desired output and current output the 1st circle div is not getting aligned to centre horizontaly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
this is easy mPDF doesn't support display:flex and never will. See this from the docs. https://github.com/mpdf/mpdf#user-content-about-css-support-and-development-state https://mpdf.github.io/css-stylesheets/supported-css.html While mPDF supports quite a lot of CSS, if you're going to use in production you are to double-check all of your HTML/CSS and make sure that you are writing it to mPDF's spec of supported CSS and HTML. I hope this helps and like it says, mPDF is quite old and any new project should just use newer more reliable methods. |
Beta Was this translation helpful? Give feedback.
this is easy mPDF doesn't support display:flex and never will. See this from the docs.
https://github.com/mpdf/mpdf#user-content-about-css-support-and-development-state
https://mpdf.github.io/css-stylesheets/supported-css.html
While mPDF supports quite a lot of CSS, if you're going to use in production you are to double-check all of your HTML/CSS and make sure that you are writing it to mPDF's spec of supported CSS and HTML.
I hope this helps and like it says, mPDF is quite old and any new project should just use newer more reliable methods.