#1 2019-05-09 09:28:29

tariqd
Member
Registered: 2019-05-09

Working sample for exportfilemd/pdfexport.cf

Hello,

Can someone share a a working sample for exportfilemd/pdfexport.cf ?

Thanks,

-T

Offline

#2 2019-05-09 09:30:52

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Working sample for exportfilemd/pdfexport.cf

Hi tariqd,

please check this:
https://forum.reportserver.net/viewtopi … 2326#p2326

Regards,
Eduardo

Offline

#3 2019-05-12 05:22:26

tariqd
Member
Registered: 2019-05-09

Re: Working sample for exportfilemd/pdfexport.cf

eduardo wrote:

Hi tariqd,

please check this:
https://forum.reportserver.net/viewtopi … 2326#p2326

Regards,
Eduardo

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

#4 2019-05-13 08:08:05

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Working sample for exportfilemd/pdfexport.cf

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

Offline

#5 2019-05-13 10:23:50

tariqd
Member
Registered: 2019-05-09

Re: Working sample for exportfilemd/pdfexport.cf

Hi Eduardo,

Still not working, so here is exactly what I've done, not sure what I've missed:

  1. 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

  2. I've copied arial.ttf from C:\Windows\Fonts to C:\Windows\Fonts and renamed it to Arial.ttf

  3. 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>
  4. When I execute the report from ReportServer the native characters are not showing.

  5. Below is the snapshot for the pdf Document Properties... from Adobe Acrobat Reader
    pdf.png

Thanks,

-T

Last edited by tariqd (2019-05-13 10:27:01)

Offline

#6 2019-05-13 10:28:43

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Working sample for exportfilemd/pdfexport.cf

Hi tariqd,

have you reloaded your configuration with "config reload"? (in the reportserver terminal)

Regards,
Eduardo

Offline

#7 2019-05-13 10:34:43

tariqd
Member
Registered: 2019-05-09

Re: Working sample for exportfilemd/pdfexport.cf

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

#8 2019-05-13 10:38:07

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Working sample for exportfilemd/pdfexport.cf

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

Offline

#9 2019-05-13 10:54:19

tariqd
Member
Registered: 2019-05-09

Re: Working sample for exportfilemd/pdfexport.cf

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

#10 2019-05-13 10:57:53

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Working sample for exportfilemd/pdfexport.cf

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

Offline

#11 2019-05-14 07:24:09

tariqd
Member
Registered: 2019-05-09

Re: Working sample for exportfilemd/pdfexport.cf

Hello Eduardo,

eduardo wrote:

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.

eduardo wrote:

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

#12 2019-05-14 07:43:30

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Working sample for exportfilemd/pdfexport.cf

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

Offline

#13 2019-05-14 08:54:52

tariqd
Member
Registered: 2019-05-09

Re: Working sample for exportfilemd/pdfexport.cf

Hi Eduardo,

datenwerke wrote:

/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

#14 2019-05-14 09:10:44

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Working sample for exportfilemd/pdfexport.cf

Hi tariq,

enterprise is only required for the second file.

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB