Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
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>&gt; -- --Original Message-- --<BR>&gt; From: <A
 href="mailto: itext-questions-bounces@(protected)">itext-questions
-bounces@(protected)</A>
 <BR>&gt; [mailto:<A
 href="mailto: itext-questions-bounces@(protected)">itext-questions
-bounces@(protected)</A>]
 On <BR>&gt; Behalf Of Scott<BR>&gt; Sent: Tuesday, October 09, 2007 6:01
 AM<BR>&gt; To: itext-questions<BR>&gt; Subject: [iText-questions] How to get
 the Chinese charactors <BR>&gt; when usingHTMLWorker?<BR>&gt; <BR>&gt;
 Hello,Paulo<BR>&gt; <BR>&gt; When I was trying to get a pdf file from an html
 page I have <BR>&gt; a problem which is as follow:<BR>&gt; <BR>&gt; <BR>&gt;
 BaseFont bfChinese = BaseFont.createFont("STSongStd-Light", <BR>&gt; <BR>&gt;
 "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);<BR>&gt; <BR>&gt; Font fontChinese =
 new Font(bfChinese, 12, <BR>&gt; Font.NORMAL, Color.RED);<BR>&gt; <BR>&gt;
 <BR>&gt; <BR>&gt; Paragraph para = new Paragraph("",fontChinese);<BR>&gt;
 <BR>&gt; <BR>&gt; <BR>&gt; StringReader sr = new
 StringReader(sb.toString());<BR>&gt; <BR>&gt; ArrayList p =
 HTMLWorker.parseToList(sr, null);<BR>&gt; <BR>&gt; for (int k = 0; k &lt;
 p.size(); ++k)<BR>&gt; <BR>&gt; para.add((Element) p.get(k));<BR>&gt; <BR>&gt
;
 <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Although I had set the font to be
 fontChinese,there is no <BR>&gt; Chinese charactor in the generated pdf
 file.<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Why?Does the HTMLWorker support
 Chinese fonts?<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Thank you!<BR>&gt; <BR>&gt;
 <BR>&gt; <BR>&gt; Scott<BR>&gt; <BR>&gt; 2007-10-9<BR>&gt; <BR>&gt;
 <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 &gt;&gt; <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/

©2008 junlu.com - Jax Systems, LLC, U.S.A.