Psliwa PHPPdf束上的字符集

Psliwa PHPPdf束上的字符集,php,symfony,pdf,encoding,fonts,Php,Symfony,Pdf,Encoding,Fonts,关于Psliwa提出的关于Symfony2的PdfBundle, 当我尝试添加自定义字体时,出现以下错误: 注意:iconv():错误的字符集,在…/vendor/zendframework/zendpdf/library/zendpdf/BinaryParser/AbstractBinaryParser.php第431行中不允许从“MacRoman”转换为“UTF-16BE” 在my config.yml中,我有: fonts_file: "%kernel.root_dir%/../src/T

关于Psliwa提出的关于Symfony2的PdfBundle,
当我尝试添加自定义字体时,出现以下错误:

注意:iconv():错误的字符集,在…/vendor/zendframework/zendpdf/library/zendpdf/BinaryParser/AbstractBinaryParser.php第431行中不允许从“MacRoman”转换为“UTF-16BE”

在my config.yml中,我有:

fonts_file: "%kernel.root_dir%/../src/Travel/PdfBundle/Resources/config/fonts.xml"
<dynamic-page encoding="UTF-8" font-type="FFInfoFonts">
在我的模板中,我有:

fonts_file: "%kernel.root_dir%/../src/Travel/PdfBundle/Resources/config/fonts.xml"
<dynamic-page encoding="UTF-8" font-type="FFInfoFonts">
在my fonts.xml中,我有:

<font name="FFInfoFonts">
    <normal src="font/FF Info fonts/police Web/InfoDisplayComp.ttf" />
</font>


有人知道如何强制使用字符集吗?

我没有使用过这个捆绑包,但我对创建PDF有很好的经验。可能会有帮助……:)你好,谢谢你的帮助。我知道KnpSnappyBundle,但我想将html->pdf的方法更改为xml->pdf