-
1. Re: seam pdf encoding
lvdberg Dec 23, 2010 7:38 AM (in response to vata2999)Hi,
This has to do with the fact that the PDF-generator should include the special fonts in the final result.
As far as I know the seam PDF generator isn't able to do this, so you should go back to the basics.
To prevent these problems I use JasperReport. Its editor iReport has the posibility to define the inclusion of fonts, which works.It's a bit more complicated, but the ireport designer is a great tool, compared to the spartan way of editing Seam PDF pages.
Just give it a try
Leo
-
2. Re: seam pdf encoding
tony.herstell1 Dec 23, 2010 3:02 PM (in response to vata2999)Also moved to Jasper Reports to overcome limitations.
Watch for fonts being on server as well. -
3. Re: seam pdf encoding
gospodinov Dec 23, 2010 3:34 PM (in response to vata2999)This problem was solved a few months ago. I personally wrote the fix that was included in version 2.2.1.CR1:
https://issues.jboss.org/browse/JBSEAM-2369
The font must be installed on the system or embedded in the PDF document.
If you are using a facelets template for generating the PDF use:
<p:font name="/usr/share/fonts/webcore/verdana.ttf" encoding="Cp1251" embedded="true" size="10" style="bold">
or
<p:font name="c:\\windows\\fonts\\verdana.ttf" encoding="Cp1251" embedded="true" size="10" style="bold">
-
4. Re: seam pdf encoding
vata2999 Jan 19, 2011 4:58 AM (in response to vata2999)Hi,
i created seam pdf but i've got wierd result
text must appear sth like this
اميد پورهادي
but it appears this
ا م ي د پ و ر ه ا د ي
words seperate from each other
[CODE]<p:font name="c:\\windows\\fonts\\arial.ttf" encoding="Identity-H" embedded="true" >
اميد پورهادي
</p:font>
[/CODE]
I'm using JBOSS AS 6 and SEAM 2.2.1CR3