Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=5444939
By: wdick
Hi,
first of all, thank you for trying jPod.
Forms and PDF contents rendering are two separated concepts in PDF. Every PDF
viewer just displays the page contents including its annotations. So it is the
acroform's job to provide an appearance representing its current state. If you
change the field's state inside an application, the appearance is regenerated
and becomes visible. That is what happens, when you click or tab into the field.
If you change an acroform field's value inside your application, then you have
two choices to make the changes visible:
1. Set the acroform flag "NeedAppearances". This tells the renderer, that acroform
field appearances are missing and should be regenerated (all of them). This
consequently changes the document every time it is opened in a PDF viewer. Method
de.intarsys.pdf.pd.PDAcroForm.setNeedAppearances(boolean) sets this flag.
2. Render an appearance representing the new field state. Right now, the open
sourced version of jPod doesn't contain ready to use annotation appearance renderers,
but all the infrastructure to implement your own ones.
Take a look at the references and implementors
of de.intarsys.pdf.app.appearance.IAppearanceCreator. The basic rendering examples
can also be applied to rendering field state appearances.
An overview of jPod and associated libraries can be found at
http://opensource.intarsys.de
Hopefully my hints will help you to find a solutions for your problem.
wdick
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=727492
|