/** * Default constructor. * * @param source input representing the pdf. */ public COSParser(RandomAccessRead source) { super(new RandomAccessSource(source)); this.source = source; }
/** * Constructor for encrypted pdfs. * * @param source input representing the pdf. * @param password password to be used for decryption. * @param keyStore key store to be used for decryption when using public key security * @param keyAlias alias to be used for decryption when using public key security * */ public COSParser(RandomAccessRead source, String password, InputStream keyStore, String keyAlias) { super(new RandomAccessSource(source)); this.source = source; this.password = password; this.keyAlias = keyAlias; keyStoreInputStream = keyStore; }
/** * Default constructor. */ public COSParser(RandomAccessRead source) { super(new RandomAccessSource(source)); this.source = source; }
/** * Default constructor. */ public COSParser(RandomAccessRead source) { super(new RandomAccessSource(source)); this.source = source; }
/** * Constructor for encrypted pdfs. * * @param source input representing the pdf. * @param password password to be used for decryption. * @param keyStore key store to be used for decryption when using public key security * @param keyAlias alias to be used for decryption when using public key security * */ public COSParser(RandomAccessRead source, String password, InputStream keyStore, String keyAlias) { super(new RandomAccessSource(source)); this.source = source; this.password = password; this.keyAlias = keyAlias; keyStoreInputStream = keyStore; }