You are not logged in.
Hello,
Can someone share a a working sample for exportfilemd/pdfexport.cf ?
Thanks,
-T
Offline
Online
Thanks Eduardo for your reply.
In the the link you provided it sets <path> as the following:
<path>PATH_TO_FONT/NotoSansCJKtc-Regular.otf</path>
What is not clear for me is the value of PATH_TO_FONT, is relative to ReportServer's internal file server (so I need to upload the file to some something like /etc/fonts/FONT_NAME.ttf and <path> value shall be the same)? or relative to the machine's file system (just copy the file to D:\fonts\FONT_NAME.ttf and <path> value something like D:/fonts/FONT_NAME.ttf) ?
Thanks,
-T
Last edited by tariqd (2019-05-12 07:30:33)
Offline
Hi tariqd,
you can just copy the file to your machine's file system, e.g.: <path>/Users/eduardo/Downloads/NotoSansCJKtc-hinted/NotoSansCJKtc-Regular.otf</path>
Regards,
Eduardo
Online
Hi Eduardo,
Still not working, so here is exactly what I've done, not sure what I've missed:
I'm using ReportServer 3.0.5 and JasperStudio to develop my report, defined the Font Extension and the pdf exported from there is showing the native characters properly
I've copied arial.ttf from C:\Windows\Fonts to C:\Windows\Fonts and renamed it to Arial.ttf
exportfilemd/pdfexport.cf looks as the following:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<pdf>
<fontDirectories registerDefaultDirectories="false">
<dir></dir>
</fontDirectories>
<fonts>
<font>
<path>D:/fonts/Arial.ttf</path>
<encoding><![CDATA[Identity-H]]></encoding>
<embed><![CDATA[true]]></embed>
</font>
</fonts>
</pdf>
</configuration>
When I execute the report from ReportServer the native characters are not showing.
Below is the snapshot for the pdf Document Properties... from Adobe Acrobat Reader
Thanks,
-T
Last edited by tariqd (2019-05-13 10:27:01)
Offline
Hi tariqd,
have you reloaded your configuration with "config reload"? (in the reportserver terminal)
Regards,
Eduardo
Online
Hi Eduardo,
No, I have not.
I've Googled that and ended up at https://reportserver.net/en/guides/admi … /Terminal/ , still not sure how to launch the terminal itself (I have bitnami stack under Windows)
Thanks,
-T
Offline
Hi tariqd,
the guide you linked is correct. The terminal is a reportserver specific one: it will work on windows/mac/linux. Just press CTRL+ALT+T while having reportserver open and the terminal will appear. Sometimes you have to press more than one time, if the focus is in a textfield for example. But it will show if you have terminal rights. If you log with root you will be able to.
Regards,
Eduardo
Online
Hi Eduardo,
CTRL+ALT+T did the trick.
I run the command config reload and re-executed the report, unfortunately still not working.
Thanks,
-T
Offline
Hi tariqd,
what are you actually trying to do?
You asked for a working example of exportfilemd/pdfexport.cf but for what purpose?
For a first test, please use the exact font and configuration linked in the tutorial. This should work. Then you can start modifying it to your needs, e.g. to use Arial.ttf. But first you should try with the exact font and configuration in the tutorial.
Regards,
Eduardo
Online
Hello Eduardo,
what are you actually trying to do?
You asked for a working example of exportfilemd/pdfexport.cf but for what purpose?
I'm having issued where native language character are not displaying when JasperReport is executed in ReportServer and exported as pdf file.
For a first test, please use the exact font and configuration linked in the tutorial.
Can you please share the link to such tutorial?
Thanks,
-T
Offline
Hi tariqd,
with tutorial I meant the information here: https://forum.reportserver.net/viewtopi … 2326#p2326
As a first step, try with the exact font linked in the tutorial and with the exact configuration.
Regards,
Eduardo
Online
Hi Eduardo,
/fileserver/etc/exportfilemd/pdfexport.cf: To make ReportServer aware of a font that supports Chinese characters
/fileserver/etc/dynamiclists/pdfexport.cf: To use the font when exporting Dynamic Lists to PDF (this change requires ReportServer Enterprise Edition)
I have ReportServer Community Edition RS3.0.5-6005, so is the above statement regarding requiring Enterprise Edition about both files? or is it only for exporting Dynamic lists into pdf? (my case is exporting JasperReport to pdf).
Thanks,
-T
Offline
Hi tariq,
enterprise is only required for the second file.
Regards,
Eduardo
Online