【发布时间】:2012-06-02 06:11:29
【问题描述】:
是否可以通过编程方式确定 PDF 是否被“标记”(为了便于访问)?我正在使用 PHP,并且希望(如果可能)简单地读取 PDF 文件,如果标记则返回 true,否则返回 false。
【问题讨论】:
标签: php pdf accessibility tcpdf fpdf
是否可以通过编程方式确定 PDF 是否被“标记”(为了便于访问)?我正在使用 PHP,并且希望(如果可能)简单地读取 PDF 文件,如果标记则返回 true,否则返回 false。
【问题讨论】:
标签: php pdf accessibility tcpdf fpdf
在官方 ISO PDF-1.7 规范中(可从 Adobe 网站免费获得的副本),我在第 574 页阅读:
“标记的 PDF 文档还应包含一个标记信息字典(参见表 321),其中 Marked 条目的值为 true。” em>
对我来说这意味着......
【讨论】:
也许您可以使用this 走得更远(检查所有PDF_get_xx 函数)。 您还需要this 作为参考。
基于此:
Characteristics of a properly tagged PDF:
- The PDF file includes a logical reading order for its content
- Images are given correct alternate descriptions
- Tables are correctly tagged to represent the table structure
- Form-fields are authored to promote their utility to screen-readers
- Represents text as Unicode to clear up composition irregularities such as soft
and hard hyphens
你可能会走得更远。
【讨论】: