Generating PDFs with UTF-8 text requires TrueType fonts
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 6
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
The following notice sometimes shows up in the logs when generating report PDFs:
Notice: iconv(): Detected an illegal character in input string in Zend/Pdf/Resource/Font/Simple.php on line 267
According to the following bug report, that is because default PDF fonts only support Latin1 encoding.
The proposed solution is to use TrueType fonts instead of the default fonts. I don't actually know what would be involved in that, but it would be worth investigating, especially if this hobbles the plugin for displaying internationalized text.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Zend/Pdf/Resource/Font/Simple.php around line 267 and review the linked ZF-4295 report for the encoding limitation. Trace how report PDFs select default fonts, investigate the TrueType-font approach, and verify that internationalized text generates without the iconv notice.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100