magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

new PDF templates method in Mage2

Open seansan opened this issue 12 years ago • 17 comments

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

seansan avatar May 22 '14 18:05 seansan

+1

ihor-sviziev avatar May 23 '14 10:05 ihor-sviziev

+1

gfxguru avatar May 23 '14 11:05 gfxguru

+1

rmsundar1 avatar May 23 '14 11:05 rmsundar1

+1

CodeMonkey90 avatar May 25 '14 17:05 CodeMonkey90

+1

clockworkgeek avatar May 26 '14 13:05 clockworkgeek

-1 (just kidding)

tim-bezhashvyly avatar May 26 '14 13:05 tim-bezhashvyly

+1

Den4ik avatar May 26 '14 14:05 Den4ik

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?

kandy avatar May 26 '14 17:05 kandy

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 .

seansan avatar May 26 '14 17:05 seansan

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.

elenleonova avatar May 27 '14 17:05 elenleonova

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).

paales avatar Jun 28 '14 13:06 paales

:+1:

sankalpshekhar avatar Jul 18 '14 08:07 sankalpshekhar

:+1:

Den4ik avatar Jul 18 '14 08:07 Den4ik

If possible, please solve the PDF issue with unicode fonts

sIiiS avatar Jul 18 '14 18:07 sIiiS

Internal ticket: MAGETWO-24799

vpelipenko avatar Jan 29 '15 12:01 vpelipenko

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

IvanChepurnyi avatar Aug 25 '15 15:08 IvanChepurnyi

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.

piotrekkaminski avatar Aug 30 '16 19:08 piotrekkaminski