Dompdf, TCPDF, DejaVuSans, utf-8 (v2024)

Hi!

Is anybody success with export to pdf with unicode characters?

  1. In demo2024 in Products I made changes some name and use Cyrillic letter
  2. Project Charset: utf-8
  3. Extensions: dompdf (checked)
  4. PdfBackend: TCPDF
  5. PdfFont: DejaVuSans

Created pdf-file shows “???” instead of Cyrillic letter

AdobeReader in document properties shows:
PDF Producer: dompdf 2.0.8 + CPDF
Fonts used: Times-Bold, Times-Roman with Encoding: ANSI

Please advice, how I can export in UTF, and where is my mistakes

You may see the generated ewpdf.css and check the font, you should find:

body {
    background-color: inherit; // Background color
    font-family: DejaVuSans; // Font name
    font-size: x-small; // Font size
}

If font-family: DejaVuSans does not work, try font-family: "DejaVu Sans".

Thanks a lot for your invaluable contribution
This works