[
https://issues.apache.org/jira/browse/PDFBOX-3749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15961287#comment-15961287
]
Tilman Hausherr commented on PDFBOX-3749:
-----------------------------------------
ah, sorry, now I got it:
{code}
VOTING
String[220.32,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0 width=8.664001]V
String[228.96121,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=9.335999]O
String[238.32,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0 width=8.003998]T
String[246.36,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=4.6679993]I
String[251.028,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=8.663986]N
String[259.692,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=9.335999]G
SUPPORT
String[271.91998,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=6.671997]S
String[278.63998,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=8.664001]U
String[287.4,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0 width=7.3320007]P
String[294.732,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=7.3320007]P
String[301.91998,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=9.335999]O
String[311.27878,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=8.664001]R
String[319.91998,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=8.003998]T
AGREEMENT
String[330.96,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0 width=8.664001]A
String[339.72,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0 width=9.335999]G
String[348.96,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0 width=8.664001]R
String[357.6012,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=8.003998]E
String[365.6412,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=8.003998]E
String[373.6812,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=11.328003]M
String[384.9612,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=8.003998]E
String[393.00122,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=8.664001]N
String[401.64243,83.03998 fs=12.0 xscale=12.0 height=6.0 space=3.0
width=8.003998]T
{code}
> void writeString(String text, List<TextPosition> textPositions) is not called
> per line
> --------------------------------------------------------------------------------------
>
> Key: PDFBOX-3749
> URL: https://issues.apache.org/jira/browse/PDFBOX-3749
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.4
> Environment: Windows 10 64-bit
> Reporter: Harun Reşit Zafer
> Priority: Minor
> Labels: extraction, style
> Attachments: contract_00105_SEDAR-marked-1.png,
> contract_00105_SEDAR.pdf
>
>
> We overwrote the {{void writeString(String text, List<TextPosition>
> textPositions)}} method of the {{PDFTextStripper}} to extract additional
> position and style information from the PDFs. We thought this method would be
> called per line and the elements of the parameter {{List<TextPosition>
> textPositions}} would be all the letters, including the spaces in a line.
> This is indeed the case for thousands of the documents. However, one
> particular document, this is not the case and the {{textPositions}} contains
> just the letters of a word and {{writeString}} is called per word.
> I am not sure if this would be counted as a bug because the final extracted
> text is not affected.
> The problematic PDF is attached.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]