Hi,
How would i go about saving a decrypted file as a pdf instead of just opening it...ie...In the following code below.
public void loadPdfDocument(DownloadFile downloadFile) {
if (isAdded()) {
try {
String path = downloadFile.getFilePath() + "/" + downloadFile.getFileName();
this._pdfLoadingIndicator.setVisibility(

;
this._doc.Close();
int ret = this._doc.OpenStream(new PDFMemStream(PDFUtil.decryptPDF(BuildConfig.PDFPassword, path)), null);
System.gc();
if (ret == 0) {
this._reader.setVisibility(0);
this._reader.PDFOpen(this._doc, this, PDFDetailsActivity.DISPLAY_METRICS);
//I want to save a copy of the PDF into the downloads directory!
String home = System.getProperty("user.home");
this._reader.PDFSave(this._doc????
}
} catch (Exception e) {
e.printStackTrace();
}
}
}