使用 CGPDFScanner 提取字体数据
我正在使用 CGPDFScanner 扫描 PDF。当扫描器遇到类似情况时:
BT
/F13 12 Tf 288 720 Td (ABC) Tj
ET
我使用运算符回调来提取 Tf
、Td
和 Tj
数据。如何提取/F13
?
I'm using CGPDFScanner
to scan PDF. When the scanner encounters something like:
BT
/F13 12 Tf 288 720 Td (ABC) Tj
ET
I use operator callbacks to extract the Tf
, Td
and Tj
data. How do I extract /F13
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它是一个名称,一种特殊形式的字符串,通常用作字典键。您可以使用
CGPDFScannerPopName
弹出它。有关实际字体的信息包含在页面的Resources
字典中,其中包含一个Font
字典。It's a name, a special form of string, usually used as dictionary keys. You can pop it with
CGPDFScannerPopName
. The information about the actual font is contained in the page'sResources
dictionary, which contains aFont
dictionary.