开发者

Extracting font data with CGPDFScanner

开发者 https://www.devze.com 2023-03-06 10:26 出处:网络
I\'m using CGPDFScannerto scan PDF. When the scanner encounters something like: BT /F13 12 Tf 288 720 Td (ABC) Tj

I'm using CGPDFScannerto 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?


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's Resources dictionary, which contains a Font dictionary.

0

精彩评论

暂无评论...
验证码 换一张
取 消