aspose file tools*
The moose likes XML and Related Technologies and the fly likes Journal Article - Creating Multiple Language PDFs using Apache FOP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Journal Article - Creating Multiple Language PDFs using Apache FOP" Watch "Journal Article - Creating Multiple Language PDFs using Apache FOP" New topic
Author

Journal Article - Creating Multiple Language PDFs using Apache FOP

Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
The just-released September 2004 edition of The JavaRanch Journal includes an article by Balaji Loganathan, "Creating Multiple Language PDFs using Apache FOP".

Please use this thread to comment on and discuss the article.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Please note that the Arabic text may appear in reversed and as seperated chars inspite of the correct xml input.
The current work around for this problem is to use a xsl:template and reverse the input string.

The new xsl is given below which can be used for the above article.


There is also another workaround by custom building the FOP engine specific to hebrew and arabic font, i will update this page when i get more info.
[ October 27, 2004: Message edited by: Balaji Loganathan ]

Spritle Software Blogs
sreeju k g
Greenhorn

Joined: May 29, 2005
Posts: 1
Dear Balaji,

Ok your post is helpfull. but in case of arabic characters it will not help. it is not a character by character language like arabic. I read your article and produce one pdf. Now the arabic characters are from right to left. but it is not readable. the links from one character to another is not there. so it is not the way to display arabic. if you have any solution to this please give me.

thanks in advance.
regards Sreeju
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by sreeju k g:
Now the arabic characters are from right to left. but it is not readable.
regards Sreeju

Is it the case even after reversing the string ??
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
By the way welcome to Javaranch Sreeju!!..
shail nig
Greenhorn

Joined: Oct 20, 2003
Posts: 14
i am not able to generate multilingual pdf using the above said procedure

can anyone help???

m using following command

FOP -c conf/userconfig.xml -xml Lang.xml -xsl MultiLAng.xsl -pdf MultiLang.pdf

my userconfig.xml file is

<font metrics-file="m-ARIAn.xml" embed-file="C:/m-ARIAn.ttf" kerning="yes">
<font-triplet name="mARIAn" />
<font-triplet name="mARIAn" />
</font>

<font metrics-file="Iqraa.xml" kerning="yes" embed-file="C:/WINNT/Fonts/Iqraa.ttf">
<font-triplet name="Iqraa" style="normal" weight="normal"/>
</font>

'#' is being generated instead of special characters

Shail
Skip Cole
Ranch Hand

Joined: Jan 05, 2001
Posts: 175
This doesn't work for me either.

I'm specifically interested in producing the Arabic output, but I am not getting it. Empty boxes show up for each of the characters.

Any ideas?


If you love me, you will visit docs.opensimplatform.org
(FYI, Getting it tattooed on is a bit much.)
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Empty boxes almost always mean you're using a font that can't render the characters that you aren't seeing.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Journal Article - Creating Multiple Language PDFs using Apache FOP