*
* @throws IOException in case of a file reading or parsing error
*/
public static PDDocument loadNonSeq( InputStream input, RandomAccess scratchFile, String password ) throws IOException
{
NonSequentialPDFParser parser = new NonSequentialPDFParser( input, scratchFile, password );
parser.parse();
return parser.getPDDocument();
}