Page 1 of 1
Interactive Forms : PDF als File sichern
Posted:
Tue Jun 09, 2009 3:46 pm
by Andrej4665
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
Posted:
Wed Jun 10, 2009 3:06 pm
by Andrej4665
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();
}
...
Re: Interactive Forms : PDF als File sichern
Posted:
Mon Feb 03, 2014 7:26 pm
by Quirin4280
hat jemand noch eine andere Lösung diese vorhergehende funktioniert bei mir leider nicht? oder haeb ich eventuell was falsches eingegeben????