Yes I had seen the same but still my issue is not resolved I could not see some of the characters I think Arial font is already registered in Factory Can you tell me how to do it as I am registering all the fonts from font dir by FontFactory.registerDirectory(fontDir);
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Tuesday, April 17, 2007 12:54 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Change encoding of font That was already answered. Paulo ----- Original Message ----- From: "Avadhut Karambelkar" <[EMAIL PROTECTED]> To: "'Post all your questions about iText here'" <[email protected]> Sent: Tuesday, April 17, 2007 4:57 AM Subject: Re: [iText-questions] Change encoding of font > HI all > I have also the problem of font > I have following HTML text in file which I am trying to convert in PDF > But it doesn't work out can u help me PLZ > <font face="arial"> > Ą Ē Ģ Ī Ĩ Ķ § Ļ Đ š > Ŧ ­ Ū Ŋ ° ą ē ģ ī ĩ ķ > · ļ đ ŧ ― ū ŋ Ā á > â > ã ä å æ Į Č é Ę ë > Ė > í î ï ð Ņ Ō ó ô õ > ö > Ũ ø Ų ú û ü ý þ ß > ā ã ä å æ į č é ę > ë > ė í î ï ð ņ ō ó ô > õ > ö ũ ø ų ú û ü ý þ > ĸ ” ¢ £ ¤ „ ¦ ø © > Ŗ « ¬ ® ± ² ³ “ µ ¶ > ¹ ŗ » ¼ ½ ¾ Ć Ź Ń > × Ł Ś Ż ć ź ń ÷ ł ś > ż ’ £ Ċ ċ Ẁ © Ẃ Ỳ ® > ÿ Ġ ġ ¶ ẁ ẃ ỳ Ẅ ẅ > à ç è ê ì Ŵ ñ ò > ù Ŷ à ç è ê ì ŵ > ñ > ò ù ŷ ÿ ¡ € ¥ ª ¯ º > œ œ ÿ ¿ à ç è ê > ì > ñ ò ù à ç è ê ì > ñ ò ù ÿ ¡ ¥ ¨ ª ¯ > ´ > ¸ º ¿ à ç è ê ì > ñ > ò ù ç è ê ì ñ ò > ù ˘ Ľ ¨ Ş Ť ˛ ´ ľ ˇ > ¸ ş ť ˝ Ŕ Ă Ĺ Ě Ď Ň > Ő Ř Ů Ű Ţ ŕ ă ĺ ě ď > ň > ő ř ů ű ţ ˙ Ħ ˘ Ĥ ¨ > İ > Ş Ğ Ĵ ħ ´ ĥ ¸ ı ş ğ > ĵ Ĉ Ĝ Ŭ Ŝ ĉ ĝ ŭ ŝ ˙ > ¨ > ˛ ´ ˇ ¸ ˙ Ё Ђ Ѓ Є > Ѕ > І Ї Ј Љ Њ Ћ Ќ Ў Џ > А Б В Г Д Е Ж З И > Й К Л О П Р С Т У > Ф Ц Ч Ш Щ Ъ Ы Ь Э > Ю Я а б в г д е ж > з и й к л о п р с > т у ф ц ч ш щ ъ ы > ь э ю я № ё ђ ѓ є > ѕ і ї ј љ њ ћ ќ ў > џ ، ؛ ؟ ء آ أ ؤ إ > ئ ا ب ة ت ث ج ح خ > د ذ ر ز س ش ص ض ط > ظ ع غ ـ ف ق ك ل م > ن ه و ى ي ً ٌ ٍ َ > ُ ِ ّ ْ ‘ ΄ ΅ Ά Έ Ή > Ί Ό Ύ Ώ ΐ α β γ δ > ε > ζ η θ ι κ λ μ ν ξ ο π > ρ σ τ υ φ χ ψ ω Ϊ Ϋ > ά > έ ή ί ΰ α β γ δ ε > ζ > η θ ι κ λ μ ν ξ ο π ρ > ς σ τ υ φ χ ψ ω ϊ ϋ > ό ύ ώ ‗ א ב ג ד ה > ו > ז ח ט י ך כ ל ם מ > ן נ ס ע ף פ ץ צ ק > ר ש ת ‎ ‏ Ğ İ ğ ı © > ® > ™ > </font> > Thanks & Regards > Avadhut K > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Paulo > Soares > Sent: Monday, April 16, 2007 7:22 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Change encoding of font > > > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of Sascha Fuchs >> Sent: Monday, April 16, 2007 10:09 AM >> To: Post all your questions about iText here >> Subject: [iText-questions] Change encoding of font >> >> Hello Paolo Soares, >> >> Hello all >> >> >> >> Thank you Paolo for your helping hint for reducing redundant >> font embedding with BaseFont.getDocumentFonts() and replace >> the FontFile2. It works well (font looks same even font is >> not installed on local computer) and reduces a lot of needed >> disk space (factor 10 or more - depending on number of pages). >> >> >> >> But we need to reduce more disk space (but the font embedding >> should be kept). >> >> To reduce the needed disk space of a PDF document we want to >> change the encoding of embedded font from ASCIIHexDecode (not > > You have a PDF producer that doesn't compress fonts? Amazing. > >> very memory efficient encoding - 40% overhead) to another, >> like LZWDecode. >> > > FlateDecode. > >> >> >> I see following two possible ways to solve the problem: >> >> 1: Get the stream of the font 'embedding' (I know how to) -> >> get the decoded data (I guess with >> PdfReader.ASCIIHexDecode(byte-array-of-stream) ) -> encode >> the data to more 'efficient' encoding (I don't know how to) >> -> replace old stream (I guess I know how) >> >> 2: Get the stream of the font 'embedding' (I know how to) -> >> get the decoded data (I guess with >> PdfReader.ASCIIHexDecode(byte-array-of-stream) ) -> create a >> new font with decoded data as font embedding and encoding (I >> don't' know how - I guess with instance of BaseFont) -> >> replace the FontFile2 (now I know how to)... >> >> Can somebody help me? >> > > You have methods in PdfReader to get the stream content and that already > returns uncompressed. Create a PdfStream with that and replace it in the > apropriate place. > > Paulo > > > Aviso Legal: > Esta mensagem i destinada exclusivamente ao destinatario. Pode conter > informagco confidencial ou legalmente protegida. A incorrecta transmissco > desta mensagem nco significa a perca de confidencialidade. Se esta > mensagem > for recebida por engano, por favor envie-a de volta para o remetente e > apague-a do seu sistema de imediato. I proibido a qualquer pessoa que nco > o > destinatario de usar, revelar ou distribuir qualquer parte desta mensagem. > > Disclaimer: > This message is destined exclusively to the intended receiver. It may > contain confidential or legally protected information. The incorrect > transmission of this message does not mean the loss of its > confidentiality. > If this message is received by mistake, please send it back to the sender > and delete it from your system immediately. It is forbidden to any person > who is not the intended receiver to use, distribute or copy any part of > this > message. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
