RE: [iText-questions] Parsing HTML to PDF
Mensagemhttp://www.easysw.com/htmldoc/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Glauco Cesar de Castro Sent: Tuesday, June 25, 2002 9:26 AM To: IText Subject: RES: [iText-questions] Parsing HTML to PDF Where can i get it? -Mensagem original- De: Shankar Narayanan.K,ASDC Chennai [mailto:[EMAIL PROTECTED]] Enviada em: terça-feira, 25 de junho de 2002 09:50 Para: [EMAIL PROTECTED] Assunto: RE: [iText-questions] Parsing HTML to PDF Use HTMLDoc..it's free and very good -Original Message- From: Glauco Cesar de Castro [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 6:08 PM To: [EMAIL PROTECTED] Subject:[iText-questions] Parsing HTML to PDF Has anyone succeed in parsing an HTML file to PDF File? I have tried to use Tiny HTML (JTidy) but it doesnt work. It produces the right (X)Html but the IText returns me an error: ExceptionConverter: org.xml.sax.SAXException: String index out of range: -30 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:878) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900) at com.lowagie.text.html.HtmlParser.go(Unknown Source) at com.lowagie.text.html.HtmlParser.parse(Unknown Source) at Start.main(Start.java:90) String index out of range: -30 This error occurs in the following HTML code and seens to be on the second line, because if I delete this line (!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd), JBuilder will return another error: ExceptionConverter: org.xml.sax.SAXParseException: The entity Ccedil was referenced, but not declared. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:969) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromEntity(Defaul tEntityHandler.java:596) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM LDocumentScanner.java:1315) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:380) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:861) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900) at com.lowagie.text.html.HtmlParser.go(Unknown Source) at com.lowagie.text.html.HtmlParser.parse(Unknown Source) at Start.main(Start.java:90) The entity Ccedil was referenced, but not declared. And if I replace all entities, another error occurs: ExceptionConverter: org.xml.sax.SAXParseException: The element type p must be terminated by the matching end-tag /p. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:969) at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume ntScanner.java:634) at org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanne r.java:683) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM LDocumentScanner.java:1187) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:380) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:861) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900) at com.lowagie.text.html.HtmlParser.go(Unknown Source) at com.lowagie.text.html.HtmlParser.parse(Unknown Source) at Start.main(Start.java:90) The element type p must be terminated by the matching end-tag /p. Thanks a lot for any help! Glauco The Html code I am trying to parse: ?xml version=1.0? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; head title/title /head body p style=text-align: centerstrongimg border=0 height=61 src=http://localhost:8080/protocolo/docs_upload/modelos/brasao_alagoas.jpg; width=49 //strong/p p style=text-align: centerstrongSECRETARIA DA FAZENDA DO ESTADO DE ALAGOASbr / PROJETO DE MODERNIZACcedil;Atilde;O FAZENDAacute;RIA - PROMOFAZ.br / UNIDADE DE CONTROLE ESTADUAL - UCEbr / COMPONENTE ORGANIZACcedil;Atilde;O E GESTAtilde;O/strong/p p style=text-align: center /p p style=text-align: centerstrong OFIacute;CIO teste2 35/2002 Maceioacute;, 25 de Junho de 2002/strong/p p style=text-align: center /p p style=text-align: leftSenhor
RE: [iText-questions] A strange box in a PDF doc
Title: A strange box in a PDF doc Shankar, draw a solid black rectangle with the same dimensions as your text box. It needs to be behind the text-box and shifted by 5 (or so) pixels to the right and down. Regards, Joachim -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Shankar Narayanan.K,ASDC ChennaiSent: Friday, May 17, 2002 11:39 AMTo: [EMAIL PROTECTED]Cc: Bruno LowagieSubject: [iText-questions] A strange box in a PDF doc Hi List, I need to put a box of the kind that is appearing in the attached image,inside a PDF doc.The thing that concerns me is the dark shade that appears behind the rectangular box.How to make that shade appear behind the rectangle with iText? Can somebody please let me know. Regards, Shankar Highlighted_Background.gif Disclaimer: This document is intended for transmission to the named recipient only. If you are not that person, you should note that legal rights reside in this document and you are not authorized to access, read, disclose, copy, use or otherwise deal with it and any such actions are prohibited and may be unlawful. The views expressed in this document are not necessarily those of HCL Technologies Ltd. Notice is hereby given that no representation, contract or other binding obligation shall be created by this e-mail, which must be interpreted accordingly. Any representations, contractual rights or obligations shall be separately communicated in writing and signed in the original by a duly authorized officer of the relevant company. If you received this email in error, please immediately notify: [EMAIL PROTECTED]
[iText-questions] SVGs in PDf Files
Hi all, what is the easiest (and or best) way to add an existing SVG graphic to a PDF document created with iText? If the answer is complex, just a pointer in the right direction will do. Thanks in advance, Joachim Joachim F. Petzold [EMAIL PROTECTED] phone: 416.925.8440 fax: 416.925.0993 ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] linebreaks in tablecells
PdfPCell.setNoWrap(boolean) works for PDF generation. If set to true it suppresses wrapping, even if as a result the cell content collides with the adjacent cell or flows beyond the table's left margin. I am not sure about Cell.setNoWrap() since I mostly work with PdfPTables. Regards, Joachim Petzold -Original Message- From: Bruno Lowagie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 7:21 AM To: Joachim F. Petzold Cc: Gerd Mueller; iText Mailing List Subject: RE: [iText-questions] linebreaks in tablecells Quoting Joachim F. Petzold [EMAIL PROTECTED]: Cell.setNoWrap(true) This method is only implemented for HTML generation, it doesn't work for PDF (or does it???) ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] Bullent points
Ron, Chapter 3 of the Tutorial should point you in the right direction. http://www.lowagie.com/iText/tutorial/ch03.html Regards, Joachim Petzold -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ronald KarenTooley Sent: Friday, March 22, 2002 8:21 AM To: [EMAIL PROTECTED] Subject: [iText-questions] Bullent points Hi, how do you create a bullet point? MS Word lets you create a bullet point to easily show your points in a list. Can iText do this or is there something similar? Thanks Ron ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] Display Bug: scaled-down copy of page is overlaying the original page
Just found the solution... it's apparently caused by a bug in Acrobat 5.0x (prior to .05). Upgrading to 5.05 solved the issue. Joachim Petzold -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joachim F. Petzold Sent: Tuesday, March 19, 2002 1:30 PM To: iText Mailing List Subject: [iText-questions] Display Bug: scaled-down copy of page is overlaying the original page Importance: High I am using iText to create PDF reports on the fly. The pdf files are written to disk, and then the browser instance is redirected to the URL of the temporary pdf file. When the pdf file appears in the browser window, the display is all scrambled: The first page is overlaid with one or two scaled-down (and sometimes mirrored) images of the page. The pdf file displays when opening it directly, indicating that the file itself is not corrupt. However, I didn't experience this issue until adding a PdfTemplate for page headers and page numbering to the report. Also, the behavior is the same on Netscape and IE (using Acrobat 5.0) Any ideas or input are appreciated. Thanks, Joachim Petzold Joachim F. Petzold [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions