问题描述
我正在使用mupdf库,并且要删除PDF注释,然后使用PDFDocument中的保存方法保存文档。
Document doc = Document.openDocument(pdfFile.getAbsolutePath());
//I have code here to find the annotation at the touch location and delete it
((PDFDocument) doc).save(pdfFile.getAbsolutePath(),"");
它对于手机存储中存在的PDF可以正常工作,但是不幸的是,如果pdfFile位于SD卡或任何可移动存储中,则Android不支持此方法。因此,我需要使用类似于此处的存储访问框架来保存它-https://stackoverflow.com/a/43317703
但是PDFDocument没有任何将文档保存到OutputStream的方法,也没有任何将PDFDocument作为流返回的方法。
是否可以将PDFDocument保存到SAF?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)