cancel
Showing results for 
Search instead for 
Did you mean: 

WD Java - removing attachment from interactive form

former_member190457
Contributor
0 Kudos

Hi developers,

I am working on Interactive Form by Adobe for WD JAVA.

Can anyone please explain how to REMOVE attachments from a PDF document?

I have only found way to attach items or lists of items.

Thanks, regards

Vincenzo

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

It should there be there, like I found out a way in WDA.. so may be you can expect in WDJ as well. May Be.

0 Kudos

Kunal,

I know this is the old posts. But still I am searching for the solution to remove attachments from Adobe form in WDA view. How did you do that in WDA.

Mani.

former_member190457
Contributor
0 Kudos

appearently impossible with SAP api

OttoGold
Active Contributor
0 Kudos

I believe it is possible, but I am no java guru. If you´re convinced it is not possible, could you share the proof, like any documentation link so the other people can benefit from the knowledge?

Regards Otto

Former Member
0 Kudos

Hi,

For attaching and removing the File form the form using Adobe Java Script

var sFile;
// Assign an Unique Value to sFile if you are attaching multiple files.
event.target.importDataObject(sFile);
oFile = event.target.getDataObject(sFile);
var pFile = event.target.getDataObjectContents(sFile);
var cFile = util.stringFromStream(pFile, "utf-16");

For the removing the attachments form the form

var sFile;
var myDoc = event.target;
myDoc.removeDataObject(sFile);

Regards,

Chandran S