본문 바로가기

Develop

FOP 와 아랍어(Arabic)

https://xmlgraphics.apache.org/fop/2.1/configuration.html


The Apache FOP Project

The Apache™ FOP Project


html을 PDF로 변환




아랍어 지원관련

http://xmlgraphics.apache.org/fop/2.1/complexscripts.html#fonts_arabic


<fop version="1.0">

  <!-- Strict user configuration -->

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


  <!-- Strict FO validation -->

  <strict-validation>true</strict-validation>


  <!-- Base URL for resolving relative URLs -->

  <base>./</base>


  <!-- Font Base URL for resolving relative font URLs -->

  <font-base>./</font-base>


  <!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->

  <source-resolution>72</source-resolution>

  <!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->

  <target-resolution>72</target-resolution>


  <!-- default page-height and page-width, in case value is specified as auto -->

  <default-page-settings height="11in" width="8.26in"/>


 <renderers>

  <renderer mime="application/pdf">

    <filterList>

      <!-- provides compression using zlib flate (default is on) -->

      <value>flate</value>

    </filterList>

    <fonts>

      <font kerning="yes" embed-url="file:///data/font/arial-unicode-ms.ttf" embedding-mode="subset">

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

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

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

          <font-triplet name="Arial Unicode MS" style="italic" weight="bold"/> 

      </font>

    </fonts>

  </renderer>

</renderers>

</fop>




'Develop' 카테고리의 다른 글

컨설턴트로 산다는 것은  (0) 2017.03.23
Redmine - ubuntu 14 설치하기  (0) 2017.02.24
ELK 참고  (0) 2017.02.24
Rest API 설계시 참고  (0) 2017.02.24
[Oracle] INSERT, UPDATE, DELETE  (0) 2016.10.06