pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maruan Sahyoun <sahy...@fileaffairs.de>
Subject Re: Livecycle PDF - JS support
Date Wed, 28 Oct 2015 06:20:03 GMT
Hi,

> Am 28.10.2015 um 04:47 schrieb Tolen Miller <tolenmiller@msn.com>:
> 
> Hello,
> 
> I am working on a form produced in Adobe Livecycle, which is being filled
> via PDFBox 1.8.10. I am wondering what options I have to show/hide a field
> based on it's value (and possibly a list of field names since some fields
> should always show).  i.e. there are several fields I would like to hide
> (or table rows that contain them), when they are null.
> 
> Normally, I could do this in an initialization javascript on the livecycle
> form itself (all users use Adobe's Reader), but this does not seem to work
> when opening the form after filling it with PDFBox. Is this not supported?
> Does editing the form destroy the scripts or is something else happening?

would it be possible to upload a sample form before and after filling to a public location
and mention the field which should be affected by the JS.

PDFBox does not execute any JS - be it in AcroForms or XFA. But the Adobe Reader should execute
it - dependent on the event the JS is in.

BR
Maruan

> 
> I would either like to persist the scripts that exist on the form so they
> may execute; create scripts in java code to add to the form; or create the
> functionality in java and omit js entirely.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message