mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Adjust the (applicable) existing isName
callsites to use the new isName(v, name)
version of the function
This commit is contained in:
parent
af636aae96
commit
83ce6f0b6d
4 changed files with 13 additions and 17 deletions
|
@ -1909,7 +1909,7 @@ var CipherTransformFactory = (function CipherTransformFactoryClosure() {
|
|||
|
||||
function CipherTransformFactory(dict, fileId, password) {
|
||||
var filter = dict.get('Filter');
|
||||
if (!isName(filter) || filter.name !== 'Standard') {
|
||||
if (!isName(filter, 'Standard')) {
|
||||
error('unknown encryption method');
|
||||
}
|
||||
this.dict = dict;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue