cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error Displaying PDF with TrueType Font

Former Member
0 Kudos
351

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear All,

Changed the JAVA code to write byte data instead of string. This resolved the issue.

Thanks,

Abhishek.

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

markangelo_dihiansan
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Dear Mark,

Thank you for the response!

Right now we are facing an issue installing Futura Medium font in SAP PI (seems a license issue). I will update the thread as soon as testing happens.

Thanks,

Abhishek.

markangelo_dihiansan
Active Contributor
0 Kudos

Okay Abhishek,

Thank you! I hope your issue gets solved soon.

Regards,

Mark