new PDF templates method in Mage2
Is it possible to add a new PDF generation mechanism in Magento 2 in CORE?
Maybe based on HTML -> PDF or using advanced PDF editors?
Something like: http://www.aromicon.de/magento-download-extensions-modules/en/aromicon-invoice-pdf-pro.html
or
http://www.magentocommerce.com/magento-connect/html2pdf.html
Now it is almost impossible to change anything about the PDF documents without very advanced programming and changing complex files
Many thanks
+1
+1
+1
+1
+1
-1 (just kidding)
+1
Maybe better way is remove PDF generation from Magento at all. I believe that for most customers the print versions of pages are enough. Rest can use dompdf library to convert html in pdf (library license incompatible with Magento, so it cannot be in core!) What do you think of that?
I think the biggest win would be to move to html/css where all the usual variables are accesible through an object -> from there many formats can be generated
Many of the modern extension work that way
On Mon, May 26, 2014 at 7:25 PM, Andrii Kasian [email protected]:
Maybe better way is remove PDF generation from Magento at all. I believe that for most customers the print versions of pages are enough. Rest can use dompdf https://github.com/dompdf/dompdf library to convert html in pdf (library license incompatible with Magento, so it cannot be in core!) What do you think of that?
— Reply to this email directly or view it on GitHubhttps://github.com/magento/magento2/issues/573#issuecomment-44206018 .
This discussion reminds me the question that I have asked in twitter some time ago - https://twitter.com/elena_a_leonova/status/449573751550914560 So I know that this issue exists, so update of pdf template engine is on our roadmap. However, it's hard to talk about timing for this improvement. So if community is interested in the contribution in this area, it would be awesome.
Another idea: http://wkhtmltopdf.org/
The most ideal way would be that it is possible to use a regular template (build it with XML, use your normal styling, etc.) and convert that to PDF. No more troubles while changing a PDF.
And related: Have the invoice be fully compatible with EU regulations (for example: http://www.expatax.nl/regulationsinvoice.php).
:+1:
:+1:
If possible, please solve the PDF issue with unicode fonts
Internal ticket: MAGETWO-24799
Just a good alternative to use existing HTML5 to PDF library. Saves a lot of hassle for merchants who'd like custom invoices design: Maybe library is not good in architecture, but proved to save so many clients from PDF class override madness: (can be included into Magento as composer dependency) https://github.com/dompdf/dompdf
Thank you for your submission.
We recently made some changes to the way we process GitHub submissions to more quickly identify and respond to core code issues.
Feature Requests and Improvements should now be submitted to the new Magento 2 Feature Requests and Improvements forum (see details here).
We are closing this GitHub ticket and have moved your request to the new forum.