Friday, October 21, 2011

How to use XML Publisher for arabic PDF reports ?

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com
Problem:    How to use XML Publisher for arabic PDF reports ?

Solution:

You can put the fonts directly into the paths at the operating system level .
Map these files in the XDO.cfg file .
A sample XDO.cfg file ((Just a sample )) :

using the below xdo.cfg file is an option.

<config version="1.0.0" xmlns="" target="_blank" aJS>http://xmlns.oracle.
com/oxp/config/">
<!-- XML Publisher configuration file. -->
<!-- Please uncomment an element or property to enable options -->
<!-- Copy the file to <JRE_TOP>/lib directory on all nodes -->
<!-- (web node and concurrent nodes) named as xdo.cfg -->

<!-- Properties -->
<properties>
<!-- Temporary directory -->
<!-- Specify temporary directory. $APPLTMP directory -->
<!-- is strongly recommended for this parameter. -->
<!-- On concurrent node, $APPLTMP will be used by -->
<!-- default. -->
<property name="system-temp-dir">/testoraapps/TEST/testcomn/temp</property>
</properties >

<fonts>
<!-- Font setting (for FO to PDF etc...) -->
<!-- <family> is case insensitive. -->
<!-- <style> must be "italic" or "normal" -->
<!-- <weight> must be "bold" or "normal" -->
<!-- Follow the structure of <trutype path="...." /> -->
<!-- to map a font to a TrueType font. -->
<!-- Example of mapping "MS Gothic" to -->
<!-- kochi-gothic-subst.ttf -->

<font family="MS Gothic" style="normal" weight="normal" >
<truetype
path="/testoraapps/TEST/testcomn/util/java/1.4/j2sdk1.4.2_04/ALBANWTJ.ttf" />
</font>

<font family="Arial" style="normal" weight="normal" >
<truetype
path="/testoraapps/TEST/testcomn/util/java/1.4/j2sdk1.4.2_04/ALBANWTJ.ttf" />
</font>

<font family="Courier" style="normal" weight="normal" >
<truetype
path="/testoraapps/TEST/testcomn/util/java/1.4/j2sdk1.4.2_04/ALBANWTJ.ttf" />
</font>

- Or use the mapping from the XML application as per the above researches .

For your standalone BIP There is a "Font Mapping" option under the Admin Tab >> Runtime Configuration 
>> Font Mappings

References:



Get Oracle Certifications for all Exams
Free Online Exams.com

No comments: