Spire.PDF

Spire.PDF 5.4.1 supports finding & highlighting text that cross lines and adding digital signatures with LTV

We're glad to announce the release of Spire.PDF hotfix version 5.4.1. This version adds four fantastic new methods to support finding and highlighting text that cross lines, adding digital signatures with LTV, getting and setting background color of form field, and setting coordinate position for the picture in PdfGridCell. Moreover, it also optimizes the speed of printing PDF files and fixes numerous bugs that occurred when converting, manipulating and printing PDF files. The complete list of new features and bug fixes is given below.

New Features:

  • Supports finding and highlighting text that cross lines.
  • PdfDocument doc = new PdfDocument(input);
    PdfTextFind[] result = null;
    foreach (PdfPageBase page in doc.Pages)
    {
        result = page.FindText("This is a test", TextFindParameter.CrossLine).Finds;
        for (int i = 0; i < result.Length; i++)
        {
            result[i].ApplyHighLight(Color.Yellow);
        }
    }
    doc.SaveToFile(output); 
    
  • Supports adding digital signatures with LTV (Long Term Validation).
  • PdfNewDocument doc = new PdfNewDocument();
    PdfPageBase page = doc.Pages.Add();
    String pfxPath = inputFile;
    PdfCertificate cer = new PdfCertificate(pfxPath, password, X509KeyStorageFlags.Exportable);
    PdfSignature signature = new PdfSignature(doc, page, cer, "s1");
    signature.Bounds = new RectangleF(new PointF(100, 100), new SizeF(200, 200));
    signature.ConfigureHttpOCSP(null, null);
    doc.Save(outputFile);
    
  • Supports getting and setting the background color of the form field.
  • PdfRGBColor color = xxField.BackColor;
    xxField.BackColor = Color.Yellow;
    
  • Supports setting the coordinate position of the picture in PdfGridCell.
  • PdfGridCellContent cellContent = new PdfGridCellContent();
    cellContent.ImageLocation = new PointF(20,20);
    
  • Optimizes the printing speed.

Bug Fixes:

  • Fixes the issue that some characters were missing and extra characters were added when extracting text.
  • Fixes the issue that the merged document could not be opened with the Microsoft Edge browser.
  • Fixes the issue that the barcode in the document was displayed incorrectly when printing a PDF.
  • Fixes the issue that the content was truncated and lost when drawing text using the PdfTextWidget function.
  • Fixes the issue that the position of new text was slightly shifted down when replacing text.
  • Fixes the issue that the added image tag was changed.
  • Fixes the issue that the application threw a "the reference object was not set to an instance of the object" error when converting TIFF to PDF.
  • Fixes the issue that vertical text was garbled when converting PDF to images.
  • Fixes the issue that the application threw a "the reference object was not set to an instance of the object" error when merging PDFs containing hidden content.
  • Fixes the issue that the content was garbled when splitting a PDF document.
  • Fixed the issue that the application hung when finding text from a PDF.
  • Fixes the issue that some content was incorrect when merging PDF documents.
  • Fixes the issue that setting the checkbox field value did not take effect.
  • Fixes the issue that the space between numbers was increased when converting PDF to XPS.
  • Fixes the issue that the content was garbled when printing PDFs.
  • Fixes the issue that the application threw an "index cannot be less than zero or greater than count" error when merging documents.
  • Fixes the issue that the data was displayed incorrectly while open the result PDF with the Microsoft Edge browser after rotating pages.

Click the link to download Spire.PDF 5.4.1:
More information of Spire.PDF new release or hotfix: