[ https://issues.apache.org/jira/browse/PDFBOX-5049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17869014#comment-17869014 ]
Tilman Hausherr edited comment on PDFBOX-5049 at 7/27/24 3:18 AM: ------------------------------------------------------------------ Uh, no, it works on any page. I went on that page because the only field has its annotation there. In the meantime I tested the change and it's much faster. However I get a test failure: MultilineFieldsTest.testMultilineBreak:155 Number of lines generated by PDFBox shall match Acrobat ==> expected: <3> but was: <1> adobe file: {code} q 1 0 0 1 -20 -509.875 cm 1 0 0 -1 20 559.875 cm Q /Tx BMC BT /F1 12 Tf 1 0 0 1 0 0 Tm 0 g 0 g 2 34.1279 Td (12345678912345678912345678912345678912345678912345678912) Tj 0 -13.872 Td (34567891234567891234567891234567891234567891234567891234) Tj 0 -13.872 Td (56789) Tj ET EMC {code} new file: {code} q 1 0 0 1 -20 -509.875 cm 1 0 0 -1 20 559.875 cm Q /Tx BMC q 1 1 378.944 48 re W n BT /F1 12 Tf /DeviceGray cs 0 sc 2 34.128 Td (12345678912345678912345678912345678912345678912345678912) Tj ET Q EMC {code} The file is in the source at {{pdfbox\src\test\resources\org\apache\pdfbox\pdmodel\interactive\form}} and also in PDFBOX-3835. was (Author: tilman): Uh, no, it works on any page. I went on that page because the only field has its annotation there. In the meantime I tested the change and it's much faster. However I get a test failure: MultilineFieldsTest.testMultilineBreak:155 Number of lines generated by PDFBox shall match Acrobat ==> expected: <3> but was: <1> adobe file: {code} q 1 0 0 1 -20 -509.875 cm 1 0 0 -1 20 559.875 cm Q /Tx BMC BT /F1 12 Tf 1 0 0 1 0 0 Tm 0 g 0 g 2 34.1279 Td (12345678912345678912345678912345678912345678912345678912) Tj 0 -13.872 Td (34567891234567891234567891234567891234567891234567891234) Tj 0 -13.872 Td (56789) Tj ET EMC {code} new file: {code} q 1 0 0 1 -20 -509.875 cm 1 0 0 -1 20 559.875 cm Q /Tx BMC q 1 1 378.944 48 re W n BT /F1 12 Tf /DeviceGray cs 0 sc 2 34.128 Td (12345678912345678912345678912345678912345678912345678912) Tj ET Q EMC {code} > 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, 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: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org