Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Arabic font showing as # in the Downloaded PDF file

Amjad KhanNov 11 2019 — edited Nov 11 2019

Hello

We are using Oracle Database 18c XE, Oracle APEX 19.2 and ORDs 19.1 in our server. When we try to print a PDF file from our interactive report, we are getting '###' instead of Arabic fonts. We have created a file fop.xml with the following content. Our application Primary Language is Arabic (Saudi Arabia) and Document Directorin is Right to Left

<fop version="1.0" encoding="UTF-8">

  <strict-configuration>true</strict-configuration>

  <fonts>

    <substitutions>

         <substitution>

            <from font-family="Helvetica" />

            <to font-family="Arial"  />

         </substitution>

    </substitutions>

  </fonts>

  <renderers>

    <renderer mime="application/pdf">

      <filterList>

        <value>flate</value>

      </filterList>

      <fonts>

        <font kerning="yes" embed-url="/usr/share/fonts/msttcore/arial.ttf">

              <font-triplet name="Arial" style="normal" weight="normal"/>

        </font>

      </fonts>

      <stroke-text>false</stroke-text>

    </renderer>

  </renderers>

</fop>

and mention it in our ORDS's default.xml file as follow

<entry key="fop.configfile">/usr/share/fonts/msttcore/fop.xml</entry>

but the changes made in the fop.xml file does not make any difference in the downloaded PDF file. Can anybody have any solution regarding this matter?

Thank You in advance.

Comments

Natalie G

Did you check the generated PDF for embedded Arial? I think this is what's happening.

1 - 1

Post Details

Added on Nov 11 2019
1 comment
521 views