Skip to Main Content

ORDS, SODA & JSON in the Database

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!

Need to print Japanese on PDF with APEX 5.1 running ORDS3.0

Chunlei LiaoJun 5 2017 — edited Jun 8 2017

Hi,

We currently have an issue with printing Japanese to a PDF report in APEX 5.1.  We have tried to create a fop.xml file with the contents below, but getting an error when tomcat started.

<fop>

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

  <fonts>

    <substitutions>

         <substitution>

            <from font-family="Helvetica"/>

            <to font-family="Gothic TrueType"/>

         </substitution>

    </substitutions>

  </fonts>

  <renderers>

    <renderer mime="application/pdf">

      <filterList>

        <value>flate</value>

      </filterList>

      <fonts>

        <font kerning="yes" embed-url="/var/lib/tomcat/webapps/i/apex/font/kochi-gothic-subst.ttf" sub-font="Gothic TrueType">

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

        </font>

      </fonts>

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

    </renderer>

  </renderers>

</fop>

Getting "Caused by: java.util.InvalidPropertiesFormatException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 37; Document root element "fop", must match DOCTYPE root "null"." error.  Can someone please advise what can be done to correct this issue?

Thanks,

Lei

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 6 2017
Added on Jun 5 2017
5 comments
402 views