01.02.2013 Views

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Resolving PDF Font Issues During Cross-Platform Deployment<br />

Note: The corresponding AFM files for all <strong>the</strong> TrueType fonts used<br />

in your report should be available on <strong>the</strong> UNIX machine <strong>to</strong> ensure<br />

adequate formatting is enforced.<br />

6.2.2.1 Step by Step Procedure for Single Byte fonts<br />

This section outlines <strong>the</strong> steps involved in generating a PDF report (using single byte<br />

fonts) designed on <strong>the</strong> Windows platform on ei<strong>the</strong>r Solaris or any o<strong>the</strong>r UNIX<br />

platform. These steps are required only if you see font alignment issues in your PDF<br />

output.<br />

1. Create a report on <strong>the</strong> Windows platform with TrueType fonts. For this procedure,<br />

<strong>the</strong> fonts referred <strong>to</strong> are arial.ttf and tahoma.ttf.<br />

2. Copy <strong>the</strong> fonts (arial.ttf and tahoma.ttf) and your report’s .rdf file <strong>to</strong> <strong>the</strong><br />

UNIX platform. The path for <strong>the</strong> font files should be ORACLE_HOME/font<br />

folder. Add <strong>the</strong> font file’s path <strong>to</strong> <strong>the</strong> REPORTS_PATH environment variable.<br />

3. Create <strong>the</strong> AFM files for <strong>the</strong> font files (arial.ttf and tahoma.ttf).<br />

4. Copy <strong>the</strong> AFM files (arial.afm and tahoma.afm) generated <strong>to</strong> ORACLE_<br />

HOME/guicommon9/tk90/admin/AFM.<br />

Note: The AFM files should be copied <strong>to</strong> <strong>the</strong> AFM direc<strong>to</strong>ry<br />

without <strong>the</strong> .afm extension. Additionally, ensure that <strong>the</strong> name of<br />

afm file, <strong>the</strong> name of <strong>the</strong> font in <strong>the</strong> .ppd file, and <strong>the</strong> name of <strong>the</strong><br />

font <strong>the</strong> uifont.ali file are an exact match.<br />

5. Ensure that <strong>the</strong> TK_PRINTER environment variable or <strong>the</strong> PRINTER environment<br />

variable is set <strong>to</strong> <strong>the</strong> printer name. For example, hrprinter.<br />

6. Ensure that <strong>the</strong> uiprint.txt file has <strong>the</strong> following entry:<br />

printer name:PostScript:2:test:default.ppd:<br />

For example:<br />

hrprinter:PostScript:2:test:default.ppd:<br />

7. Add <strong>the</strong> AFM entries <strong>to</strong> <strong>the</strong> ppd file.<br />

Note: This ppd file is <strong>the</strong> first entry in <strong>the</strong> uiprint.txt file and<br />

contains your font information. The default ppd file is<br />

datap462.ppd.<br />

*Font arial: Standard "(001.001)" Standard ROM<br />

*Font tahoma: Standard "(001.001)" Standard ROM<br />

8. Ensure that <strong>the</strong>re are no entries in <strong>the</strong> [PDF:Subset] section at this time in <strong>the</strong><br />

uifont.ali file.<br />

9. Run <strong>the</strong> report <strong>to</strong> generate <strong>the</strong> PDF file. In Acrobat Reader, click File > Document<br />

Properties > Fonts or File >Document Info > Fonts:<br />

a. The Original Font column displays <strong>the</strong> Arial and Tahoma fonts.<br />

b. There will be some font alignment issues.<br />

6-14 <strong>Oracle</strong> Application Server <strong>Reports</strong> Services <strong>Publishing</strong> <strong>Reports</strong> <strong>to</strong> <strong>the</strong> <strong>Web</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!