My task is to generate, with the help of PHP, a PDF file from an SVG image. I first tried the FPDF class, but it does not support generating a PDF file from an SVG image, then I turned to another TCPDF class, it perfectly generates PDF from SVG images, but the following problem arose - all Russian letters in the SVG image , when generating PDF, are displayed with question marks. How to overcome this problem? Help me please.

  • How to make text labels in Russian, when generating a PDF file using the PHP class - TCPDF, I figured it out. But how to fix a glitch with the display of Russian characters that are generated from SVG images I can not understand. Yes, and information on how to fix this bug, I never found. Tell me, can someone already encountered this problem? - spoilt

1 answer 1

The question can be closed, I solved the problem.

$pdf->Output('doc.pdf', 'FI'); 

changed to

 $pdf->Output('doc.pdf', 'FD'); 

and everything began to display correctly, tormented for a long time, but achieved the desired result. Perhaps someone will benefit from my experience and my torment. ;)