on 2013 Sep 06 6:18 AM
Dear All,
We have a scenario in PI:
HTTP (Sender) -Base64Encoded PDF in a XML message -> SAP PI -Base64Decode the data and generate PDF file-> Create PDF File in Folder
I am able to create PDF file using a JAVA mapping. The scenario works fine for most of the cases; however it fails for one of the data which is in TrueType Font. Did some search and found that there is a issue with TrueType fonts (may not be valid in my case...cant confirm).
Properties of document in error:
Properties of document in Success:
Any idea on how the above issue can be resolved in the JAVA mapping so that any pdf document opens properly?
When decoded using online converter the file is generating properly so there is no issue with the data neither with the fonts on my laptop.
Thanks,
Abhishek.
Request clarification before answering.
Dear All,
Changed the JAVA code to write byte data instead of string. This resolved the issue.
Thanks,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I tried to run the JAVA program as a standalone application using NWDS (in my laptop). The output file generated by this code was also in same error as shown above.
I have the necessary font installed in my laptop; so have a doubt if installing the font in PI system will really help
I am using class from sun.misc.BASE64Decoder but no success.
Any idea what additional coding/ setting would be required?
Thanks,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Abhishek,
It looks like the fonts you mentioned are needed to be installed in to your XI system.
Here are some links
http://help.sap.com/saphelp_nw70/helpdata/en/36/5b3438fd263402e10000009b38f8cf/content.htm
Also, you can view the fonts supported by opening any program in SE38 and then clicking the folder option in the lowermost right.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
41 | |
15 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.