page 6: warning: no font for Basic Latin character U+000B, fallback to U+2BD1 ⯑
page 6: warning: Ensure fonts are available on the system or load them via a @font-face rule.
page 6: warning: For more information see:
page 6: warning: https://www.princexml.com/doc/help-install/#missing-glyphs-or-fonts
internal error: Unable to find any available fonts.
Hello guys! I'm getting the warnings/errors above when converting HTML to PDF using PrinceXML. In CSS my font is font-family: serif !important;
.
Because of the error above Prince can't generate a PDF file.
As I found out Times New Roman is the default serif font in PrinceXML, and it cannot print control characters (0000-000F). So I just remove the control characters from a string before passing it to the PrinceXML as was suggested in this SO question (take a look at the accepted answer).
$string = preg_replace('/[\x00-\x1F\x7F]/u', '', $string);