Spire.PDF for Python 11.12.1 supports timestamping digital signatures

Spire.PDF for Python 11.12.1 supports timestamping digital signatures

2025-12-12 10:24:31

We’re pleased to announce the release of Spire.PDF for Python 11.12.1. This update brings several new features, including timestamping digital signatures, configuring options when converting PDF to Excel, and ignoring images when converting PDF to Markdown. Meanwhile, it fixes two known issues as well. More details are as follows.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPDF-7326 Added support for timestamping digital signatures.
doc = PdfDocument ()
        doc. LoadFromFile (inputFile)
        # Create a digital signature
        signature = Security_PdfSignature (doc, doc.Pages.get_Item(0), inputFile_pfx,"08100601", "signature")
        signature.SignDetailsFont =  PdfFont(PdfFontFamily.Courier,8.0)
        # Set the bounds of the signature box
        signature.Bounds = RectangleF(PointF(90.0, 550.0), SizeF (180.0, 90.0))
        # Configure signature appearance and details
        signature.NameLabel = "Digitally signed by:Gary"
        signature.LocationInfoLabel ="Location:"
        signature.LocationInfo = "CN"
        signature.ReasonLabel = "Reaseon:"
        signature.Reason = "Ensure authenticity"
        signature.ContactInfoLabel = "Contact Number:"
        signature.ContactInfo = "028-81705109"
        # Set document permissions
        signature.DocumentPermissions = PdfCertificationFlags.ForbidChanges.value
        # Set graphic mode for the signature
        signature.GraphicsMode = Security_GraphicMode.SignImageAndSignDetail
        # Set the signature image
        signature.SignImageSource = PdfImage.FromFile(inputImage)
        #When setting “none", the Image and Detail are distributed on both sides, when setting “Stretch", the image extends to the entire signatu
        signature.SignImageLayout = SignImageLayout.none
        url = "https://freetsa.org/tsr"
        signature.ConfigureTimestamp(url)
        signature.ConfigureHttpOCSP (None, None)
        signature.Certificated = True
        doc.SaveToFile(outputFile)  
        doc.Close()
New feature - Added support for configuring text layout options when converting PDF to Excel.
pdf = PdfDocument()
pdf.LoadFromFile(inputFile)
textOption = XlsxTextLayoutOptions(True, False, False)
pdf.ConvertOptions.SetPdfToXlsxOptions(textOption)
pdf.SaveToFile(outputFile, FileFormat.XLSX)
pdf.Dispose()
New feature - Added support for configuring line layout options when converting PDF to Excel.
pdf = PdfDocument()
pdf.LoadFromFile(inputFile)
lineOption = XlsxLineLayoutOptions(False,False,False,False)
pdf.ConvertOptions.SetPdfToXlsxOptions(lineOption)
pdf.SaveToFile(outputFile, FileFormat.XLSX)
pdf.Dispose()
New feature - Added support for configuring table layout options when converting PDF to Excel.
# Load the PDF document from the specified input file path
pdf.LoadFromFile(inputFile)
# Set the XlsxSpecialTableLayoutOptions as the conversion options for PDF to XLSX conversion
options = XlsxSpecialTableLayoutOptions(False, False, False)
# Save the PDF document as an Excel file using the specified format and options
pdf.SaveToFile(outputFile, FileFormat.XLSX)
New feature - Added support for configuring OFD conversion options.
pdf = PdfDocument ()
pdf. LoadFromFile (inputFile)
ofdOptions =  OfdOptions()
ofdOptions.UseTempFileStorage = True
pdf.ConvertOptions.SetPdfToOfdOptions(ofdOptions)
pdf.SaveToFile(outputFile,FileFormat.OFD)
New feature - Added support for ignoring images when converting PDF to Markdown.
# Create an instance of PdfToMarkdownConverter with the input PDF file
converter = PdfToMarkdownConverter(inputFile)
# Configure the converter to skip processing images in the PDF
converter.MarkdownOptions.IgnoreImage = True
# Convert the PDF content to Markdown format and save to the output file
converter.ConvertToMarkdown(outputFile)
New feature SPIREPDF-7870 Added support for configuring SVG output width and height when converting PDF to SVG.
converter =  PdfToSvgConverter(inputFile)
converter.SvgOptions.ScaleX = 1.0
converter.SvgOptions.ScaleY = 1.0
converter.Convert(outputFile)
Bug SPIREPDF-7670 Fixed an issue where table borders were lost when converting PDF to PPTX.
Bug SPIREPDF-7868 Fixed an exception thrown when setting cell borders on PdfGrid.
Click the link to download Spire.PDF for Python 11.12.1:

Coupon Code Copied!

Christmas Sale

Celebrate the season with exclusive savings

Save 10% Sitewide

Use Code:

View Campaign Details