Pavol Behul wrote:
> On 12/10/2009 07:21 PM, Pavol Behul wrote:
>> Hello,
>>
>> by editing pdf via adobe acrobat pro extended i make button with 
>> SaveAs Menu action.
>> It creates object:
>>
>>
>> It is some possibility to make this menu actions by itext ?
>>
>> Regards,
>> Pavol.
> 
> Thanks for reply, it helps for SaveAs, in next step i have tried menu 
> action "Save", without success, document didn't save. I try both examples:
> 1. JS
> pushButton.setAction(PdfAction.javaScript("app.execMenuItem('Save')", 
> writer));
> 
> 2. making code as follows:
> PdfAction action = new PdfAction();
> action.put( PdfName.S, PdfName.NAMED );
> action.put( PdfName.N, new PdfName( "Save" ) );
> pushButton.setAction(action);
> 
> Can be also Save action invoked ?

That will only work in Acrobat (for obvious reasons).
If you want it to work in Adobe Reader, your document
needs to be Reader enabled.

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to