7.12 TCPDF ? instead of local characters #4648

Open
opened 2026-02-20 16:21:15 -05:00 by deekerman · 5 comments
Owner

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

  1. Upgrade to SuiteCRM 7.12
  2. Ensure that TCPDF engine is enabled under PDF settings
  3. Create Invoice PDF template containing characters ķ, ģ, ū, ē, ņ, ā, č, ļ. (eg. Rēķins)
  4. Print invoice as PDF using created template.

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

  • SuiteCRM Version used: 7.12
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Safari 15.1
  • Environment name and version (e.g. MySQL, PHP 7): MySQL 8, PHP 7.4.23
  • Operating System and version (e.g Ubuntu 16.04): macOS 11.6
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 <!--- Not obligatory, but suggest a fix or reason for the bug --> #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. Upgrade to SuiteCRM 7.12 2. Ensure that TCPDF engine is enabled under PDF settings 3. Create Invoice PDF template containing characters ķ, ģ, ū, ē, ņ, ā, č, ļ. (eg. Rēķins) 4. Print invoice as PDF using created template. #### 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 <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: 7.12 * Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Safari 15.1 * Environment name and version (e.g. MySQL, PHP 7): MySQL 8, PHP 7.4.23 * Operating System and version (e.g Ubuntu 16.04): macOS 11.6
Author
Owner

@tsmgeek commented on GitHub (Nov 7, 2021):

Which fonts are you using?
What language are you writing in?

Was it working previous with mPDF?

@tsmgeek commented on GitHub (Nov 7, 2021): Which fonts are you using? What language are you writing in? Was it working previous with mPDF?
Author
Owner

@maarisk commented on GitHub (Nov 7, 2021):

See comments below.

Māris

On 7 Nov 2021, at 21:04, Ricardo @.***> wrote:

Which fonts are you using?

Font used is Helvetica Neu.

What language are you writing in?

Language used in template is Latvian.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/salesagility/SuiteCRM/issues/9350#issuecomment-962663797, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADZJEOPFYIBNRJQAYBBXG3DUK3EUPANCNFSM5HRBIA5Q.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@maarisk commented on GitHub (Nov 7, 2021): See comments below. Māris > On 7 Nov 2021, at 21:04, Ricardo ***@***.***> wrote: > > > Which fonts are you using? > Font used is Helvetica Neu. > What language are you writing in? > Language used in template is Latvian. > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub <https://github.com/salesagility/SuiteCRM/issues/9350#issuecomment-962663797>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADZJEOPFYIBNRJQAYBBXG3DUK3EUPANCNFSM5HRBIA5Q>. > Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>. >
Author
Owner

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

@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.
Author
Owner

@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

@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
Author
Owner

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

Naamloos

@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. ![Naamloos](https://user-images.githubusercontent.com/51777898/189136852-bd7044d4-791f-4c7d-ad75-b868ccfaca5a.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4648
No description provided.