Blog Post

PSPDFKit Libraries 1.4 for Java and .NET: Text Extraction, Trial Flow, Modernization

We’re thrilled to announce the release of PSPDFKit Libraries 1.4 for Java and .NET. This release includes text extraction, a smoother getting started and trial experience, a modernized example project using .NET 5, and plenty of bug fixes.

Extract Text

In this release, we added a flexible text extraction API to the Page classes for Java and .NET. You can now call GetTextLines on a Page, which will return a TextBlock containing the text string and position for each line of text on the page.

Using the text extractor is easy:

var document = new Document(new FileDataProvider("documentWithText.pdf"));
var textLines = document.GetPage(0).GetTextLines();
foreach (var textLine in textLines)
    var linePosition = textLine.GetRect();
    // .. do something with `linePosition`..
PdfDocument document = FileDataProvider(new File("documentWithText.pdf")));
List<TextBlock> textLines = document.getPage(0).getTextLines();
for (TextBlock textLine : textLines) {
    Rect linePosition = textLine.getRect();
    // .. do something with `linePosition`..
val document ="documentWithText.pdf")))
val textLines = document.getPage(0).textLines
for (textLine in textLines) {
    val linePosition = textLine.rect
    // .. do something with `linePosition`..

Check out our text extraction guides for Java and .NET for more details.

Smooth Trial Flow

With this release, we’ve made it easier to get started and try our product. Using the new initializeTrial() method allows you to try the libraries without a license key! Check out our brand-new Get Started guides for step-by-step instructions on how to get up and running quickly with PSPDFKit.

.NET 5

For our PSPDFKit for .NET customers, you can now run our Catalog example application with .NET 5.

Final Notes

We’ve been hard at work on some important bug fixes and performance improvements to include in this release. Check out the changelogs for Java and .NET for more details.

Amit Nayar Android Team Lead

Related Products
Share Post
Free 60-Day Trial Try PSPDFKit in your app today.
Free Trial

Related Articles

Explore more
TUTORIAL  |  .NET • Java • C# • How To

Stop Wasting Bandwidth with PDFs - Transfer Changes with Instant JSON

TUTORIALS  |  PDF • .NET • How To • Redaction

How to Combine OCR with Redaction in .NET

PRODUCTS  |  Android • iOS • Web • Java • .NET • Components

Optical Character Recognition in Scanned PDFs