cancel
Showing results for 
Search instead for 
Did you mean: 

Need urgnet help to read pdf

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Renushree,

go through this doc:[Doc|http://media.sapintel.com/CD150%20Building%20Adobe%20Interactive%20Forms.pdf]

hpe it hlps

Regards

Khushboo

Answers (1)

Answers (1)

Former Member
0 Kudos

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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9913a954-0d01-0010-8391-8a307644...

Former Member
0 Kudos

here i dont hav xi

i want through webdnypro application, i need to readt the data which is there in pdf...

Former Member
0 Kudos

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