简体   繁体   English

在iOS中将PDF转换为HTML吗?

[英]Convert PDF to HTML in ios?

To Do : Convert pdf file to HTML file 要做的事 :将pdf文件转换为HTML文件

For Eg: The pdf file in link below 例如:下面链接中的pdf文件

http://www.inkwelleditorial.com/pdfSample.pdf http://www.inkwelleditorial.com/pdf样本.pdf

should be converted to HTML file. 应该转换为HTML文件。

Study : I googled and found out few ways to convert HTML to PDF like 研究 :我用Google搜索,发现了几种将HTML转换为PDF的方法,例如

  1. Convert html file to PDF Document in iOS using Cocoa-Touch 使用Cocoa-Touch在iOS中将html文件转换为PDF文档
  2. Creating a PDF with iOS 使用iOS创建PDF
  3. Generating PDF Content 生成PDF内容

but could not get any way to do vice versa ie convert pdf to HTML. 但反之亦然,例如将pdf转换为HTML。

Is there any library available in objective C for above purpose? 目标C中是否有用于上述目的的库?

sorry, I dont think there is a reliable way to keep the formatting (and neither for get all text.) 抱歉,我认为没有一种可靠的方式来保持格式设置(而且都无法获取所有文本。)

you'd be better off to display and search the pdf using pspdfkit 您最好使用pspdfkit显示和搜索pdf

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

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