Skip to content
Advertisement

Tag: tcpdf

Tcpdf issue with display hindi language font

I am using Tcpdf PHP library to generate PDF. I got issue with display in Hindi language fonts in generated PDF. I have all things like fonts characters standards etc.. properly but my generated PDF contains ?????? instead of Hindi fonts. please have a look I have included my code here. please help to solve my issue. Answer Try this:

How do you add custom fonts in TCPDF?

I would like to add a custom font to a pdf I’m generating using TCPDF. I might be missing something but the docs seem to be out dated. They are referencing the addTTFfont() function but I think it’s been deprecated and no longer exists in the latest version of TCPDF. I read that I need to convert the ttf file

Create link in pdf with tcpdf

How can I create a link with TCPDF? When using the writeHTML() function and passing my whole html content, TCPDF doesn’t make my links clickable. They are blue and underlined but I cannot click them. Here is what I did. Answer As per the documentation, you can use the Write() method on your TCPDF object to achieve this. For example:

tcpdf imagebox and cropping

I would like to add a ‘imagebox’ a box which contains the image and crops exceeding image value that is outside of this box. something like this: I am not sure on how to do this if it’s even possible….

Advertisement