[ 
https://issues.apache.org/jira/browse/PDFBOX-5049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18059777#comment-18059777
 ] 

Maruan Sahyoun edited comment on PDFBOX-5049 at 2/19/26 7:05 PM:
-----------------------------------------------------------------

[~tilman]  could you take a look at the code and maybe run a test using your 
suite to ensure it doesn't break existing renditions. The tests in pdfbox pass. 
If you're fine I'll apply to the other versions.

Note it still takes several seconds on my system to do the computation because 
of the very long string we have to compute the individual widths for. But this 
is very special to the case at hand. The optimization is still worth for other 
much simpler cases.


was (Author: msahyoun):
[~tilman]  could you take a look at the code and maybe run a test using your 
suite to ensure it doesn't break existing renditions. The tests in pdfbox pass.

> 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
>            Assignee: Maruan Sahyoun
>            Priority: Major
>         Attachments: GHOSTSCRIPT-690526-0.pdf, GHOSTSCRIPT-692591-0.pdf, 
> GHOSTSCRIPT-692591-2.pdf, PlainText.patch
>
>
> 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.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to