I am using mupdf library and I am deleting PDF Annotations and then saving the document using save method in 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(), "");
Its working fine for the PDFs present in Phone Storage, but unfortunately Android doesn't support this method if pdfFile is in SD Card or in any removable storage. Hence I need to save it using storage access framework similar to here - https://stackoverflow.com/a/43317703
But PDFDocument doesn't have any method save the document to OutputStream or any method which returns PDFDocument as stream.
Is there any possibility to save PDFDocument to SAF?