GroupDocs.Signature for Node.js via Java 26.10 Release Notes
This release moves the package to the GroupDocs.Signature for Java 26.10 engine (version 24.12 of the package used the 23.6.1 engine) and includes all changes of the Java 23.12, 24.3, 24.7, 26.5 and 26.10 releases. Highlights: DICOM images and archives, new barcode and QR code types, signatures in Word headers and footers, signing of VBA projects and raster images, PDF permissions and Long Term Validation, SHA-256 PDF signatures with cryptographic verification, certificate validity checks and control over loading external resources.
Full list of changes in this release
| Key | Category | Summary |
|---|---|---|
| SIGNATURENODEJS | Update | Java engine updated to GroupDocs.Signature for Java 26.10 |
| SIGNATURENODEJS | Feature | New classes and enumerations are exported from the package root (see Public API) |
| SIGNATURENET-5950, SIGNATURENET-6000, SIGNATURENET-6001 | Feature | External resources referenced by a document are no longer loaded by default; new LoadOptions settings control it |
| SIGNATURENET-5995 | Feature | Signing with an expired or not yet valid certificate is rejected unless DigitalSignOptions allows it |
| SIGNATURENET-5634 | Feature | Word documents keep their OOXML compliance when saved; WordProcessingSaveOptions can set it |
| SIGNATURENET-5976 | Feature | PDF digital signatures use SHA-256 by default and honor HashAlgorithm |
| SIGNATURENET-5978 | Feature | Verification checks PDF digital signatures cryptographically; a document changed after signing is not valid |
| SIGNATURENET-5997 | Feature | PDF verification honors SubjectName, IssuerName and the signing time window |
| SIGNATURENET-6003 | Feature | Certificate verification checks expiration, issuer, subject, serial number, thumbprint and the chain |
| SIGNATUREJAVA | Feature | LoadOptions.setFileType, Signature.search(Predicate) and VerificationResult.getFailed() |
| SIGNATURENET-5077 | Feature | PreviewOptions.setResolution controls the DPI of preview images |
| SIGNATURENET-5208 | Feature | ICustomSignHash plug-in for PDF digital signing |
| SIGNATURENET-5217, SIGNATURENET-5218 | Feature | Search and verify methods with Predicate filters |
| SIGNATURENET-5267 | Feature | PDF permissions and owner password on save (PdfSaveOptions) |
| SIGNATURENET-5364 | Feature | Long Term Validation (LTV) for PDF digital signatures (DigitalSignOptions.setUseLtv) |
| SIGNATURENET-5571 | Feature | Digital signing of raster images (PNG, JPG, TIFF) via LSB steganography |
| SIGNATURENET-4809 | Enhancement | PDF digital signing with an external certificate and private key |
| SIGNATURENET-4977, SIGNATURENET-4982, SIGNATURENET-4988, SIGNATURENET-4990 | Feature | Text, image, barcode, QR code and stamp signatures in headers and footers of Word documents |
| SIGNATURENET-4786 | Feature | Sign XLSM spreadsheets with VBA projects |
| SIGNATURENET-3882 | Feature | MailMark 2D as a new QR code type |
| SIGNATURENET-4657 | Feature | New barcode type GS1DotCode |
| SIGNATURENET-4743, SIGNATURENET-4948 | Feature | New QR code types HanXin and GS1HanXin |
| SIGNATURENET-4744, SIGNATURENET-4784 | Feature | HIBC LIC QR codes with primary and secondary data |
| SIGNATURENET-4357 | Enhancement | HIBC PAS QR codes |
| SIGNATURENET-4853 | Enhancement | Swiss QR codes |
| SIGNATURENET-4501, SIGNATURENET-4559, SIGNATURENET-4557, SIGNATURENET-4605, SIGNATURENET-4574 | Feature | Sign, search, verify, preview and get information of DICOM images |
| SIGNATURENET-4595, SIGNATURENET-4598 | Feature | XMP data of DICOM images is saved and returned in the document information |
| SIGNATURENET-4530, SIGNATURENET-4650, SIGNATURENET-4736 | Feature | Search, verify and preview signatures within archives |
| SIGNATURENET-4372 | Feature | Search in certificate documents |
| SIGNATURENET-4537 | Enhancement | DocumentResultSignature contains the error message |
| SIGNATURENET-4532 | Enhancement | Spreadsheets are signed using a digital signature as a container for certificates |
| SIGNATURENET-4602 | Enhancement | Size and position of barcode and QR code signatures found in images |
| SIGNATURENET-4679, SIGNATURENET-4818 | Enhancement | Better support of multi-page TIFF and WebP images |
| SIGNATURENET-4750 | Enhancement | Pagination for multi-layer images in the search process |
| SIGNATURENET-4757 | Enhancement | Extended document preview data |
| SIGNATUREJAVA | Enhancement | Word documents with large text shapes spanning several pages are handled |
| SIGNATURENET-6004 | Fix | SignatureSettings.setLogLevel takes effect; with the default level the logger receives messages |
| SIGNATUREJAVA-2903 | Fix | Barcode and QR code signing no longer fails with The image size can not be 0! on Java 11 and later |
| SIGNATURENET-5998 | Fix | The time-stamp server receives credentials when only the user name or only the password is set |
| SIGNATURENET-6005, SIGNATURENET-6006 | Fix | Options objects reused for several documents apply to each document correctly |
| SIGNATURENET-6002 | Fix | Spreadsheets with a linked picture that has no image data no longer fail search and verification |
| SIGNATURENET-5242 | Fix | Invisible image in a PDF digital signature |
| SIGNATURENET-5270 | Fix | Existing digital signatures are kept when new ones are added to a PDF |
| SIGNATURENET-5291 | Fix | Legacy barcode type names are recognized when matching persisted signatures |
| SIGNATURENET-5527 | Fix | “File type not supported” while searching signatures in WebP images |
| SIGNATUREJAVA-2877 | Fix | Image layers issue for DICOM (.dcm) files |
| SIGNATURENET-4680, SIGNATURENET-4824 | Fix | Evaluation message of digitally signed PDF documents |
| SIGNATURENET-4726, SIGNATURENET-4548 | Fix | Image processing and digital certificates on Linux |
| SIGNATURENET-4487, SIGNATURENET-4504, SIGNATURENET-4533 | Fix | Signing documents within archives: Word documents, signature position and trial limitations |
| SIGNATURENET-4508, SIGNATURENET-4509, SIGNATURENET-4510, SIGNATURENET-4531 | Fix | Appearance of stamp signatures: borders, corners and line backgrounds |
| SIGNATURENET-4432, SIGNATURENET-4481 | Fix | Deleting digital signatures from ODT documents raised an exception |
| SIGNATURENET-4486 | Fix | Wrong format of the digital certificate for spreadsheets |
| SIGNATURENET-4505 | Fix | Some two-page Word documents could not be signed in trial mode |
| SIGNATURENET-4599 | Fix | Search did not give expected results because of the evaluation message in internal images |
| SIGNATUREJAVA | Fix | Saving a signed document as images no longer produces empty pages; image save options are applied |
| SIGNATUREJAVA | Fix | Certificates whose key entry has a name are accepted for presentations, spreadsheets and VBA projects |
| SIGNATUREJAVA | Fix | QR code search in multi-layer images with ReturnContent returns the codes found |
| SIGNATUREJAVA | Update | Archives are checked for excessive size and compression while they are expanded |
| SIGNATURENET-5825 | Update | Trial mode: signing an archive is no longer limited by the number of documents in it |
| SIGNATUREJAVA-2908 | Update | Aspose libraries updated; BarcodeTypes.Code39, Code39FullASCII and Code93 replace the Standard and Extended types |
Behavior changes to check before upgrading
- External resources are not loaded unless
LoadOptions.setSkipExternalResources(false)is set. - Signing with an expired or not yet valid certificate throws
GroupDocsSignatureException. CallDigitalSignOptions.setAllowExpired(true)orsetAllowNotYetValid(true)to sign anyway. - PDF digital signatures are created with SHA-256 instead of SHA-1.
- Verifying a PDF with
DigitalVerifyOptionsreports a signature as valid only if it verifies cryptographically, and appliesSubjectName,IssuerName,SignDateTimeFromandSignDateTimeTo. - With the default log level, a logger passed in
SignatureSettingsnow receives errors, warnings and trace messages. - An archive with more than 10,000 entries, more than 1 GB of content or an entry compressed more than 100 times is rejected.
BarcodeTypes.Code39Standard,Code39Extended,Code93StandardandCode93Extendedare deprecated aliases ofCode39,Code39FullASCIIandCode93.
Major features
PDF digital signatures
PDF documents are signed with SHA-256 by default, and setHashAlgorithm selects another digest. Signing with an expired or not yet valid certificate is rejected unless it is allowed explicitly:
'use strict';
const groupdocs = require('@groupdocs/groupdocs.signature');
const signature = new groupdocs.Signature('contract.pdf');
const options = new groupdocs.DigitalSignOptions('certificate.pfx');
options.setPassword('1234567890');
options.setHashAlgorithm(groupdocs.HashAlgorithm.Sha512); // SHA-256 is used by default
options.setAllowExpired(true); // sign with an expired certificate; a warning is logged
signature.sign('contract_signed.pdf', options);
Other PDF improvements:
DigitalSignOptions.setUseLtv(true)embeds Long Term Validation information, so the signature stays verifiable after the certificate expires.PdfSaveOptionscan protect the result with permissions (Permissionsflags) and an owner password.- A PDF can be signed with an external certificate and private key, and a custom signer can be plugged in with
ICustomSignHash. - Verification checks the signature cryptographically: a document changed after signing is not valid.
New document types and signature locations
- DICOM images can be signed, searched, verified and previewed.
- Signatures can be searched, verified and previewed within archives.
- Text, image, barcode, QR code and stamp signatures can be placed in the headers and footers of Word documents (
ShapePosition). - XLSM spreadsheets can be signed together with their VBA projects (
DigitalVBA). - Raster images (PNG, JPG, TIFF) can carry an invisible digital signature embedded with LSB steganography (
ImageDigitalSignOptions,ImageDigitalVerifyOptions).
New barcode and QR code types
GS1DotCode barcodes, and HanXin, GS1HanXin, MailMark 2D, HIBC LIC, HIBC PAS and Swiss QR codes with their structured data classes (Mailmark2D, HIBCLICPrimaryData, HIBCLICSecondaryAdditionalData, HIBCLICCombinedData, HIBCPASData, HIBCPASRecord, SwissQR, SwissAddress).
Other improvements
PreviewOptions.setResolutionsets the DPI of preview images (96 by default).Signature.searchandSignature.verifyaccept Predicate filters.- Word documents keep their OOXML compliance when saved, and
WordProcessingSaveOptionscan set it (OoxmlCompliance).
Package
The package is available on npm: @groupdocs/groupdocs.signature.
npm install @groupdocs/groupdocs.signature@26.10.0
Public API and backward incompatible changes
The public API matches GroupDocs.Signature for Java 26.10.
The following classes and enumerations are now exported from the package root:
- Options and settings:
CertificateSearchOptions,DicomSaveOptions,ImageDigitalSignOptions,ImageDigitalVerifyOptions,DigitalVBA,PreviewPageData,SignatureContext - Signatures and structured data:
CertificateMetadataSignature,DicomXmpEntry,Mailmark2D,MaxiCodeSecondMessage,HIBCLICCombinedData,HIBCLICPrimaryData,HIBCLICSecondaryAdditionalData,HIBCPASData,HIBCPASRecord,SwissAddress,SwissQR - Enumerations:
HashAlgorithm,OoxmlCompliance,Permissions,ShapePosition,StoreName,DicomXmpType,Mailmark2DType,HIBCLICDateFormat,HIBCPASDataLocation,HIBCPASDataType - Exceptions:
ArchiveSecurityException
PreviewOptions, PreviewFormats, SpreadsheetPosition and TextShadow moved to other Java packages (com.groupdocs.signature.options.preview and com.groupdocs.signature.domain.extensions.signoptions). They are exported under the same names, so JavaScript code that uses them from the package root does not need to change.
See Behavior changes to check before upgrading.
Feedback
We value your feedback! If you have any questions, issues, or suggestions, feel free to reach out to us through our Free Support Forum. Our team will be happy to assist you and answer any questions you may have.