简体   繁体   English

从URL读取托管的PDF文件,并使用Objective-C在iOS中转换为文本

[英]Reading a hosted PDF file from a URL and converting to text in iOS using Objective-C

I am reading a PDF file stored locally (using nsbundle) and converting it to text. 我正在读取本地存储的PDF文件(使用nsbundle)并将其转换为文本。

But when I am trying to read the PDF from http ie URL scheme and give the path to my PDF to text converter it returns nil. 但是,当我尝试从http即URL方案读取PDF并将PDF的路径提供给文本转换器时,它返回nil。 Any solutions would be appreciated. 任何解决方案将不胜感激。

My basic question is how to read a PDF file from a URL path? 我的基本问题是如何从URL路径读取PDF文件?

这样,将PDF文件转换为纯文本有很多限制。如果要在应用程序上显示PDF,请使用PDF Reader Core

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM