Re: [iText-questions] How to save 'UTF-8' characters to PDF file in JAVA

2013-05-11 Thread iText Mailing List
On Sat, 11 May 2013 11:44:53 +0200, Aleksander Sadecki wrote:I did it as you mentionedWow, I've never met somebody that could read that fast! Are you sure you've read all the documentation in less than half an hour?Did you see http://manning.com/lowagie2/samplechapter2.pdf and read about all poss

Re: [iText-questions] How to save 'UTF-8' characters to PDF file in JAVA

2013-05-11 Thread Mohammed AlSayani
I was having the same proble but with arabic chars and I use this May it will help you * const string regex_match_arabic_hebrew = @"[\u0600-\u06FF,\u0590-\u05FF]+"; BaseFont nationalBase = BaseFont.CreateFont("c:windowsfontsTimes.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);* a

Re: [iText-questions] How to save 'UTF-8' characters to PDF file in JAVA

2013-05-11 Thread Aleksander Sadecki
Thank you, I did it as you mentioned but it still does not save polish chars... On 11 May 2013 11:28, 1T3XT BVBA wrote: > On 11/05/2013 11:21, caniutfit wrote: > > Thank you very much, > > > > Which fonts support polish chars ? > Right now you're using the standard Type 1 font Times Roman. Why

Re: [iText-questions] How to save 'UTF-8' characters to PDF file in JAVA

2013-05-11 Thread 1T3XT BVBA
On 11/05/2013 11:21, caniutfit wrote: > Thank you very much, > > Which fonts support polish chars ? Right now you're using the standard Type 1 font Times Roman. Why not use times.ttf instead? (Please read the book and try some examples to get acquainted with how fonts work.)

Re: [iText-questions] How to save 'UTF-8' characters to PDF file in JAVA

2013-05-11 Thread caniutfit
Thank you very much, Which fonts support polish chars ? In fact I use it in another way, but I wanted to give clear example. Firstly I'm taking records from database and I'm saving name to String String xx = DB When I print xx I see correctly polish chars, so I do not keep this strange sym

Re: [iText-questions] How to save 'UTF-8' characters to PDF file in JAVA

2013-05-11 Thread iText Mailing List
On Sat, 11 May 2013 10:56:27 +0200, caniutfit wrote: > All of these work, but in does not write polish chars - "ą", "ń"etc. 1. You're using TIMES_ROMAN, which may not know how to draw these glyphs. Use another font instead. See the documentation. For instance this example: http://itextpdf.com/

[iText-questions] How to save 'UTF-8' characters to PDF file in JAVA

2013-05-11 Thread caniutfit
Hi, I've just started my work with iTextPDF and I met a small problem and I hope you'll help me. I have got the following code: Document document = new Document(); PdfWriter.getInstance(document, new FileOutputStream(file)); document.open(); Paragraph p1 = new Paragraph("Żńąęasdas", FontFactor