The same way you would integrate ACF fields into any template. Just create a copy of the default PDF template and edit it. Then select it as the template to use.
Thanks for the quick response
I already figured it out, I was just embarrassed that I got question marks in response, that is, as I understand it, an encoding problem
P.S. Cyrillic
Cyrillic support natively by mpdf, but there is a problem with cyrillic in your plugin
Did you try different encodings the plugin offers inside the config page?
Yes, I just tried all 11 encodings, didn’t help 🙁 Usually when there are such problems with encoding, it is utf-8 that helps
Maybe the problem is in the font, can you tell me where, in which particular file you need to change the fonts in order to test?
-
This reply was modified 1 year, 6 months ago by aprinciple.
No, the problem is not in the font, I used the dompdf library, there the “DejaVu Serif” font correctly displays the Cyrillic alphabet, put the same one in your plugin, it didn’t help, then I replaced this font in mpdf with the one in the dompdf library, it also didn’t helped.
So the problem is not in the font.
You can not modify the mpdf folder as that will be wiped out on plugin update. But again there is an encoding option inside the plugin options page you need to play around with.
I wrote above that I tried them all. Did not help.
In that case I can not help unfortunately. A lot of people got it working with all sorts of character sets. But should you find some option that needs to be set in MPDF please create a merge request and I am more then happy to release a new version with the addition.