如何从PDF页面获取文本? [英] How can I get the text from PDF page?

查看:107
本文介绍了如何从PDF页面获取文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Objective-C的PDF页面获取文本?

How can I get the text from PDF page in Objective-C?

推荐答案

这是iOS还是OS X?如果是OS X,则可以简单地创建一个Automator工作流程来提取文本,然后从您的应用程序中调用该工作流程.为此,Automator具有PDF操作提取PDF文本". Automator框架允许调用自动操作从您的应用中.可以在 http://rogueamoeba.com/utm/2005/06/中找到一些示例代码. 03/(请注意,实际代码已更新为使用Automator框架).

Is this for iOS or OS X? If for OS X you could simply create an Automator workflow to extract the text, and call that workflow from your app. Automator has a PDF action "Extract PDF Text" for exactly this purpose. The Automator framework allows calling of automator actions from your app. And some sample code can be found at http://rogueamoeba.com/utm/2005/06/03/ (note that the actual code has been updated to make use of the Automator framework).

这篇关于如何从PDF页面获取文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆