前几天需要操作pdf文件,由于pdf文件含有不同的版本,产生pdf文件的方式也有很多种,对pdf版本兼容也很头痛,下面是从网上找了几个比较好用的库
1.mupdf 比较好用,完全开源,支持不同语言,不过代码看起来有点复杂,兼容的版本比较多。
2.PkPDFConverter 只是单纯的exe文件,支持命令行。
3.podofo开源的,需要安装cmake,cmake生成的时候依赖很多库,支持的pdf版本也不全。
4.pdflib 不开源,商业版收费,库使用很简单。
5.Adobe PDF SDK和Foxit PDF SDK,功能肯定支持的很全,但是收费。
通过比较测试个人觉得第一个比较好用