Hi, Hope some one can help.
I have a customer that sends pay slips to it's employees as PDF. Their employees have been issued Android phones and most of them only view their pay slip on that phone.
The system that they send it through in Denmark charges pr kb so to reduce the size of the PDF i have disabled PDFFontEmbedding in the report. This reduces the file size from 180 kb to just 8 kb. Nice.
But this creates a major issue as now any line containing local characters, æøå, gets scrambled when opening the file on Android.
To compare this is what the lines looks line on pc. Sorry about the mismatched font, have tried some random solutions in between the two files. But it also clearly highlights that there is some issue with the encoding on those lines.
Answers
What method do you use to generate the documents? REPORT.SAVEASPDF?
I would think there are two possible causes:
You can try to use a different font (font name) when generating the document. I suggest you use one of the standard postscript ones. Most systems / viewers will have font substitutions for these if the font is not installed anyway. Best bet is Helvetica (as the NAV classic report designer defaulted to).
Tested on PC with Adobe Reader. There it only shows dots intead of the problem lines.
When it is run normally I use REPORT.SAVEASPDF but during testing i have just run the report and chosen to save as pdf instead of printing.
Do you have any suggestions for this? I have tried Arial, Roboto and Courier and none of these worked. Helvetica is a paid font so we are trying to avoid it.
Other options might be