/** * Constructor. * * @param source input representing the pdf. * @param decryptionPassword password to be used for decryption. * @param keyStore key store to be used for decryption when using public key security * @param alias alias to be used for decryption when using public key security * @param scratchFile buffer handler for temporary storage; it will be closed on * {@link COSDocument#close()} * * @throws IOException If something went wrong. */ public PDFParser(RandomAccessRead source, String decryptionPassword, InputStream keyStore, String alias, ScratchFile scratchFile) throws IOException { super(source, decryptionPassword, keyStore, alias); fileLen = source.length(); init(scratchFile); }
/** * Constructor. * * @param source input representing the pdf. * @param decryptionPassword password to be used for decryption. * @param keyStore key store to be used for decryption when using public key security * @param alias alias to be used for decryption when using public key security * @param scratchFile buffer handler for temporary storage; it will be closed on * {@link COSDocument#close()} * * @throws IOException If something went wrong. */ public PDFParser(RandomAccessRead source, String decryptionPassword, InputStream keyStore, String alias, ScratchFile scratchFile) throws IOException { super(source, decryptionPassword, keyStore, alias); fileLen = source.length(); init(scratchFile); }
/** * Constructor. * * @param source input representing the pdf. * @param decryptionPassword password to be used for decryption. * @param keyStore key store to be used for decryption when using public key security * @param alias alias to be used for decryption when using public key security * @param scratchFile buffer handler for temporary storage; it will be closed on * {@link COSDocument#close()} * * @throws IOException If something went wrong. */ public PDFParser(RandomAccessRead source, String decryptionPassword, InputStream keyStore, String alias, ScratchFile scratchFile) throws IOException { super(source); fileLen = source.length(); password = decryptionPassword; keyStoreInputStream = keyStore; keyAlias = alias; init(scratchFile); }