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?

Best regards

Roberto

Reply via email to