Hi,
I am working with Pdfbox-1.7.1.jar
from external application i am getting pdf as InputStram.
using this API i am trying to validate the features of a pdf document like
Whether it is compressed ,Fast Web Viewing is enabled,has bookmarks ..etc
i dont have any problem with checking these features.
after completing all these validations i need to send to report to external
application.
i am able to do that but the problem is inputsstream is getting corrupted
or getting closed when PDDocument.load(bis); called
is there any work around to retain the stream ?
here is the sample code snippet
FileInputStream fis = null;
PDDocument doc = null;
fis = new FileInputStream("D:\\ADF Books\\Books\\test.pdf");
BufferedInputStream bis = new BufferedInputStream(fis);
PDDocument doc =PDDocument.load(bis);
the above statement is causing input stream to close