projects / org / ezproject2010 / paradoxpdf / forum / general / special characters
Find the Exponential Software extensions you want
You need to be logged in to post messages in the forums. New users may register here.
Member since: Posts: 9 |
Thursday 23 April 2009 7:37:46 am Hi
Is it possible to generate PDF with iso-8859-2 characters? Now PDF is generated right but some characters are missing, like čć. I need all characters ŠĐČĆŽ and šđčćž. Best regards, Sinisa P.S. with iText it is possible. ----- |
|
Member since: Posts: 72 |
Thursday 23 April 2009 7:54:07 am Hello,
First try this: Add this at the top of the used pagelayout <?xml version="1.0" encoding="iso-8859-2"?> If dosen't do the job Could you Activate the debug and send me command output ? Thanks http://www.amiralweb.com Certified eZPublish Expert |
|
Member since: Posts: 9 |
Friday 24 April 2009 1:40:12 am Hi
My site is in all in utf-8 encoding. After enable debug i don't see any errors or warnings in paradoxpdf.log PDF is generated but some characters are missing like ČĆŽ and čćž! Best regards, Sinisa ----- |
|
Member since: Posts: 72 |
Friday 24 April 2009 3:27:24 am Ok,
I suspect a font loading problem. What font do you use for that content ? Note : i'm planning to add custom fonts loading in the Roadmap. http://www.amiralweb.com Certified eZPublish Expert |
|
Member since: Posts: 9 |
Friday 24 April 2009 5:07:42 am Hi
Yes problem is with fonts. Times-Roman, encoding ANSI, Type 1 Can you please upload source to sourceforge.net? Or put it here in svn? Sinisa ----- |
|
Member since: Posts: 72 |
Sunday 26 April 2009 7:55:30 pm I have released the version 2.0 of paradoxpdf it is now built over Xhtmlrenderer R8 Final.
Just checkout the new version, you can simply make your characters rendering by setting font encoding in the css : @font-face { -fs-pdf-font-encoding: Identity-H; } Hope this will help you Warning : now there are two branches : V1.x and V2.x the trunk contains the V2.X source http://www.amiralweb.com Certified eZPublish Expert |
|
Member since: Posts: 9 |
Monday 27 April 2009 4:45:52 am Hi
I have put this inside css file
----- |
|
Member since: Posts: 72 |
Monday 27 April 2009 5:15:29 am Can you send me the xhtml and the css example ?
http://www.amiralweb.com Certified eZPublish Expert |
|
Member since: Posts: 9 |
Monday 27 April 2009 5:33:05 am Shure,
just give me yout email address. Best regards, Sinisa ----- |
|
Member since: Posts: 72 |
Monday 27 April 2009 5:38:26 am You can find my email adress in the header of all sources :)
http://www.amiralweb.com Certified eZPublish Expert |
|
Member since: Posts: 72 |
Monday 27 April 2009 6:58:55 am Here is the solution :
@font-face { font-family: "Life L2"; src: url(life.ttf); -fs-pdf-font-encoding: Identity-H; } body{ font-family: "Life L2"; } The renderer will not embed any font unless it wasn't applied on html elements; So make sure first that your design works in firefox, by commenting the paradoxpdf operator call on your pagelayout template. Then when every thing looks fine, enable the paradoxpdf operator call on your template; Enjoy http://www.amiralweb.com Certified eZPublish Expert |
|
|
Member since: Posts: 2 |
Monday 15 February 2010 7:52:18 am Hi,
I am working on a japanese PDF and I can't get ParadoxPDF to render my japanase chars. In your example, where do you physically put the .ttf file ? Best regards |
|
Member since: Posts: 72 |
Monday 15 February 2010 9:25:03 am Hello Emmanuel,
you can put the fonts, for example, in your design extension: extension/myextension/design/mydesign/fonts/font.ttf the fonts directory should be relative to your css file for example : extension/myextension/design/mydesign/stylesheets/style.css then in the css :
http://www.amiralweb.com Certified eZPublish Expert |
|
|
Member since: Posts: 2 |
Tuesday 16 February 2010 3:18:40 am Hello Mohamed,
yes it's same as the images included in css. My real problem wasn't here : font-family has to be the font family name, and nothing else. Now I have my japanese characters :-) Thanks for your answer and for your extension ! Emmanuel |
|
Member since: Posts: 72 |
Tuesday 16 February 2010 5:49:40 am You are welcome Emmanuel.
A bientôt ;) http://www.amiralweb.com Certified eZPublish Expert |
You need to be logged in to post messages in the forums. New users may register here.