salesagility / SuiteCRM

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
4.41k stars 2.07k forks source link

7.12 TCPDF ? instead of local characters #9350

Open maarisk opened 2 years ago

maarisk commented 2 years ago

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

tsmgeek commented 2 years ago

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

Was it working previous with mPDF?

maarisk commented 2 years ago

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.

tsmgeek commented 2 years ago

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 2 years ago

@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 2 years ago

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