File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
examples/src/test/java/org/apache/pdfbox/examples/pdmodel Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -935,9 +935,9 @@ private void checkLTV(File outFile)
935935 PDSignature signature = doc .getLastSignatureDictionary ();
936936 byte [] contents = signature .getContents ();
937937 PDDocumentCatalog docCatalog = doc .getDocumentCatalog ();
938- COSDictionary dssDict = docCatalog .getCOSObject ().getCOSDictionary (COSName .getPDFName ( " DSS" ) );
938+ COSDictionary dssDict = docCatalog .getCOSObject ().getCOSDictionary (COSName .DSS );
939939 COSArray dssCertArray = dssDict .getCOSArray (COSName .CERTS );
940- COSDictionary vriDict = dssDict .getCOSDictionary (COSName .getPDFName ( " VRI" ) );
940+ COSDictionary vriDict = dssDict .getCOSDictionary (COSName .VRI );
941941 // Check that all known signature certificates are in the VRI/signaturehash/Cert array
942942 byte [] signatureHash = MessageDigest .getInstance ("SHA-1" ).digest (contents );
943943 String hexSignatureHash = Hex .getString (signatureHash );
You can’t perform that action at this time.
0 commit comments