Posted by a ceTe Software moderator
Hello Petrus,
We did some testing on our end using the version 6 DynamicPDF Generator for Java product jar file and we are able to set the text to the TextArea page element after adding it to Page object. Below is the sample code which we have used for our testing.
Document document = new Document();
Page page = new Page();
document.getPages().add(page);
String text = "HelloWorld.";
Label label=new Label(text,10,200,200,200);
TextArea textArea = new TextArea(text, 10, 10, 200, 200);
page.getElements().add( label );
page.getElements().add( textArea );
textArea.setText("New Text");
document.draw("C:/MyDocument.pdf" );
Please make sure that you are using latest DynamicPDF for Java product jar file in your application and this should work for you. You can download the latest jar file by logging into our CustomerArea:
http://www.DynamicPDF.com/CustomerArea using your product serial number. Remove reference for the old jar file and reference the latest jar file in your application.
If you are evaluating the product then you can download the latest jar file from our website at:
http://www.DynamicPDF.com/Products/DynamicPDFforJava/Download.csp.
If you continue getting the similar behavior even after using the latest jar file then please send over the sample code to our support team at:
support@cete.com so that they can look into it further.
Thanks,
ceTe Software Support Team.