-------------- Original message ----------------------
From: [EMAIL PROTECTED]
>
> Hi,
> 
> Thanks for the reply. Actually this is the requirements from our users. 

Hanna, you may wish to reconsider before you accept this as a requirement. 
While it may be technically feasible to do what you want, in a way, it may not 
be a requirement that can produce a long-lastinjg and reliable end product.

> Even though we can use toolbar in Adobe Reader, they really want to have 
> the 'Print', 'Save' and 'Email' button on every page within the opening 
> PDF document which is generated by iText. I found the 
> "PdfAction.PRINTDIALOG" for the 'Print' function, but didn't find any for 
> 'Save' and 'Email'. Does iText support them?

You can indeed add a "Print", "Save", and Email" button to every page of a PDF 
generated with iText. You must ensure you select the correct actions that go 
with the buttons in order to come as close as possible to what your users want. 
Note: I've used "want" instead of "require", as it's not yet clear that your 
users wants should be accepted as requirements.

That said (written), here's a feasible way to implement the "Save" and "Email" 
actions that will work with Adobe reader, acting as a plugin in the client 
browser.

1. Save - Submit as HTML (url-encoded name=value pairs) to a server-side script 
that will capture the form data and merge same with a copy of the PDF on the 
server-sed of the transaction, returning the merged PDF back to the client 
browser with appropriate headers to ensure the user can save the filled 
AcroForm.

2. Email - Same as above, except the server-side process should email the 
merged AcroForm to specified addressee(s) as an attachment to the email.

Notes:

1. There are provisions in the Adobe Reader EULA that prohibit you from doing 
this an a "localhost" server, even though it might be technically feasible.
2. While Adobe Reader supports "mailto:"; as an action (I haven't checked 
current version to see if this is still so. Leonard?), Adobe has in the past 
recommended its use only for testing for a valid TCP/IP connection. There are 
reasons, unrelated to itext, why you shouldn't rely on this approach for 
deployment to users, not the least of which is that you have no control over 
the user's mail client/agent. You should be able to test for yourself if the 
mailto: action is available in your version(s) of Adobe Reader.

Hope this helps.

Best regards,
Bill Segraves

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to