mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
[api-minor] Implement securityHandler in the scripting API (bug 1731578)
This commit is contained in:
parent
1ab9a6e36e
commit
91fc643ff9
7 changed files with 32 additions and 1 deletions
|
@ -1689,6 +1689,7 @@ const CipherTransformFactory = (function CipherTransformFactoryClosure() {
|
|||
if (!isName(filter, "Standard")) {
|
||||
throw new FormatError("unknown encryption method");
|
||||
}
|
||||
this.filterName = filter.name;
|
||||
this.dict = dict;
|
||||
const algorithm = dict.get("V");
|
||||
if (
|
||||
|
|
|
@ -1161,6 +1161,9 @@ class PDFDocument {
|
|||
const docInfo = {
|
||||
PDFFormatVersion: version,
|
||||
Language: this.catalog.lang,
|
||||
EncryptFilterName: this.xref.encrypt
|
||||
? this.xref.encrypt.filterName
|
||||
: null,
|
||||
IsLinearized: !!this.linearization,
|
||||
IsAcroFormPresent: this.formInfo.hasAcroForm,
|
||||
IsXFAPresent: this.formInfo.hasXfa,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue