on 09-17-2008 11:18 AM
Hi,
I been uploaded PDF file in my webDynpro java prjo..can anybdy tell me how to read data which is there in pdf?
ThankQ
Regards
Renu
Hi Renushree,
go through this doc:[Doc|http://media.sapintel.com/CD150%20Building%20Adobe%20Interactive%20Forms.pdf]
hpe it hlps
Regards
Khushboo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi renushree,
Just go through this link where you will find the PDF regarding conversion of PDF using XI ...
Hope this wiil help you and if then can award points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
here, i inserted data in the interactive pdf which is on my desktop and saved it.
now i uploaded this pdf and when i click on submit button, my program has to read the content of the pdf.
i wrote the below code n executed it.
>>PDDocument pdfdocument=null;
>> try
>> {
>> IWDResource res = wdContext.currentContextElement().getResource();
>> InputStream ins = res.read(false);
>> BufferedInputStream in = new BufferedInputStream(ins);
>> PDFParser parser = new PDFParser(in);
>> parser.parse();
>> pdfdocument = parser.getPDDocument();
>> PDAcroForm pda=new PDAcroForm(pdfdocument);
>> PDField pfl1=pda.getField("Gm_Code");//lable name
>> wdComponentAPI.getMessageManager().reportSuccess("Stge_ Loc : "+pfl1.getValue());
>> }
>> catch(Exception e)
>> {
>> wdComponentAPI.getMessageManager().reportSuccess("Exception: "+e.getMessage());
>> }
i can able to get the lable names, but not the values.
how to get the values...
kindly put some light on this
thanks in advance
Renu
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.