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 @@ -565,7 +565,7 @@ protected void checkPdfStream(PdfStream stream) {
565
565
if (filter .equals (PdfName .Crypt )) {
566
566
PdfDictionary decodeParams = stream .getAsDictionary (PdfName .DecodeParms );
567
567
if (decodeParams != null ) {
568
- PdfString cryptFilterName = decodeParams .getAsString (PdfName .Name );
568
+ PdfName cryptFilterName = decodeParams .getAsName (PdfName .Name );
569
569
if (cryptFilterName != null && !cryptFilterName .equals (PdfName .Identity )) {
570
570
throw new PdfAConformanceException (PdfAConformanceException .NOT_IDENTITY_CRYPT_FILTER_IS_NOT_PERMITTED );
571
571
}
@@ -580,7 +580,7 @@ protected void checkPdfStream(PdfStream stream) {
580
580
PdfArray decodeParams = stream .getAsArray (PdfName .DecodeParms );
581
581
if (decodeParams != null && i < decodeParams .size ()) {
582
582
PdfDictionary decodeParam = decodeParams .getAsDictionary (i );
583
- PdfString cryptFilterName = decodeParam .getAsString (PdfName .Name );
583
+ PdfName cryptFilterName = decodeParam .getAsName (PdfName .Name );
584
584
if (cryptFilterName != null && !cryptFilterName .equals (PdfName .Identity )) {
585
585
throw new PdfAConformanceException (PdfAConformanceException .NOT_IDENTITY_CRYPT_FILTER_IS_NOT_PERMITTED );
586
586
}
You can’t perform that action at this time.
0 commit comments