Prestashop TCPDF验证错误

时间:2015-04-05 17:16:27

标签: php validation pdf prestashop tcpdf

我使用tcpdf从prestashop(版本1.6)源代码中生成html-snippets中的pdf文件。

在Adobe Reader中查看pdf时,一切似乎都很好。在尝试通过电子传真服务(e-post.de)发送时,我无法上传文件,......遗憾的是没有错误日志或消息。

http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx上检查生成的文件时,我得到了这个结果:

Validating file "AYTKXFQRB_TestEins.pdf" for conformance level pdfa-3b
The required XMP property 'pdfaid:part' is missing.
The required XMP property 'pdfaid:conformance' is missing.
The embedded font program 'AAAAAB+ArialMT' cannot be read.
A device-specific color space (DeviceRGB) without an appropriate output intent is used.
The embedded font program 'AAAAAC+ArialMT,Bold' cannot be read.
The glyph for character 8364 in font 'AAAAAB+ArialMT' is missing.
The glyph for character 8364 in font 'AAAAAC+ArialMT,Bold' is missing.
The width for character 0 in font 'AAAAAB+ArialMT' does not match.
The width for character 0 in font 'AAAAAC+ArialMT,Bold' does not match.
The document does not conform to the requested standard.
The document contains device-specific color spaces.
The document contains fonts without embedded font programs or encoding information (CMAPs).
The document's meta data is either missing or inconsistent or corrupt.
Done.

我认为,有很多警告可以忽略。直接从Adobe InDesign生成的文件也包含大多数这些警告。唯一似乎受到伤害的警告是:

所需的XMP属性> pdfaid:part'不见了。 所需的XMP属性> pdfaid:conformance'不见了。

有任何想法如何解决此问题?

编辑:

xmp-Error的解决方案:

在调用构造函数以激活pdfa_mode ...

时设置标志pdfa = true
public function __construct($orientation='P', $unit='mm', $format='A4', $unicode=true, $encoding='UTF-8', $diskcache=false, $pdfa=false)

但我还是要摆脱字体错误: - (

0 个答案:

没有答案