Hello,
I am using TCPDF to generate a PDF document from data collected in a form: I cannot understand why some HTML entity, well inside the "<p>" tag, are not recognized by TCPDF and they are being displayed like normal text or "?".
β
For example, a code like this one:
<p>I will display Đ</p>
<p>I will display Đ</p>
<p>I will display Đ</p>
Is translated like this:

β
β
Any Idea to configure TCPDF (or Chronoform maybe?) to recognize those extended characters?
Thanks a lotπ
β
Andrea
I am using TCPDF to generate a PDF document from data collected in a form: I cannot understand why some HTML entity, well inside the "<p>" tag, are not recognized by TCPDF and they are being displayed like normal text or "?".
β
For example, a code like this one:
<p>I will display Đ</p>
<p>I will display Đ</p>
<p>I will display Đ</p>
Is translated like this:

β
β
Any Idea to configure TCPDF (or Chronoform maybe?) to recognize those extended characters?
Thanks a lotπ
β
Andrea
Works for me

β
If I were you I'd check what fonts your site or template is using.

β
If I were you I'd check what fonts your site or template is using.
I am using TCPDF as an Action inside Chronoform Setup. The problem is: from there I cannot modify the Encoding of the generated document.
As someone said here (https://www.chronoengine.com/forums/posts/t105590/p377759/customize-tcpdf-pdf-file?startat=0) there is no way to add php code to configure the TCPDF previously added as an Action.
β
Did someone have to use extended charset in their pdf generated via TCPDF already? Is it possible to do it using just the Chronoform plugin?
β
Thanks a lot!
Andrea
As someone said here (https://www.chronoengine.com/forums/posts/t105590/p377759/customize-tcpdf-pdf-file?startat=0) there is no way to add php code to configure the TCPDF previously added as an Action.
β
Did someone have to use extended charset in their pdf generated via TCPDF already? Is it possible to do it using just the Chronoform plugin?
β
Thanks a lot!
Andrea
OK so TCPDF comes with 3 fonts, none of which have latin extended characters.
β
What you need to do is add another font.
β
Here are three files, in a zip. Extract them to libraries\cetcpdf\tcpdf\fonts. Then set your body font in your TCPDF action to opensans
β
β[file=11520]fonts.zip[/file]
β
What you need to do is add another font.
β
Here are three files, in a zip. Extract them to libraries\cetcpdf\tcpdf\fonts. Then set your body font in your TCPDF action to opensans
β
β[file=11520]fonts.zip[/file]
Just be aware you *MIGHT* need to put these back in after updating CF or TCPDF. Additionally, if you'd like to use a DIFFERENT font, you can convert it here
β
http://fonts.snm-portal.com/
β
http://fonts.snm-portal.com/
It worked perfectly. Thank you very much healyhatman!
β
Andrea
β
Andrea
This topic is locked and no more replies can be posted.
