You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2015/07/11 08:09:04 UTC
[jira] [Created] (PDFBOX-2871) Performance issue when filling the
first PDTextField of a AcroForm
Maruan Sahyoun created PDFBOX-2871:
--------------------------------------
Summary: Performance issue when filling the first PDTextField of a AcroForm
Key: PDFBOX-2871
URL: https://issues.apache.org/jira/browse/PDFBOX-2871
Project: PDFBox
Issue Type: Bug
Components: AcroForm
Affects Versions: 2.0.0
Reporter: Maruan Sahyoun
When filling the first PDTextField in a form the performance is slow. All other PDTextFields in the form are handled quickly.
This code
{code}
PDTextField field = (PDTextField) doc.getDocumentCatalog().getAcroForm().getField("Textfield01");
long start = System.nanoTime();
field.setValue("ABCD");
long end = System.nanoTime();
double difference = (end - start)/1e6;
System.out.println(difference);
field = (PDTextField) doc.getDocumentCatalog().getAcroForm().getField("Textfield02");
start = System.nanoTime();
field.setValue("ABCD");
end = System.nanoTime();
difference = (end - start)/1e6;
System.out.println(difference);
{code}
produces the following output
{noformat}
9713.38
3.904
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org