Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
-
Patch
Description
When parsing a PDF document, TextPosition is created with constant text height, about 2 time smaller than character width, regardless of font size.
The following workaround to calculate dyDisplay fixes the issue:
float verticalScaling = 1/1000f;
if (font instanceof PDType3Font)
float dyDisplay = bbox.getHeight() * fontSize * verticalScaling;
Attachments
Attachments
Issue Links
- relates to
-
PDFBOX-3062 Text extraction and height different in 2.0
- Closed
-
PDFBOX-2508 Text extraction getting zero font height, bad widths, and ? for text in this PDF with Type 3 Fonts
- Closed