Hi All,
I'm trying to develop an i18n application with Hebrew support on Linux Red-Hat 9.0.
I'm using JBuilder 8.0 as development platform on W2K and Apache 2.0/Tomcat 5.0 on Linux side with itext-paulo-138.jar version. My java version is JAVA2 1.4.2_04
Before coding I read arabic_hebrew.java from http://itextpdf.sourceforge.net/
Here is my code:
============
private BaseFont bfTimes = BaseFont.createFont(fontPath + "times.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
**** I copy times.ttf from Window to Linux in my fontPath.
PdfPTable table = new PdfPTable(2);
table.setRunDirection(PdfWriter.RUN_DIRECTION_RTL);
table.setRunDirection(PdfWriter.RUN_DIRECTION_RTL);
PdfContentByte cb = writer.getDirectContent();
ColumnText ct = new ColumnText(cb);
ct.setRunDirection(PdfWriter.RUN_DIRECTION_RTL);
ColumnText ct = new ColumnText(cb);
ct.setRunDirection(PdfWriter.RUN_DIRECTION_RTL);
On Window I get a good pdf document in Hebrew from RTL -- 1 page (expected)
On Linux I get an empty document -- 3 empty pages (very strange)
If a change the font from times.ttf to HELVETICA I get an java.io.UnsupportedEncodingException: Identity-H execption ! (don't understand)
I miss something !?
Help please
Elie
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
