magento / magento/community-features

Replace Zend_Pdf with html2pdf tool

Open
#49 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Priority: P2
Dominant language
No language data
Stars
46
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Top voted suggestion in Magento idea exchange forum: https://community.magento.com/t5/Magento-2-x-Feature-Requests-and/Invoice-shipment-credit-memo-PDFs-Remove-Zend-Pdf-replace-with/idi-p/45879

Given that the current invoice, shipment and credit memo PDFs look the same as in Magento 1 and PDF's are always a bit of a nightmare to customize for the merchants:

I suggest to replace the PDFs with a html2pdf tool. Actually the preview of the invoice looks already really nice in the backend, so this could just be converted to pdf.

Affected entities: Invoice, shipment, credit memo PDFs

This would maybe also help the problem Hirokazu Nishi mentioned in his tweet:

"Magento2 still use LinLibertine font. It’s only for Alphabets. To change PDF font, we still have to rewrite some classes..."

This idea resulted from a tweet/discussion here:
https://twitter.com/hirokazu_nishi/status/770282916819578881
https://twitter.com/rescueAnn/status/770338589326635008
https://twitter.com/benmarks/status/770339381995384832

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked Magento idea exchange discussion and the existing invoice, shipment, and credit memo PDF generation paths. Define the replacement's scope and a verifiable result for all three PDF types, including whether the backend invoice preview is the source; the issue names no files or tests, so repository investigation is required.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.