Hi, > Am 11.07.2015 um 02:54 schrieb Roberto Nibali <[email protected]>: > > Hi > > In my test setup, I have encountered something really weird with the > current SVN snapshot of PDFBox: setting a PDTextField entry for the first > time in a PDF will stall PDFBox for 10 or more seconds. Here is a trace: > > --> [01.20.pp] Setting PDCheckbox: checked=true > PERFORMANCE: [01.20.pp completed in 34ms] > --> [01.20.c] Setting PDCheckbox: checked=false > PERFORMANCE: [01.20.c completed in 1ms] > --> [01.20.g] Setting PDCheckbox: checked=false > PERFORMANCE: [01.20.g completed in 0ms] > --> [01.20.e] Setting PDCheckbox: checked=false > PERFORMANCE: [01.20.e completed in 1ms] > PERFORMANCE: [01.20 completed in 1ms] > --> [01.010.hkname] Setting PDTextField: value=Rataplan Ltd. maxlen=30 > curlen=13 > PERFORMANCE: [01.010.hkname completed in 11103ms] > --> [01.010.hkkontakt] Setting PDTextField: value=Kramer maxlen=30 curlen=6 > PERFORMANCE: [01.010.hkkontakt completed in 6ms] > --> [01.010.hktel] Setting PDTextField: value=00490009009 maxlen=-1 > curlen=11 > [...] > PERFORMANCE: [OVERALL completed in 11637ms] > > This happens always with the first PDTextField. Exluding the currently > first entry "01.010.hkname" in the code, only shifts the issue to the next > PDTextField entry. > > When I disable the handling of the PDTextField part alltogether, the code > runs very fast: > > --> [01.20.pp] Setting PDCheckbox: checked=true > PERFORMANCE: [01.20.pp completed in 23ms] > --> [01.20.c] Setting PDCheckbox: checked=false > PERFORMANCE: [01.20.c completed in 0ms] > --> [01.20.g] Setting PDCheckbox: checked=false > PERFORMANCE: [01.20.g completed in 1ms] > --> [01.20.e] Setting PDCheckbox: checked=false > PERFORMANCE: [01.20.e completed in 0ms] > [...] > PERFORMANCE: [OVERALL completed in 141ms] > > What's going on here?
I've created https://issues.apache.org/jira/browse/PDFBOX-2871 for that. BR Maruan > > Best regards > > Roberto --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

