cancel
Showing results for 
Search instead for 
Did you mean: 

Howw to fill a pdf file with data

Former Member
0 Kudos

Hi all,

In my application I have a pdf file contains 3 input fields.. ProdId,ProdName,ProdQty..Now, I want these three fields be filled with values dynamically using InteractiveForm in WebDynpro. I put this pdf file in

src->mimes -->components --> <mycomponent>.

OR

Suggest me if any other way to do this in WebDynpro.

Thanks in advance

LakshmiNarayanChowdary.N

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

Thanks for yuor reply..

But my intension is..

Iam going to attach my pdf file using Email. But before attaching file

I have to fill it with data at runtime.

Please suggest me

Regards

LakshmiNarayana

Former Member
0 Kudos

Hi Lakshmi,

You have to map the fields in ur pdf with your context. Follow this tutorial.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/dynamic%20non-interactive%20pdf%20form.pdf">Dynamic Forms</a>

Moreover, for your email application, check this tutorial.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/offline%20interactive%20pdf%20form%20using%20e-mail.pdf">Mail Tutorial</a>

Regards,

Abdullah Ismail

Former Member
0 Kudos

Hi Abdullah,

Those tutorials are for creating and filling pdf forms dynamically. I priorly refered them.. But in my application, I kept a pdf file statically in

src> mimes>components.. Is it possible to map our context nodes to the file

in src> mimes>components.. ? If yes, Please provide sample code

Thanks in advance

LaskhmiNarayanaChowdary.N

Former Member
0 Kudos

Hi,

I dont think you can map to this files stored in src> mimes>components

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Ayyapparaj,

Yes It's not possible.. that's why I've facing problem to put values

Actually, in our application one static and empty pdf file (with 3 Text Fields ) will be there. And we have to put different values in it based on some conditions and then attach to Mail . In the links mentioned above we are able to create and fill pdf form dynamically. But that is not the case here.. Please try it.

Regards

LakshmiNarayanaChowdary.N

Former Member
0 Kudos

Hi Laxmi,

Check the cardinality of the context value node(Data Source) should be 1..1 and selection 0..1 and singleton set to true.

and supposing your value node is named ValueNode and TextField1 is the name of your text field.

wdContext.currentValueNode.setTextField1("Value");

Moreover I would advise you to create a adobe file in NWDS in your WD application rather than create it outside the application in LiveCycle Designer. This will aid in binding the fields of the adobe file with the context.

Regards,

Abdullah

Message was edited by:

Abdullah Ismail