mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
7.12 TCPDF ? instead of local characters #4648
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#4648
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @maarisk on GitHub (Nov 7, 2021).
After upgrade to SuiteCRM 7.12 and with TCPDF engine enabled, PDFs generated contain question mark instead of specific local characters.
Issue
If PDF template contains language specific characters (eg. latvian characters ķ, ē, ģ, ņ) in the resulting PDF generated with TCPDF engine, these are replaced with question marks (?).
Expected Behavior
Generated PDF represents all local specific characters correctly as on template.
Actual Behavior
Local characters in most cases are replaced with ?.
Possible Fix
Steps to Reproduce
Context
Invoice PDF is generated from SuiteCRM and sent to customers. For local customers invoices are in local langiage (Latvian) and contain words where local characters are present. Sending of invoices containing ? instead of relevant loca chars is not acceptable.
Your Environment
@tsmgeek commented on GitHub (Nov 7, 2021):
Which fonts are you using?
What language are you writing in?
Was it working previous with mPDF?
@maarisk commented on GitHub (Nov 7, 2021):
See comments below.
Māris
Font used is Helvetica Neu.
Language used in template is Latvian.
@tsmgeek commented on GitHub (Nov 7, 2021):
https://stackoverflow.com/questions/5333702/tcpdf-utf-8-symbols-not-showing-up
Might be issue with font not supporting those utf8 characters.
@billygoat-trump commented on GitHub (Dec 6, 2021):
@maarisk, yes, my CRM Similar to this error, the font has no effect, the characters are almost "wrong" compared to the 7.11.20.
Besides, I also broken the framework of the table, the table seems to be limited a lot when exporting PDF.
[Situation Solution] I was forced to "use" the AOS_PDF_TEMPLATES module of version 7.11.20 for the current job (7.12), though the cache error message when executing the "Repairs and Rebuilds DB, Extensions, Vardefs, Suitecrm dashlets etc. " In the Admin Tool
@timo-ecm2 commented on GitHub (Sep 8, 2022):
Hi I have also a issue. After upgrade to SuiteCRM 7.12.x and with TCPDF engine enabled, PDFs generated tables with code
table style="width: 100%; border: 0pt none; border-spacing: 0pt;"
Now, let's see below. There's a black box now.