Extract Text Word & Line Spacing from PDF

We are extracting data with format from PDF paragraphwise as shared in pervious topic using below snippet


When trying to do so above functions return values 0.0. But there exists some special line spacing in document which is not being returned by the functions.
Same pdf when I am trying to convert to HTML using Aspose, the word spacing, line spacing, line height values are populated to span element as follows.


Can you please share your sample PDF document for our reference? We will test the scenario in our environment and address it accordingly.

Attached a reference document for the mentioned scenario
sample.pdf (273.3 KB)


We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-43335

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.