If think you are at a point where you need to read two documents…

First, the PDF Reference (ISO 32000-1) in order to understand how Actions and 
Optional Content (aka Layers) are constructed in a PDF.
Second, the Acrobat JavaScript reference in order to understand the options you 
have available to you with scripting.

So the answer to your question is _MAYBE_ - but it depends on what you are 
trying to accomplish with your actions (eg. What kind of actions, where they 
are invoked, etc)

Leonard

From: Corina Kertesz [mailto:[email protected]]
Sent: Wednesday, March 25, 2009 9:46 AM
To: [email protected]
Subject: [iText-questions] Can PdfActions be enabled/disabled?

Hello,
       I am using iText to make a PDF file that contains a lot of 
interactivity. Now I also have to add layers, to the PDF file, that should have 
their own interactivity.
       This is where I started encountering problems.
       It seems that even thought I am adding the actions to a PdfTemplate that 
holds another layer, the actions apply to the entire page and are active in 
each layer. Can this behavior be avoided? Can each layer have its own actions?
       I am using PdfContentByte.setAction(action, x1, y1, x2, y2); to add the 
actions to the content byte and templates.
       If there is no predefined solution to this, I was thinking that I could 
mime this behavior if there were a way to disable/enable actions from another 
action. But again, I didn’t find a way to do this either.
       Please help.

Corina


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to