File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
pdfa/src/main/java/com/itextpdf/pdfa/checker Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ protected void checkPdfStream(PdfStream stream) {
563
563
if (filter .equals (PdfName .Crypt )) {
564
564
PdfDictionary decodeParams = stream .getAsDictionary (PdfName .DecodeParms );
565
565
if (decodeParams != null ) {
566
- PdfString cryptFilterName = decodeParams .getAsString (PdfName .Name );
566
+ PdfName cryptFilterName = decodeParams .getAsName (PdfName .Name );
567
567
if (cryptFilterName != null && !cryptFilterName .equals (PdfName .Identity )) {
568
568
throw new PdfAConformanceException (PdfAConformanceException .NotIdentityCryptFilterIsNotPermitted );
569
569
}
@@ -578,7 +578,7 @@ protected void checkPdfStream(PdfStream stream) {
578
578
PdfArray decodeParams = stream .getAsArray (PdfName .DecodeParms );
579
579
if (decodeParams != null && i < decodeParams .size ()) {
580
580
PdfDictionary decodeParam = decodeParams .getAsDictionary (i );
581
- PdfString cryptFilterName = decodeParam .getAsString (PdfName .Name );
581
+ PdfName cryptFilterName = decodeParam .getAsName (PdfName .Name );
582
582
if (cryptFilterName != null && !cryptFilterName .equals (PdfName .Identity )) {
583
583
throw new PdfAConformanceException (PdfAConformanceException .NotIdentityCryptFilterIsNotPermitted );
584
584
}
You can’t perform that action at this time.
0 commit comments