*
* @throws IOException If there is an error reading from the stream.
*/
public static PDDocument load(InputStream input, RandomAccess scratchFile, boolean force) throws IOException
{
PDFParser parser = new PDFParser( new BufferedInputStream( input ), scratchFile, force);
parser.parse();
return parser.getPDDocument();
}