Hii want to askis possible with your itextsharp to code text with slovak/czech special letters ( á,é ....) ?Text is ok but special slovak/czech letters are not fine.i searched web for 6 hours and i cannot find solutionI am giving OdkazLink.ToString (web pdf) into StringBuilder and looking for data within pdfsorry if solution is obvious but i cannot find it :(
Obviously you didn't read the book: http://itextpdf.com/book
You could have saved 6 hours (which is worth quite a handful of money), just by taking a look at chapter 11.
For instance: http://examples.itextpdf.com/results/part3/chapter11/encoding_example.pdf
The key concepts are "encoding" and "using the right font".
Using the right font means you need a font that knows how to display special characters.
For instance: Helvetica won't be able to print all Czech glyphs, whereas Arial probably will.
Encoding means:
- if you have special characters in your code (which I wouldn't recommend):
-> save the file using the right encoding
-> compile the code using the right encoding
- if you get Strings with special characters from a database:
-> make sure your database uses the right encoding
-> make sure you query the database using the right encoding
See p26 of chapter 2: http://manning.com/lowagie2/samplechapter2.pdf
- if you create a Font, make sure you specify the right encoding
-> Use the one for Slovak/Czech text if you want to use a simple font
-> Use IDENTITY_H (recommended) if you want to use Unicode
Using the right encoding isn't difficult, but you can get it wrong on many places.
------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php