  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Subject: Re: How to get the Chinese charactors whenusingHTMLWorker? | Subject: Re: How to get the Chinese charactors whenusingHTMLWorker? 2007-10-10 - By Scott WoodEasy
Back Thank you,Paulo. It succeeded. -- -- Original Message -- -- From: Paulo Soares To: Post all your questions about iText here Sent: 2007-10-10, 19:14:47 Subject: Re: [iText-questions] How to get the Chinese charactors whenusingHTMLWorker?
See http://thread.gmane.org/gmane.comp.java.lib.itext.general/33444/.
Paulo
> -- --Original Message-- -- > From: itext-questions-bounces@(protected) > [mailto:itext-questions-bounces@(protected)] On > Behalf Of Scott > Sent: Tuesday, October 09, 2007 6:01 AM > To: itext-questions > Subject: [iText-questions] How to get the Chinese charactors > when usingHTMLWorker? > > Hello,Paulo > > When I was trying to get a pdf file from an html page I have > a problem which is as follow: > > > BaseFont bfChinese = BaseFont.createFont("STSongStd-Light", > > "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); > > Font fontChinese = new Font(bfChinese, 12, > Font.NORMAL, Color.RED); > > > > Paragraph para = new Paragraph("",fontChinese); > > > > StringReader sr = new StringReader(sb.toString()); > > ArrayList p = HTMLWorker.parseToList(sr, null); > > for (int k = 0; k < p.size(); ++k) > > para.add((Element) p.get(k)); > > > > > > Although I had set the font to be fontChinese,there is no > Chinese charactor in the generated pdf file. > > > > Why?Does the HTMLWorker support Chinese fonts? > > > > Thank you! > > > > Scott > > 2007-10-9 > >
Aviso Legal:
Esta mensagem ?destinada exclusivamente ao destinat?io. Pode conter informa?yo confidencial ou legalmente protegida. A incorrecta transmiss?q desta mensagem n ?q 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. ?proibido a qualquer pessoa que n?q o destinat?io 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.
__ ____ ____ ____ ___ next part __ ____ ____ ____ ____
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
__ ____ ____ ____ ___ next part __ ____ ____ ____ ____
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
<HTML><HEAD><TITLE>Mail</TITLE> <META content="KsDHTMLEDLib.ocx, FreeWare HTML Editor 1.164.2, ?Kurt Senfer" name=GENERATOR> <META http-equiv=Content-Type content="text/html; charset=GB2312"></HEAD> <BODY style="FONT-SIZE: 9pt; FONT-FAMILY: ??" leftMargin=5 topMargin=5 #ffffff> <DIV><!--AID_SENDTO_BEGIN-->Thank you,Paulo.</DIV> <DIV>It succeeded.</DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal">-- -- Original Message -- -- </DIV> <DIV style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; BACKGROUND: #e4e4e4; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal; font-color: black"><B>From: </B><A href="mailto:psoares@(protected)">Paulo Soares</A> </DIV> <DIV style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal"><B>To: </B><A href="mailto:itext-questions@(protected)">Post all your questions about iText here</A> </DIV> <DIV style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal"><B>Sent: </B>2007-10-10, 19:14:47</DIV> <DIV style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal"><B>Subject: </B>Re: [iText-questions] How to get the Chinese charactors whenusingHTMLWorker?</DIV> <DIV><BR></DIV> <DIV></DIV> <DIV></DIV> <DIV> <DIV>See <A href="http://thread.gmane.org/gmane.comp.java.lib.itext.general/33444/.">http ://thread.gmane.org/gmane.comp.java.lib.itext.general/33444/.</A><BR><BR>Paulo <BR><BR>> -- --Original Message-- --<BR>> From: <A href="mailto: itext-questions-bounces@(protected)">itext-questions -bounces@(protected)</A> <BR>> [mailto:<A href="mailto: itext-questions-bounces@(protected)">itext-questions -bounces@(protected)</A>] On <BR>> Behalf Of Scott<BR>> Sent: Tuesday, October 09, 2007 6:01 AM<BR>> To: itext-questions<BR>> Subject: [iText-questions] How to get the Chinese charactors <BR>> when usingHTMLWorker?<BR>> <BR>> Hello,Paulo<BR>> <BR>> When I was trying to get a pdf file from an html page I have <BR>> a problem which is as follow:<BR>> <BR>> <BR>> BaseFont bfChinese = BaseFont.createFont("STSongStd-Light", <BR>> <BR>> "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);<BR>> <BR>> Font fontChinese = new Font(bfChinese, 12, <BR>> Font.NORMAL, Color.RED);<BR>> <BR>> <BR>> <BR>> Paragraph para = new Paragraph("",fontChinese);<BR>> <BR>> <BR>> <BR>> StringReader sr = new StringReader(sb.toString());<BR>> <BR>> ArrayList p = HTMLWorker.parseToList(sr, null);<BR>> <BR>> for (int k = 0; k < p.size(); ++k)<BR>> <BR>> para.add((Element) p.get(k));<BR>> <BR>> ; <BR>> <BR>> <BR>> <BR>> Although I had set the font to be fontChinese,there is no <BR>> Chinese charactor in the generated pdf file.<BR>> <BR>> <BR>> <BR>> Why?Does the HTMLWorker support Chinese fonts?<BR>> <BR>> <BR>> <BR>> Thank you!<BR>> <BR>> <BR>> <BR>> Scott<BR>> <BR>> 2007-10-9<BR>> <BR>> <BR><BR><BR>Aviso Legal:<BR><BR>Esta mensagem ?destinada exclusivamente ao destinat?io. Pode conter informa?yo confidencial ou legalmente protegida. A incorrecta transmiss?q desta mensagem n?q 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. ?proibido a qualquer pessoa que n?q o destinat?io de usar, revelar ou distribuir qualquer parte desta mensagem. <BR><BR><BR><BR>Disclaimer:<BR><BR>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.<BR><BR><BR><BR><BR><BR>__ ____ ____ ____ ___ next part __ ____ ____ ____ ____<BR><BR>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- ---- ---- ---- ---- ---<BR>This SF.net email is sponsored by: Splunk Inc.<BR>Still grepping through log files to find problems? Stop.<BR>Now Search log events and configuration files using AJAX and a browser.<BR>Download your FREE copy of Splunk now >> <A href="http://get.splunk.com/">http://get.splunk.com/</A><BR><BR>__ ____ _____ __ _____ next part __ ____ ____ ____ ____<BR><BR>__ ____ ____ ____ ____ ____ ____ ____ ____ ____ <BR>iText-questions mailing list<BR><A href="mailto: iText-questions@(protected)">iText-questions@(protected) .sourceforge.net</A><BR><A href="https://lists.sourceforge.net/lists/listinfo/itext-questions">https:/ /lists.sourceforge.net/lists/listinfo/itext-questions</A><BR>Buy the iText book: <A href="http://itext.ugent.be/itext-in-action/">http://itext.ugent.be/itext-in -action/</A><BR><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|
 |