These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to enable extend features to Reader programatically using itextSharp

LKasic
Registered: Jan 11 2011
Posts: 11
Answered

I am trying to fill the pdf form fields programatically and output resulting pdf form to iframe.
I want to let the user edit the fields and submit by clicking on a submit button on the acro form.
 
BUt from the browse(or adobe reader) the pdf form is not editable as the reader extended feature is lost with the 'form fill' operation in the code.
Is there anyway I can programatically enable reader extension?
 
I tried to create fdf file programatically and open the fdf in the iframe which would automatically load the associated pdf.This way the reader enabled pdf is no touched in code. this works but the only problem I have is - tool bar and navigation pane are visible.
 
I dont want the toolbar and navigation pane to show up.
 
#toolbar=0&navpanes=0" name="iframe_2" width="100%" height="500" />
 
if the uri is pointing to pdf, toolbar and navpanes are not visible. When I change the URI to point to fdf , toolbar and navpane show up.
 
Can anyone suggest what is the right or working solution to my problem?

Lakshmi Kasic

My Product Information:
Acrobat Standard 10.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Only possible with Adobe's LiveCycle Reader Extensions Server.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

LKasic
Registered: Jan 11 2011
Posts: 11
Accepted Answer
Thank you for the response.
I resolved this issue myself by doing the follwoing.

1)In the pdf, I enabled reader extensions and saved in on server.
2) Intead of programatically filling fields in pdf using itextsharp, I created a xfdf file programatically and gave the pdf url in its f tag.
3) I returned fdf as response with Content type as application/vnd.adobe.xfdf.

Browse will use Adobe reader to read the fdf and reader will load the pdf and fill the fields with values in fdf.
This is working on IE. I have not tested this with Other browsers.


I hope this update would be of help to others with similar issue.

Lakshmi Kasic