Interactive Forms : PDF als File sichern

Rund um Java und SAP®.

Interactive Forms : PDF als File sichern

Postby Andrej4665 » Tue Jun 09, 2009 3:46 pm

Hallo zusammen, benutze ADS auf SAP CE 7.11.
kann mir jemand sagen, wie ich das ausgefüllte PDF
mit der aktuellen com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.api
als File sichern kann.

Danke Thomas
Andrej4665
..
..
 
Posts: 21
Joined: Fri Oct 07, 2005 7:16 am

Postby Andrej4665 » Wed Jun 10, 2009 3:06 pm

Hallo habe inzwischen selbst die Lösung gefunden.
Für Interessierte :
...
IPrivatePdfCompView.IContextElement contextElement = wdContext.currentContextElement();
byte[] bytes = contextElement.getPdfSource();

try

{

File file = new File(filename);

FileOutputStream os = new FileOutputStream(file);

os.write(bytes);

os.close();

}

catch (IOException e)

{

// do something

e.printStackTrace();

}

...
Andrej4665
..
..
 
Posts: 21
Joined: Fri Oct 07, 2005 7:16 am

Re: Interactive Forms : PDF als File sichern

Postby Quirin4280 » Mon Feb 03, 2014 7:26 pm

hat jemand noch eine andere Lösung diese vorhergehende funktioniert bei mir leider nicht? oder haeb ich eventuell was falsches eingegeben????
Quirin4280
.
.
 
Posts: 6
Joined: Tue Jan 21, 2014 8:46 am


Return to Java & SAP®

Who is online

Users browsing this forum: No registered users and 1 guest