Spire.PDF 4.3.14 supports to declare the range when using SimpleTextExtractionStrategy to extract text in PDF

Spire.PDF

We're pleased to announce that Spire.PDF hotfix version 4.3.14 is released today. This version adds a new feature to declare the range when using SimpleTextExtractionStrategy to extract text in PDF. Besides, it also fixes an issue occurring when printing pdf in black and white. View the details below.

New feature:

  • Adds a feature to declare the range when using SimpleTextExtractionStrategy to extract text in PDF.
  • PdfDocument doc = new PdfDocument("input.pdf");
    RectangleF rec = new RectangleF(0,0,595,760);
    SimpleTextExtractionStrategy sim = new SimpleTextExtractionStrategy(); 
    string content = doc.Pages[0].ExtractText(rec,sim);
    string fileName = "output.txt"; 
    File.WriteAllText(fileName, content);
    

Bug fixes:

  • Fixes the issue that printing in black and white would give a blur result.

Get the most recent version of Spire.PDF 4.3.14 here:
More information of Spire.PDF new release or hotfix: