Success!!!!!!
Thanks!
 

>>> "Paulo Soares" <[EMAIL PROTECTED]> 11/01/2006 08:56 >>>
I understand your problem and I gave you the solution. Here's an hardcoded solution:

SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
InputSource ips = new InputSource(new InputStreamReader(new FileInputStream("c:\\20061_010043.HTML"), "iso-8859-1"));
parser.parse(ips, new SAXmyHtmlHandler(document));

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Luciano Rodrigues
> Sent: Wednesday, January 11, 2006 10:26 AM
> To: [EMAIL PROTECTED]; Paulo Soares;
> [email protected]
> Subject: Re: [iText-questions] HTML to PDF
>
> I´m not kinding!
> 
> You don´t  understand my problem!
> 
> I Have a HTML file with encondig. I need to generate PDF
> file. But I haven´t XML file.
> 
> Because this, I send my java source code and my html file to
> you. This files are examples for my problem.
> 
> I would like help.
>
> >>> "Paulo Soares" <[EMAIL PROTECTED]> 10/01/2006 17:57 >>>
>
> If you have xml there's encoding information. If you have
> html you may or
> may not have encoding information and if you have is a lot
> down in the file
> as a "<meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">". You'll have to scan the file looking
> for this and
> reopen the file in a Reader with the correct encoding.
>
> ----- Original Message -----
> From: "Luciano Rodrigues" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[email protected]>
> Sent: Tuesday, January 10, 2006 7:21 PM
> Subject: RE: [iText-questions] HTML to PDF
>
>
> Thanks!
>
> I see there! But I dont found one example for my case.
>
> The enconding 'ISO-8859-1' is my problem, because result
> error 'Invalid byte
> 2 of 3-byte UTF-8 sequence.'
>
> My text is in Portuguese, I have text 'ãçíóê' for example,
> because this I
> need  enconding ='ISO-8859-1'
>
> >>> "Bill Ensley" <[EMAIL PROTECTED]> 10/01/2006 17:02 >>>
>
> The iText tutorial is a great place to start.
>
> http://itextdocs.lowagie.com/tutorial/
>
> -Bill Ensley
> Bear Printing
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Luciano
> Rodrigues
> Sent: Tuesday, January 10, 2006 10:27 AM
> To: [email protected]
> Subject: [iText-questions] HTML to PDF
>
>
>
> I need to convert a HTML file to PDF file.
>
> How do I do this?  Why my HTML file use encoding="ISO-8859-1".
>
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep
> through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web. 
> DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>

Reply via email to