(Please reply to the mailing list) You must embedd the font.
> -----Original Message----- > From: Honza Spurný [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 11, 2006 12:31 PM > To: Paulo Soares > Subject: Re: [iText-questions] Czech characters into the PDF > > Paulo Soares wrote: > > See http://itextdocs.lowagie.com/tutorial/#part3. For example: > > > > BaseFont bf = BaseFont.createFont("c:\\windows\\fonts\\arial.ttf", > > "Cp1250", true); > > Font f = new Font(bf, 12); > > > > You can also replace the "Cp1250" encoding with "Identity-H". > > > > > Thanks a lot for advice, but this doesn't work to me. My > czech letters are > substituted with question mark "?" so instead to get a PDF > with text "This > is font Symbol 4ìšèøžýáíéš:..." i always get pdf with "This > is font Symbol > 4????????...." I can't find out, where I'm doing mistake... > Any help please. > (As I said before, I'm really newbie in iText) > > I'm using examples so my code is: > > Document document = new Document(); > try { > PdfWriter.getInstance(document, new > FileOutputStream("HelloWorld.pdf")); > document.open(); > document.add(new Paragraph("Hello World, ìšèøžýáíé, ÌŠÈØŽÝÁÍÉ")); > > BaseFont bf = BaseFont.createFont("/home/tis/arial.ttf", > BaseFont.CP1250, > false); > Font f = new Font(bf, 12); > > Paragraph p = new Paragraph(); > p.add(new Chunk("This text is in Times Roman. This is > ZapfDingbats: ", > new Font(Font.TIMES_ROMAN, 12))); > p.add(new Chunk("abcdefghijklmnopqrstuvwxyz", new > Font(Font.ZAPFDINGBATS, > 12))); > p.add(new Chunk(". This is font Symbol 4ìšèøžýáíéš: Routery k > p\u0159ipojen\u00ED ", f)); > p.add(new Chunk("abcdefghijklmnopqrstuvwxyz", new Font(Font.SYMBOL, > 12))); > > document.add(p); > > } catch (DocumentException de) { > System.err.println(de.getMessage()); > de.printStackTrace(); > } catch (IOException ioe) { > System.err.println(ioe.getMessage()); > ioe.printStackTrace(); > } > > >> -----Original Message----- > >> From: [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED] On > >> Behalf Of Honza Spurný > >> Sent: Tuesday, January 10, 2006 2:27 PM > >> To: [email protected] > >> Subject: [iText-questions] Czech characters into the PDF > >> > >> Hello everybody there, > >> > >> i'm a really novice to the iText and my goal is to know, how > >> to create PDF > >> file with Czech characters. I know how to create simply PDF > >> with common > >> Anglo-Saxon letters. Please, is there anybody who knows how > >> to achieve this > >> aim? I'm sorry for probably very easy and stupid question, > >> but I'm really > >> novice, and as I've been watching FAQs and iText forum, I > >> haven't found any > >> solution. > >> > >> Thanks a lot. > >> > >> Honza Spurny > >> > >> > >> > >> ------------------------------------------------------- > >> This SF.net email is sponsored by: Splunk Inc. Do you grep > >> through log files > >> for problems? Stop! Download the new AJAX search engine > that makes > >> searching your log files as easy as surfing the web. > >> DOWNLOAD SPLUNK! > >> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > >> _______________________________________________ > >> iText-questions mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/itext-questions > >> > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through > > log files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD > > SPLUNK! > > http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick > > _______________________________________________ > > iText-questions mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
