on 06-09-2009 4:34 PM
Hi all,
I'm working with ADS on CE7.11. with the actual API
( com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.api ).
Please can someone tell me how to save the actual filled PDF to the filesystem.
There are lots of samples with the deprecated api, but none with the actual one.
Now I get a PDFObjectRuntimeException.
Best Regards..
Thomas
Hi all, after lots of hours I found a solution for myself.....
Please do not forget to set the a context-pdfSource-attribute to binary and bind it to the datasource...
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();
}
Regrads Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.