Hi again.

Thanks for the quick reply! :)

Well, Designer 7 can save documents in the 1.5 format. And I've tested filling those forms with iText aswell. I find that I still need to remove XFA for it to work. And still the JavaScript is gone after the process. :(

As for adding the JavaScript. I can't figure out from the documentation what to do. I've got to the point that I know I have to call "setAdditionalActions" on a "PdfAnnotation" object. But I'm having trouble finding out how to get the PdfAnnotiation object in the first place. I don't find any methods in the AcroFields class that can fetch the annotation. Only to fetch the string value of a field. Thus I'm pretty sure I'm going about this the wrong way.

I'm really trying to understand the documentation on this. But I just can't understand how to get the PdfAnnotation so that I can set the javascript.

Thanks again,
Chris.

From: "Paulo Soares" <[EMAIL PROTECTED]>
Reply-To: "Paulo Soares" <[EMAIL PROTECTED]>
To: "Chris Groenewald" <[EMAIL PROTECTED]>,<[email protected]>
Subject: Re: [iText-questions] Javascript disappears after removing XFA, and Compression.
Date: Sat, 2 Apr 2005 15:55:38 +0100



----- Original Message ----- From: "Chris Groenewald" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, April 02, 2005 3:32 PM Subject: [iText-questions] Javascript disappears after removing XFA, and Compression.


> Hi all,
>
> I've seen in the mail archives that one can remove the XFA from a Acrobat
7
> form to make filling of the form possible. And it works too. But I've also
> seen one nasty side effect: The client-side JavaScript in the PDF goes
> missing.
>
> Is there any way to preserve the JavaScript in the document after having
> removed the XFA form?
>


No. I don't have Acrobat 7 but I'm surprised that forms compatible with
Acrobat 5 and 6 can't be created.

> If not, is there a way to re-add the JS to the form in a way that it'll
> work?
>

Yes. It's easy if you know what to do.

> Secondly:
>
> When setting Full Compression, the obvious happens, the pdf doesn't work
> with older versions of Reader.
>
> But I have seen some products that support "compression" in a way that the
> pdf's still work with older readers.
>


Only some parts are compressed in that case, usually structure content or
bookmarks. Nothing that would really help you.


> Now here is what I want to know: "Full Compression" implies that there are
> some lower forms of compression. Are there? Is this normally applied
> automatically because all readers support it? etc. I don't see much in the
> docs about this. Just the ability to "set full compression".
>


Full compression is actually object streams. It was introduced in pdf 1.5.
All the streams are compressed, hence the "full compression", streams and
objects. You should read the first chapters of the pdf reference, it's very
useful to know what can be done and can't be done.

> Thanks for the help and time.
> Chris.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

_________________________________________________________________
Get all the features of Hotmail and a whole lot more - sign up for MSN Hotmail Plus! http://join.msn.com/?pgmarket=en-xe&DI=1054&XAPID=1816




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to