I am trying to retrieve a File
or InputStream
instance from PDDocument
without saving a PDDocument
to the file system.
PDDocument doc= new PDDocument();
...
doc.save("D:\\document.pdf");
File f= new File("D:\\document.pdf");
Is there any method in PDFBox
which returns File
or InputStream
from an existing PDDocument
?