[
https://issues.apache.org/jira/browse/PDFBOX-5049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17274494#comment-17274494
]
Maruan Sahyoun commented on PDFBOX-5049:
----------------------------------------
The issue with these particular samples is that a long "word" (which in the
sample is a long string of data without any break opportunities in between)
needs to fit into a field which is only 1 char wide. Because of that the code
tries to fit the "word", finds it's not possible, gets the first char, tries to
fit the rest, which is not possible, get's the first char of the rest ...
All of that with calculating the string width of the reminder of the strung
which is a costly operation.
> PlainText.Paragraph.getLines extremely slow on long lines
> ---------------------------------------------------------
>
> Key: PDFBOX-5049
> URL: https://issues.apache.org/jira/browse/PDFBOX-5049
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 2.0.21
> Reporter: Tilman Hausherr
> Priority: Major
> Attachments: GHOSTSCRIPT-690526-0.pdf, GHOSTSCRIPT-692591-0.pdf,
> GHOSTSCRIPT-692591-2.pdf
>
>
> The three attached files are very slow when constructing the appearance on
> the field "gendate" (on the last page). That is a multiline field but with an
> extremely long text.
> It happens at "// single word does not fit into width".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]