File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
itext/itext.pdfa/itext/pdfa/checker Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -567,7 +567,7 @@ protected internal override void CheckPdfStream(PdfStream stream) {
567567 if ( filter . Equals ( PdfName . Crypt ) ) {
568568 PdfDictionary decodeParams = stream . GetAsDictionary ( PdfName . DecodeParms ) ;
569569 if ( decodeParams != null ) {
570- PdfString cryptFilterName = decodeParams . GetAsString ( PdfName . Name ) ;
570+ PdfName cryptFilterName = decodeParams . GetAsName ( PdfName . Name ) ;
571571 if ( cryptFilterName != null && ! cryptFilterName . Equals ( PdfName . Identity ) ) {
572572 throw new PdfAConformanceException ( PdfAConformanceException . NotIdentityCryptFilterIsNotPermitted ) ;
573573 }
@@ -585,7 +585,7 @@ protected internal override void CheckPdfStream(PdfStream stream) {
585585 PdfArray decodeParams = stream . GetAsArray ( PdfName . DecodeParms ) ;
586586 if ( decodeParams != null && i < decodeParams . Size ( ) ) {
587587 PdfDictionary decodeParam = decodeParams . GetAsDictionary ( i ) ;
588- PdfString cryptFilterName = decodeParam . GetAsString ( PdfName . Name ) ;
588+ PdfName cryptFilterName = decodeParam . GetAsName ( PdfName . Name ) ;
589589 if ( cryptFilterName != null && ! cryptFilterName . Equals ( PdfName . Identity ) ) {
590590 throw new PdfAConformanceException ( PdfAConformanceException . NotIdentityCryptFilterIsNotPermitted ) ;
591591 }
Original file line number Diff line number Diff line change 1- 279206fa18dd49a50a5d93060de59c61697e51ce
1+ e0f1a33df0bc5b2ac23be63c7e6ba334f5a8e859
You can’t perform that action at this time.
0 commit comments