Spire.Doc 13.9.3 supports adding PDF digital signatures and timestamps for Word to PDF conversion

Spire.Doc 13.9.3 supports adding PDF digital signatures and timestamps for Word to PDF conversion

2025-09-11 03:06:13

We're pleased to announce the release of Spire.Doc 13.9.3. This version introduces public classes that enable adding digital signatures and timestamps when saving PDF documents. It also exposes bookmark column properties, adds search options for OfficeMath handling during text replacement, and supports setting page layout when converting to PDF. In addition, several issues related to Word-to-PDF conversion, document loading, and page counting have been fixed. See the full details below.

Here is a list of changes made in this release

Category ID Description
New feature - Adds public classes PdfDigitalSignatureHashAlgorithm, PdfDigitalSignatureInfo, and PdfDigitalSignatureTimestampConfiguration to enable adding digital signatures and timestamps when saving PDF documents.
Document sDoc = new Document();
sDoc.LoadFromFile(inputFile);
ToPdfParameterList toPdfParameter = new ToPdfParameterList();
toPdfParameter.DigitalSignatureInfo = new PdfDigitalSignatureInfo(pfxInputFile, pfxPassword, "Test signing", "Spire Doc"); 
toPdfParameter.DigitalSignatureInfo.HashAlgorithm = PdfDigitalSignatureHashAlgorithm.RipeMD160;
toPdfParameter.DigitalSignatureInfo.SignatureDate = nowDateTime;
toPdfParameter.DigitalSignatureInfo.TimestampConfiguration = new PdfDigitalSignatureTimestampConfiguration("https://freetsa.org/tsr", "bill", "Password");
sDoc.SaveToFile(outputFile3, toPdfParameter);
New feature SPIREDOC-11376 The Bookmark object now exposes FirstColumn and LastColumn properties, supporting retrieval of the column where a bookmark starts and where it ends.
int firstColumn = doc.Bookmarks["t_insert"].FirstColumn;
int lastColumn = doc.Bookmarks["t_insert"].LastColumn;
New feature SPIREDOC-11445 Adds the SearchOptions class, supporting the option to ignore or include OfficeMath formula text during text replacement.
SearchOptions op = new SearchOptions();
op.IgnoreOfficeMath = false;
doc.Replace("ab","new", op);
New feature SPIREDOC-11452 Adds the PageLayout property to support setting page layout when converting to PDF. The enumeration types are as follows: Default: Does not write a value; displayed according to the PDF reader's default view. SinglePage: Single page view. OneColumn: Continuous single-page view. TwoColumnLeft: Continuous two-page view, odd-numbered pages on the left. TwoColumnRight: Continuous two-page view, odd-numbered pages on the right. TwoPageLeft: Two-page view, odd-numbered pages on the left. TwoPageRight: Two-page view, odd-numbered pages on the right.
Document doc = new Document("xx.docx");
ToPdfParameterList toPdf = new ToPdfParameterList(){ PageLayout = PdfPageLayout.TwoColumnLeft };
doc.SaveToFile("xx.pdf", toPdf);
Bug SPIREDOC-10022 Fixes incorrect parsing of LaTeX formulas.
Bug SPIREDOC-10885 Fixes inconsistent table styles when converting Word to PDF.
Bug SPIREDOC-10992 Fixes header images being obscured when converting Word to PDF.
Bug SPIREDOC-11018 Fixes incorrect text positioning when converting Word to PDF.
Bug SPIREDOC-11041 Fixes incorrect paragraph indentation when converting Word to PDF.
Bug SPIREDOC-11129 Fixes table content shifting when converting Word to PDF.
Bug SPIREDOC-11184 SPIREDOC-11391 Fixes inconsistent table styles when converting Word to PDF.
Bug SPIREDOC-11384 Fixes extra blank pages appearing when converting Word to PDF.
Bug SPIREDOC-11423 Fixes System.NullReferenceException thrown when converting Word to PDF.
Bug SPIREDOC-11438 Fixes ArgumentOutOfRangeException thrown when loading a Word document.
Bug SPIREDOC-11512 Fixes incorrect page count retrieval.
Click the link below to download Spire.Doc 13.9.3:
More information of Spire.Doc new release or hotfix: