prepopulate pdf with dynamicpdf

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Merger for Java (v6)  /  prepopulate pdf with dynamicpdf

DynamicPDF Merger for Java (v6) Forum

 Jul 08 2011 11:34 AM
Hi

i am using dynamic  pdf api to prepopulate my PDF forms.
But when i draw the bytes out of it and render to browser, display is screwed because of setting values.

My code sample..

MergeDocument doc=new MergeDocument(filepath, new MergeOptions()true);

doc.getForm().getFields().getFormField("fieldname").setValue(someValueString);
.....
doc.draw();

I dont see any error or exception.
Please advise.
 Jul 08 2011 12:19 PM
Posted by a ceTe Software moderator
Hello,

Can you please send over the input PDF document and the output by saving it to disk using Draw method to our support team at: support@cete.com? Also tell us exactly what you mean by " display is screwed because of setting values" with respect to the output PDF document. This information will help us to look into it further.

Thanks,
ceTe Software Support Team.
 Jul 08 2011 2:52 PM
I use setValue() method to fill some fields in the form.
and output pdf has its fields messedup. like with some fields dont populate well or button fields(preexisting on pdf) loose their label.

if i dont prepopulate using setValue() but buttons are fine.
so it happens whenever i try to write onto pdf using api.
 Jul 08 2011 4:42 PM
Posted by a ceTe Software moderator
Hello,

We would need to be able to reproduce this issue on our end in order to find a resolution. Please send the original PDF form as well as the final PDF output that is messed up to support@cete.com so we can recreate this issue on our end.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 2:49 PM.