IDENTITY-H encoding in iText

View: New views
6 Messages — Rating Filter:   Alert me  

IDENTITY-H encoding in iText

by Mathias Nilsson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm currently working on a multilanguage pdf-generation system and iText is perfect for the job. When generating the pdf I also use ghost script and image magick to create a jpeg preview.
When using cp852 encoding for swedish, english etc everything works great.

But when using unicode font ( arial ) the pdf is generated, but ghost script complains about the pdf. Is there a way to check the pdf? When a co-worker opens the pdf in pit-stop an error occures about the IDENTITY-H font.

I create the font by using.
com.lowagie.text.Font f = new com.lowagie.text.Font(BaseFont.createFont( "d:/pdf/fonts/arialuni.ttf" ,BaseFont.IDENTITY_H ,BaseFont.EMBEDDED ));

How can I validate the pdf?

Re: IDENTITY-H encoding in iText

by Leonard Rosenthol-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sounds like you are using some old versions of Ghostscript and/or Pitstop.  Make sure you are current.

Identity-H is the right way to go!

Leonard

-----Original Message-----
From: Mathias Nilsson [mailto:wicket.programmer@...]
Sent: Friday, November 06, 2009 1:10 PM
To: itext-questions@...
Subject: [iText-questions] IDENTITY-H encoding in iText


Hi,

I'm currently working on a multilanguage pdf-generation system and iText is
perfect for the job. When generating the pdf I also use ghost script and
image magick to create a jpeg preview.
When using cp852 encoding for swedish, english etc everything works great.

But when using unicode font ( arial ) the pdf is generated, but ghost script
complains about the pdf. Is there a way to check the pdf? When a co-worker
opens the pdf in pit-stop an error occures about the IDENTITY-H font.

I create the font by using.
com.lowagie.text.Font f = new com.lowagie.text.Font(BaseFont.createFont(
"d:/pdf/fonts/arialuni.ttf" ,BaseFont.IDENTITY_H ,BaseFont.EMBEDDED ));

How can I validate the pdf?
--
View this message in context: http://old.nabble.com/IDENTITY-H-encoding-in-iText-tp26230847p26230847.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: IDENTITY-H encoding in iText

by Mathias Nilsson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm using Ghostscript 8.7 and I can't see any newer version.

/ Mathias

Re: IDENTITY-H encoding in iText

by Mathias Nilsson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Mathias Nilsson wrote:
I'm using Ghostscript 8.7 and I can't see any newer version.

/ Mathias
Here is the file I'm working with
test.pdf

Re: IDENTITY-H encoding in iText

by Paulo Soares-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't see anything wrong with the file and the pre-flight in Acrobat
doesn't complain. What errors do you get?

Paulo

----- Original Message -----
From: "Mathias Nilsson" <wicket.programmer@...>
To: <itext-questions@...>
Sent: Saturday, November 07, 2009 12:25 PM
Subject: Re: [iText-questions] IDENTITY-H encoding in iText





Mathias Nilsson wrote:
>
> I'm using Ghostscript 8.7 and I can't see any newer version.
>
> / Mathias
>
Here is the file I'm working with
http://old.nabble.com/file/p26240922/test.pdf test.pdf
--
View this message in context:
http://old.nabble.com/IDENTITY-H-encoding-in-iText-tp26230847p26240922.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: IDENTITY-H encoding in iText

by Mathias Nilsson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't have pit stop or other tools to check it right now but the problem was rather simple. When checking the ghost script it complains about a font IDENTITY-H.
I forgot that my list item used a none unicode font to make a box before every listitem.