Hi, Replace all occurences of with its equivalent ASCII code(ie) 
This shd do the trick. Sathish -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, August 24, 2003 8:48 AM To: [EMAIL PROTECTED] Subject: iText-questions digest, Vol 1 #1447 - 6 msgs Send iText-questions mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/itext-questions or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of iText-questions digest..." Today's Topics: 1. Re: Need to produce a PDF with different size pages (Bruno) 2. Re: writer.fitsPage(table) returning false even if there's space enough (Paulo Soares) 3. AW: [iText-questions] writer.fitsPage(table) returning false even if there's space enough (Marc Lustig) 4. HTML to PDF conversion :   Exception. (sathish kumar) 5. AW: [iText-questions] writer.fitsPage(table) returning false even if there's space enough (Marc Lustig) 6. Re: writer.fitsPage(table) returning false even if there's space enough (Paulo Soares) --__--__-- Message: 1 Date: Sat, 23 Aug 2003 08:32:34 +0200 From: Bruno <[EMAIL PROTECTED]> To: Brian <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: [iText-questions] Need to produce a PDF with different size pages Quoting Brian <[EMAIL PROTECTED]>: > Hi, > > I have been using iText for about a week now. All I can say is WOW, > WOW, and WOW this is a GREAT tool. I have hit one stumbling block. One > of the variable PDF's I need to produce has three pages, and they are > all different sizes. I have figured out how to do everything on it > except sizing the pages differently. Can some one point me in the right > direction here? You need to set the pagesize with setPageSize before every newPage(). There's an example in Chapter 1 of the tutorial. br, Bruno --__--__-- Message: 2 From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Marc Lustig" <[EMAIL PROTECTED]>, "iText list" <[EMAIL PROTECTED]> Subject: Re: [iText-questions] writer.fitsPage(table) returning false even if there's space enough Date: Sat, 23 Aug 2003 13:06:07 +0100 I would like to see a runable example with that behavior. Best Regards, Paulo Soares ----- Original Message ----- From: "Marc Lustig" <[EMAIL PROTECTED]> To: "iText list" <[EMAIL PROTECTED]> Sent: Friday, August 22, 2003 17:38 Subject: [iText-questions] writer.fitsPage(table) returning false even if there's space enough > Hi again, > > I tried to solve the problem another way and use writer.fitsPage(table); > to check whether there is enough space or not. > Strangely this doesn't work either: writer.fitsPage(table) returns false > even when the table covers only 2/3 of the available space of the page. > It always allows 32 rows, independently where the table starts, and then > returns false. > How comes that? It it a bug? > > Regards > Marc > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click > here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions > --__--__-- Message: 3 From: "Marc Lustig" <[EMAIL PROTECTED]> To: "'Paulo Soares'" <[EMAIL PROTECTED]>, "'iText list'" <[EMAIL PROTECTED]> Subject: AW: [iText-questions] writer.fitsPage(table) returning false even if there's space enough Date: Sat, 23 Aug 2003 14:37:01 +0200 Runnable? that would need to pass the whole project, which is rather complex, but here is the relevant method.document.TOTAL_WIDTH is verified and correct. The decontructed logic basically is quite simple: =09 do { PdfPTable t =3D new PdfPTable(new float[] {13, 12, 11, 12, 10, 15, 27}); t.setTotalWidth(document.TOTAL_WIDTH); // adding cells.... } while (document.writer.fitsPage(t)); // returns false after 2/3 of the page The other condition in the while loop is not the problem. I checked that. Thanks in advance... private PdfPCell getColumn() { Font headFont =3D BaseAbrechnung.fontEVNHead; Font f =3D BaseAbrechnung.fontEVN; PdfPTable t =3D new PdfPTable(new float[] {13, 12, 11, 12, 10, 15, 27}); t.setTotalWidth(document.TOTAL_WIDTH); t.addCell(getHeadCell(new Phrase("Datum", headFont))); t.addCell(getHeadCell(new Phrase("Uhrzeit", headFont))); t.addCell(getHeadCell(new Phrase("Dauer", headFont))); t.addCell(getHeadCell(new Phrase("ServiceNr", headFont))); t.addCell(getHeadCell(new Phrase("Kunden\nKennung", headFont))); t.addCell(getHeadCell(new Phrase("Gegenstelle", headFont))); PdfPTable tOp =3D new PdfPTable(2); tOp.addCell(getHeadCell(new Phrase("Operator\nDauer", headFont))); tOp.addCell(getHeadCell(new Phrase("Operator\nKennung", headFont))); PdfPCell opCell =3D new PdfPCell(tOp); opCell.setBorder(0); t.addCell(opCell); boolean fits; do { // gehe solange durch bis spalte voll oder evn fertig HashMap call =3D (HashMap) calls.get(currentIndex); // call-spalten t.addCell(getCell(new Phrase(getDatum((String)call.get("ts")),f))); t.addCell(getCell(new Phrase(getUhrzeit((String)call.get("ts")),f))); t.addCell(getCell(new Phrase(Util.getMinutes((Integer)call.get("dauer")),f))); t.addCell(getCell(new Phrase((String) call.get("servicenr"),f))); t.addCell(getCell(new Phrase((String)call.get("kundenid"),f))); t.addCell(getCell(new Phrase(getGegenstelle((String)call.get("gegenstelle")),f))); // op-anteile List opAnteile =3D (List) call.get("opanteile"); Iterator oa =3D opAnteile.iterator(); tOp =3D new PdfPTable(2); while (oa.hasNext()) { HashMap opCall =3D (HashMap) oa.next(); tOp.addCell(getCell(new Phrase(Util.getMinutes((Integer)opCall.get("dauer")),f))); tOp.addCell(getCell(new Phrase((String)opCall.get("operatorid"),f))); } opCell =3D new PdfPCell(tOp); opCell.setBorder(0); t.addCell(opCell); fits =3Ddocument.writer.fitsPage(t); if (!fits) { t.deleteLastRow(); } else currentIndex++; } while(fits && gesamtAnzahl > currentIndex); PdfPCell c =3D new PdfPCell(t); //c.setBorder(0); return c; } > -----Urspr=FCngliche Nachricht----- > Von: Paulo Soares [mailto:[EMAIL PROTECTED] > Gesendet: Samstag, 23. August 2003 14:06 > An: Marc Lustig; iText list > Betreff: Re: [iText-questions] writer.fitsPage(table)=20 > returning false even if there's space enough >=20 >=20 > I would like to see a runable example with that behavior. >=20 > Best Regards, > Paulo Soares >=20 > ----- Original Message ----- > From: "Marc Lustig" <[EMAIL PROTECTED]> > To: "iText list" <[EMAIL PROTECTED]> > Sent: Friday, August 22, 2003 17:38 > Subject: [iText-questions] writer.fitsPage(table) returning=20 > false even if there's space enough >=20 >=20 > > Hi again, > > > > I tried to solve the problem another way and use=20 > > writer.fitsPage(table); to check whether there is enough=20 > space or not.=20 > > Strangely this doesn't work either: writer.fitsPage(table) returns=20 > > false even when the table covers only 2/3 of the available space of=20 > > the page. It always allows 32 rows, independently where the table=20 > > starts, and then returns false. How comes that? It it a bug? > > > > Regards > > Marc > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: VM Ware > > With VMware you can run multiple operating systems on a single=20 > > machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual=20 > > machines at the same time. Free trial click=20 > > here:http://www.vmware.com/wl/offer/358/0 > > _______________________________________________ > > iText-questions mailing list [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > >=20 --__--__-- Message: 4 Date: Sat, 23 Aug 2003 07:16:37 -0700 (PDT) From: sathish kumar <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [iText-questions] HTML to PDF conversion :   Exception. Hi All Im in the process of converting the HTML to PDF. In the HTML if a TD is having , then the following runtime exception occurs. ExceptionConverter: org.xml.sax.SAXParseException: The entity "nbsp" was referenced, but not declared. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromEntity(DefaultEntityHandler.java:596) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1264) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at javax.xml.parsers.SAXParser.parse(SAXParser.java:374) at javax.xml.parsers.SAXParser.parse(SAXParser.java:264) at com.lowagie.text.html.HtmlParser.go(HtmlParser.java:121) at com.lowagie.text.html.HtmlParser.parse(HtmlParser.java:144) at Html2PdfTest.main(Html2PdfTest.java:22) Your help in this is well appreciated. Thanks Sathish N ------------------------------------------------------- This SF.net email is sponsored by Dice.com. Did you know that Dice has over 25,000 tech jobs available today? From careers in IT to Engineering to Tech Sales, Dice has tech jobs from the best hiring companies. http://www.dice.com/index.epl?rel_code=104 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --__--__-- Message: 5 From: "Marc Lustig" <[EMAIL PROTECTED]> To: "'Paulo Soares'" <[EMAIL PROTECTED]>, "'iText list'" <[EMAIL PROTECTED]> Subject: AW: [iText-questions] writer.fitsPage(table) returning false even if there's space enough Date: Sat, 23 Aug 2003 15:04:46 +0200 Stop. I solved this by replacing t.setWidthPercentage(100); with t.setTotalWidth(document.TOTAL_WIDTH); where t is the table which covers the PdfPCell returned by my method. The strange thing is that now the width of the table is only 2/3 of real TOTAL_WIDTH! I am using TOTAL_WIDTH to set the width of numerous other tables and lines etc., and everywhere the width is okay, except in this case. Perhaps you have an idea... I will be digging into this further... Regards Marc > -----Urspr=FCngliche Nachricht----- > Von: Paulo Soares [mailto:[EMAIL PROTECTED] > Gesendet: Samstag, 23. August 2003 14:06 > An: Marc Lustig; iText list > Betreff: Re: [iText-questions] writer.fitsPage(table)=20 > returning false even if there's space enough >=20 >=20 > I would like to see a runable example with that behavior. >=20 > Best Regards, > Paulo Soares >=20 > ----- Original Message ----- > From: "Marc Lustig" <[EMAIL PROTECTED]> > To: "iText list" <[EMAIL PROTECTED]> > Sent: Friday, August 22, 2003 17:38 > Subject: [iText-questions] writer.fitsPage(table) returning=20 > false even if there's space enough >=20 >=20 > > Hi again, > > > > I tried to solve the problem another way and use=20 > > writer.fitsPage(table); to check whether there is enough=20 > space or not.=20 > > Strangely this doesn't work either: writer.fitsPage(table) returns=20 > > false even when the table covers only 2/3 of the available space of=20 > > the page. It always allows 32 rows, independently where the table=20 > > starts, and then returns false. How comes that? It it a bug? > > > > Regards > > Marc > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: VM Ware > > With VMware you can run multiple operating systems on a single=20 > > machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual=20 > > machines at the same time. Free trial click=20 > > here:http://www.vmware.com/wl/offer/358/0 > > _______________________________________________ > > iText-questions mailing list [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > >=20 --__--__-- Message: 6 From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Marc Lustig" <[EMAIL PROTECTED]>, "'iText list'" <[EMAIL PROTECTED]> Subject: Re: [iText-questions] writer.fitsPage(table) returning false even if there's space enough Date: Sat, 23 Aug 2003 17:23:06 +0100 I don't know how can you mix setTotalWidth() and setWidthPercentage() and obtain different results. setTotalWidth() only matters with writeSelectedRows() and setWidthPercentage() only matters with Document.add(table). When I ask for a runnable example I'm not offering to debug your program. A smaller program built for demonstration helps to understand better the problem and usually the user finds the solution himself. Best Regards, Paulo Soares ----- Original Message ----- From: "Marc Lustig" <[EMAIL PROTECTED]> To: "'Paulo Soares'" <[EMAIL PROTECTED]>; "'iText list'" <[EMAIL PROTECTED]> Sent: Saturday, August 23, 2003 14:04 Subject: AW: [iText-questions] writer.fitsPage(table) returning false even if there's space enough Stop. I solved this by replacing t.setWidthPercentage(100); with t.setTotalWidth(document.TOTAL_WIDTH); where t is the table which covers the PdfPCell returned by my method. The strange thing is that now the width of the table is only 2/3 of real TOTAL_WIDTH! I am using TOTAL_WIDTH to set the width of numerous other tables and lines etc., and everywhere the width is okay, except in this case. Perhaps you have an idea... I will be digging into this further... Regards Marc > -----Ursprüngliche Nachricht----- > Von: Paulo Soares [mailto:[EMAIL PROTECTED] > Gesendet: Samstag, 23. August 2003 14:06 > An: Marc Lustig; iText list > Betreff: Re: [iText-questions] writer.fitsPage(table) > returning false even if there's space enough > > > I would like to see a runable example with that behavior. > > Best Regards, > Paulo Soares > > ----- Original Message ----- > From: "Marc Lustig" <[EMAIL PROTECTED]> > To: "iText list" <[EMAIL PROTECTED]> > Sent: Friday, August 22, 2003 17:38 > Subject: [iText-questions] writer.fitsPage(table) returning > false even if there's space enough > > > > Hi again, > > > > I tried to solve the problem another way and use > > writer.fitsPage(table); to check whether there is enough > space or not. > > Strangely this doesn't work either: writer.fitsPage(table) returns > > false even when the table covers only 2/3 of the available space of > > the page. It always allows 32 rows, independently where the table > > starts, and then returns false. How comes that? It it a bug? > > > > Regards > > Marc > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: VM Ware > > With VMware you can run multiple operating systems on a single > > machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual > > machines at the same time. Free trial click > > here:http://www.vmware.com/wl/offer/358/0 > > _______________________________________________ > > 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 End of iText-questions Digest ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions