[iText-questions] Setting Unicode text in Signature appearance
Hi All, I am trying to set Unicode text e.g. Chinese in the signature appearance of a signature. When I do that I get boxes in the resultant signed pdf. Looking at the examples and tutorials it seems that the only way to show Unicode text is to set text as String text1 = This text has \u0634\u0627\u062f\u062c\u0645\u0647\u0648\u0631 123,456 \u0645\u0646; This creates a problem where one has Unicode text entered/generated at run time e.g. Signing reason is entered in Chinese and thus making a \uCODE format is not possible (I am not sure how to generate the \uCODE at run time but I would like to avoid doing that). Also I believe I can use both java.awt.Font font = new java.awt.Font(arial, 0, 18) OR BaseFont bf = BaseFont.createFont(c:\\winnt\\fonts\\arial.ttf, BaseFont.IDENTITY_H, true); Is there a way to set the actual Chinese text directly in the signature appearance. Regards, Wahaj - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Setting Unicode text in Signature appearance
Hi All, I am trying to set Unicode text e.g. Chinese in the signature appearance of a signature. When I do that I get boxes in the resultant signed pdf. Looking at the examples and tutorials it seems that the only way to show Unicode text is to set text as String text1 = This text has \u0634\u0627\u062f\u062c\u0645\u0647\u0648\u0631 123,456 \u0645\u0646; This creates a problem where one has Unicode text entered/generated at run time e.g. Signing reason is entered in Chinese and thus making a \uCODE format is not possible (I am not sure how to generate the \uCODE at run time but I would like to avoid doing that). Also I believe I can use both java.awt.Font font = new java.awt.Font(arial, 0, 18) OR BaseFont bf = BaseFont.createFont(c:\\winnt\\fonts\\arial.ttf, BaseFont.IDENTITY_H, true); Is there a way to set the actual Chinese text directly in the signature appearance. Regards, Wahaj I am using the free version of SPAMfighter for private users. It has removed 1015 spam emails to date. Paying users do not have this message in their emails. Get the free SPAMfighter here: http://www.spamfighter.com/len - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Does Itext have a java pdf viewer
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of franklin ike Sent: Thursday, October 12, 2006 9:44 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Does Itext have a java pdf viewer Hello Everyone, I recently got very interested in itext as a pdf generation solution for my company after reading a reference to it from a Spring Framework book I was reading at the time (Spring in Action). After further investigation I was very impressed with the work that your team has done in providing online examples and the whole project as a whole. As far as i can see, it is more than capable of catering for most of our requirement apart from one issue which has not yet been made clear. DOES ITEXT HAVE A JAVA PDF VIEWER? NO. If not is there any plans in the future for providing one. No. Paulo Thanks and keep up the good work Franklini Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não 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ão o destinatário 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. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Example of Row-span in PdfPTable
Nested tables will work but you'll have to think in a different way. With rowspan you merge two cells, with nested tables the cell is split. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vishal Lavti Sent: Wednesday, October 11, 2006 11:51 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Example of Row-span in PdfPTable Hi All, I am interested in creating following structure using PdfPTable. Can anyone tell me how can I Implement it in PdfPTable? Nested Table does not seems to work as they reside within the cell. My requirement is to show splitted rows as below: | | | | | |cell1|cell2 | | Row-span |---|| | |cell3|cell4 | | | | | | |row-3,cell5 |row-3,cell6 |cell7 | | | | | |---|---|| |row-3,cell8 |row-3,cell9 |cell10 | | | | | Has anyone did this? Please post the code if someone has done it. Thanks in advance Internet address: [EMAIL PROTECTED] -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não 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ão o destinatário 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. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Setting Unicode text in Signature appearance
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wahaj Khan Sent: Thursday, October 12, 2006 7:41 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Setting Unicode text in Signature appearance Hi All, I am trying to set Unicode text e.g. Chinese in the signature appearance of a signature. When I do that I get boxes in the resultant signed pdf. Looking at the examples and tutorials it seems that the only way to show Unicode text is to set text as String text1 = This text has \u0634\u0627\u062f\u062c\u0645\u0647\u0648\u0631 123,456 \u0645\u0646; I don't know any other way to do it. At some stage you'll have to have the Chinese text in a String. This creates a problem where one has Unicode text entered/generated at run time e.g. Signing reason is entered in Chinese and thus making a \uCODE format is not possible (I am not sure how to generate the \uCODE at run time but I would like to avoid doing that). Slow down and think. \uCODE is just for literals that are going to be compiled. If you have text in a database or text file it will be in some encoding like UTF-8 or UTF-16 or GB18030 or something else. There are String constructors that will convert a byte array to an Unicode String. Also I believe I can use both java.awt.Font font = new java.awt.Font(arial, 0, 18) OR BaseFont bf = BaseFont.createFont(c:\\winnt\\fonts\\arial.ttf, BaseFont.IDENTITY_H, true); You must use a BaseFont that has the characters you need. For example Arial will do for Russian, Hebrew and Arabic but won't do for Chinese. Is there a way to set the actual Chinese text directly in the signature appearance. Yes. Set the font and the text in PdfSignatureAppearance. Paulo Regards, Wahaj Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não 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ão o destinatário 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. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Does Itext have a java pdf viewer
Look to PDFBox (BSD licence) or to JPedal or ICEpdf (commercial) for that purpose, but be prepared that none of those has the same rendering quality as Acrobat, although JPedal and ICEpdf come reasonably close. Alternately, use the PDF to TIFF utility from the Xpdf project and display the generated images. Those are in my experience very close to the Acrobat output in terms of rendering fidelity. Best Regards, Damien Drix franklin ike a écrit : Hello Everyone, I recently got very interested in itext as a pdf generation solution for my company after reading a reference to it from a Spring Framework book I was reading at the time (Spring in Action). After further investigation I was very impressed with the work that your team has done in providing online examples and the whole project as a whole. As far as i can see, it is more than capable of catering for most of our requirement apart from one issue which has not yet been made clear. DOES ITEXT HAVE A JAVA PDF VIEWER? If not is there any plans in the future for providing one. Thanks and keep up the good work Franklini - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Is there anyway to rotate text in Cell of Table
Hi All, I wanted to know whether I can rotate text in a Cell of Table? I do not want to use PdfPTable as it has a constraint of row-span. Thanks Vishal Lavti - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Is there anyway to rotate text in Cell of Table
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vishal Lavti Sent: Thursday, October 12, 2006 11:38 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Is there anyway to rotate text in Cell of Table Hi All, I wanted to know whether I can rotate text in a Cell of Table? Put the text in a template, make it an Image, rotate it, add it to a Chunk, add the Chunk to the Cell. Paulo I do not want to use PdfPTable as it has a constraint of row-span. Thanks Vishal Lavti Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não 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ão o destinatário 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. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Tables in PDF
Hi All, I have been struggling to write a code to use row-span in PdfPTable. 1. Nested Tables splits the cell and this is not the desired. Has anyone achieved doing this in any other way? 2. Is there any way to show two tables in one horizontal in PDF document. I guess this will help me in solving the rowspan. I can add two tables separately one with a column and other with 2 rows. Both the table shall have same height. I want to achieve following functionality. - | | | | | |cell1|cell2 | | Detail1 |---|---| | |cell3|cell4 | | | | | | | |row-3,cell6 |cell7 | | | | | |Detail 2 |---|---| | |row-3,cell9 |cell10 | | | | | - My question was, Is there a way to add two tables in horizontal way. In above example, One table will be with 1 row and 1 column containing text Detail1 and second table will be with 2 rows and 2 columns and content of the cell will be cell1,cell2,cell3 and cell4 So If I display two tables like this with no spacing between both the tables then I can achieve row-span in PdfPTable. 3. If anyone has done this, please share the code/example to do this. Thanks in advance. Vishal Lavti Internet address: [EMAIL PROTECTED] - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Does Itext have a java pdf viewer
iText is an engine, not a viewer. There are viewer components from other companies, such as JPedal, Big Faceless, Ice and also some GLP versions. I can't speak for all of them, but in our company, we tried out the one from Ice Soft, JPedal, two GPL'ed versions I forgot again, the longretired Acrobat version (they had a Java version too), but, for our cases, only JPedal was far advanced enough and could deliver our needs. They have a GPL version as well, btw. I don't want to play cheerleader for them, but we are very pleased with their product. However, google for java pdf viewer and you should find some of them. Rog franklin ike wrote: Hello Everyone, I recently got very interested in itext as a pdf generation solution for my company after reading a reference to it from a Spring Framework book I was reading at the time (Spring in Action). After further investigation I was very impressed with the work that your team has done in providing online examples and the whole project as a whole. As far as i can see, it is more than capable of catering for most of our requirement apart from one issue which has not yet been made clear. DOES ITEXT HAVE A JAVA PDF VIEWER? If not is there any plans in the future for providing one. Thanks and keep up the good work Franklini - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Is there anyway to rotate text in Cell of Table
http://itextdocs.lowagie.com/tutorial/objects/tables/pdfptable/index.html#verticaltext Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of vislavti Sent: Thursday, October 12, 2006 4:33 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Is there anyway to rotate text in Cell of Table Do you have sample code which I can refer to do the same? Thanks in advance Paulo Soares wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vishal Lavti Sent: Thursday, October 12, 2006 11:38 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Is there anyway to rotate text in Cell of Table Hi All, I wanted to know whether I can rotate text in a Cell of Table? Put the text in a template, make it an Image, rotate it, add it to a Chunk, add the Chunk to the Cell. Paulo I do not want to use PdfPTable as it has a constraint of row-span. Thanks Vishal Lavti Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não 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ão o destinatário 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. -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions -- View this message in context: http://www.nabble.com/Is-there-anyway-to-rotate-text-in-Cell-o f-Table-tf2429515.html#a6778603 Sent from the iText - General mailing list archive at Nabble.com. -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não 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ão o destinatário 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. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] HTML to PDF
Paulo Soares psoares at consiste.pt writes: Stylesheets are not supported or to be more precise they are partly supported in class StyleSheet but not parsed. It's in my to-do list but as I don't have an immediate use for it it's not at the top. Paulo Then is it possible for me to create a StyleSheet instance and use HTMLWorker.parseToList(html, stylesheet) or set the stylesheet in my worker and have those styles applied to my html? If so, where is a good reference on how to create a stylesheet instance? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] [EMAIL PROTECTED] - Email has different SMTP TO: and MIME TO: fields in the email addresses - Re: exception in PdfContentByte.localDestination
Paulo: Thanks for your suggestions: I tried to Use PdfStamper instead of PdfCopy. No exception produced. But the output file does not contain any named destination. What am I missing here? PdfStamper stamper = new PdfStamper( reader, new FileOutputStream(test.pdf)); PdfContentByte under; PdfDestination de; for (int i = 1; i pages; i++) { under = stamper.getUnderContent(i); de = new PdfDestination(PdfDestination.FITR, 0, 0, 0, 0); under.localDestination(test, de); } stamper.close(); Thanks a lot! Jing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Wednesday, October 11, 2006 11:27 AM To: Post all your questions about iText here Subject: [EMAIL PROTECTED] - Email has different SMTP TO: and MIME TO: fields in the email addresses - Re: [iText-questions] exception in PdfContentByte.localDestination PdfCopy doesn't allow to add any content, only full pages. Use PdfStamper. Paulo - Original Message - From: Jingrong Chen [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Wednesday, October 11, 2006 7:25 PM Subject: [iText-questions] exception in PdfContentByte.localDestination Hi, I am trying to read in a pdf file, add some named destination then save them to a new file. Here's my code: int pages = reader.getNumberOfPages(); Document document = new Document( reader.getPageSizeWithRotation( 1 ) ); PdfCopy writer = new PdfCopy( document, new FileOutputStream(test.pdf) ); document.open(); String name = test_destination; for (int i = 1; i = pages; i++) writer.addPage(writer.getImportedPage(reader, i); PdfDestination destination = new PdfDestination(PdfDestination.FITR, 0, 0, 0, 0); PdfContentByte cb = writer.getDirectContent(); cb.localDestination(name, destination); PdfAction.gotoLocalPage(i, destination, writer); } document.close(); I keep getting the exception at the same place for each page: java.lang.IllegalArgumentException: Invalid page number 3 at com.lowagie.text.pdf.PdfCopy.getPageReference(PdfCopy.java:359) at com.lowagie.text.pdf.PdfWriter.getCurrentPage(PdfWriter.java:2164) at com.lowagie.text.pdf.PdfDocument.localDestination(PdfDocument.java:2989) at com.lowagie.text.pdf.PdfContentByte.localDestination(PdfContentByte.java :2489) What am I doing wrong here? Appreciate you help! - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] HTML to PDF
- Original Message - From: Don Kostello [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Thursday, October 12, 2006 6:51 PM Subject: Re: [iText-questions] HTML to PDF Paulo Soares psoares at consiste.pt writes: Stylesheets are not supported or to be more precise they are partly supported in class StyleSheet but not parsed. It's in my to-do list but as I don't have an immediate use for it it's not at the top. Paulo Then is it possible for me to create a StyleSheet instance and use HTMLWorker.parseToList(html, stylesheet) or set the stylesheet in my worker and have those styles applied to my html? If so, where is a good reference on how to create a stylesheet instance? There are examples in the mailing list. Paulo - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] exception in PdfContentByte.localDestination
You can't create new named destinations unless you fiddle with SimpleNamedDestination and that's not really trivial. You can however make plain GoTo page links. Paulo - Original Message - From: Jingrong Chen [EMAIL PROTECTED] To: Post all your questions about iText here itext-questions@lists.sourceforge.net Sent: Thursday, October 12, 2006 7:30 PM Subject: Re: [iText-questions] [EMAIL PROTECTED] - Email hasdifferent SMTP TO: and MIME TO: fields in the email addresses- Re: exception in PdfContentByte.localDestination Paulo: Thanks for your suggestions: I tried to Use PdfStamper instead of PdfCopy. No exception produced. But the output file does not contain any named destination. What am I missing here? PdfStamper stamper = new PdfStamper( reader, new FileOutputStream(test.pdf)); PdfContentByte under; PdfDestination de; for (int i = 1; i pages; i++) { under = stamper.getUnderContent(i); de = new PdfDestination(PdfDestination.FITR, 0, 0, 0, 0); under.localDestination(test, de); } stamper.close(); Thanks a lot! Jing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Wednesday, October 11, 2006 11:27 AM To: Post all your questions about iText here Subject: [EMAIL PROTECTED] - Email has different SMTP TO: and MIME TO: fields in the email addresses - Re: [iText-questions] exception in PdfContentByte.localDestination PdfCopy doesn't allow to add any content, only full pages. Use PdfStamper. Paulo - Original Message - From: Jingrong Chen [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Wednesday, October 11, 2006 7:25 PM Subject: [iText-questions] exception in PdfContentByte.localDestination Hi, I am trying to read in a pdf file, add some named destination then save them to a new file. Here's my code: int pages = reader.getNumberOfPages(); Document document = new Document( reader.getPageSizeWithRotation( 1 ) ); PdfCopy writer = new PdfCopy( document, new FileOutputStream(test.pdf) ); document.open(); String name = test_destination; for (int i = 1; i = pages; i++) writer.addPage(writer.getImportedPage(reader, i); PdfDestination destination = new PdfDestination(PdfDestination.FITR, 0, 0, 0, 0); PdfContentByte cb = writer.getDirectContent(); cb.localDestination(name, destination); PdfAction.gotoLocalPage(i, destination, writer); } document.close(); I keep getting the exception at the same place for each page: java.lang.IllegalArgumentException: Invalid page number 3 at com.lowagie.text.pdf.PdfCopy.getPageReference(PdfCopy.java:359) at com.lowagie.text.pdf.PdfWriter.getCurrentPage(PdfWriter.java:2164) at com.lowagie.text.pdf.PdfDocument.localDestination(PdfDocument.java:2989) at com.lowagie.text.pdf.PdfContentByte.localDestination(PdfContentByte.java :2489) What am I doing wrong here? Appreciate you help! - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
Re: [iText-questions] exception in PdfContentByte.localDestination
Hi, Paulo: I am getting confused. I am trying to read in a pdf file, create some named destination then write out to a new file. Are you saying it's not possible? Thanks, Jing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Thursday, October 12, 2006 12:35 PM To: Post all your questions about iText here Subject: Re: [iText-questions] exception in PdfContentByte.localDestination You can't create new named destinations unless you fiddle with SimpleNamedDestination and that's not really trivial. You can however make plain GoTo page links. Paulo - Original Message - From: Jingrong Chen [EMAIL PROTECTED] To: Post all your questions about iText here itext-questions@lists.sourceforge.net Sent: Thursday, October 12, 2006 7:30 PM Subject: Re: [iText-questions] [EMAIL PROTECTED] - Email hasdifferent SMTP TO: and MIME TO: fields in the email addresses- Re: exception in PdfContentByte.localDestination Paulo: Thanks for your suggestions: I tried to Use PdfStamper instead of PdfCopy. No exception produced. But the output file does not contain any named destination. What am I missing here? PdfStamper stamper = new PdfStamper( reader, new FileOutputStream(test.pdf)); PdfContentByte under; PdfDestination de; for (int i = 1; i pages; i++) { under = stamper.getUnderContent(i); de = new PdfDestination(PdfDestination.FITR, 0, 0, 0, 0); under.localDestination(test, de); } stamper.close(); Thanks a lot! Jing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Wednesday, October 11, 2006 11:27 AM To: Post all your questions about iText here Subject: [EMAIL PROTECTED] - Email has different SMTP TO: and MIME TO: fields in the email addresses - Re: [iText-questions] exception in PdfContentByte.localDestination PdfCopy doesn't allow to add any content, only full pages. Use PdfStamper. Paulo - Original Message - From: Jingrong Chen [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Wednesday, October 11, 2006 7:25 PM Subject: [iText-questions] exception in PdfContentByte.localDestination Hi, I am trying to read in a pdf file, add some named destination then save them to a new file. Here's my code: int pages = reader.getNumberOfPages(); Document document = new Document( reader.getPageSizeWithRotation( 1 ) ); PdfCopy writer = new PdfCopy( document, new FileOutputStream(test.pdf) ); document.open(); String name = test_destination; for (int i = 1; i = pages; i++) writer.addPage(writer.getImportedPage(reader, i); PdfDestination destination = new PdfDestination(PdfDestination.FITR, 0, 0, 0, 0); PdfContentByte cb = writer.getDirectContent(); cb.localDestination(name, destination); PdfAction.gotoLocalPage(i, destination, writer); } document.close(); I keep getting the exception at the same place for each page: java.lang.IllegalArgumentException: Invalid page number 3 at com.lowagie.text.pdf.PdfCopy.getPageReference(PdfCopy.java:359) at com.lowagie.text.pdf.PdfWriter.getCurrentPage(PdfWriter.java:2164) at com.lowagie.text.pdf.PdfDocument.localDestination(PdfDocument.java:2989) at com.lowagie.text.pdf.PdfContentByte.localDestination(PdfContentByte.java :2489) What am I doing wrong here? Appreciate you help! - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net
Re: [iText-questions] Is there anyway to rotate text in Cell of Table
Thanks...You are life saver Paulo Paulo Soares wrote: http://itextdocs.lowagie.com/tutorial/objects/tables/pdfptable/index.html#verticaltext Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of vislavti Sent: Thursday, October 12, 2006 4:33 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Is there anyway to rotate text in Cell of Table Do you have sample code which I can refer to do the same? Thanks in advance Paulo Soares wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vishal Lavti Sent: Thursday, October 12, 2006 11:38 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Is there anyway to rotate text in Cell of Table Hi All, I wanted to know whether I can rotate text in a Cell of Table? Put the text in a template, make it an Image, rotate it, add it to a Chunk, add the Chunk to the Cell. Paulo I do not want to use PdfPTable as it has a constraint of row-span. Thanks Vishal Lavti Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não 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ão o destinatário 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. -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions -- View this message in context: http://www.nabble.com/Is-there-anyway-to-rotate-text-in-Cell-o f-Table-tf2429515.html#a6778603 Sent from the iText - General mailing list archive at Nabble.com. -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não 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ão o destinatário 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. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] exception in PdfContentByte.localDestination
- Original Message - From: Jingrong Chen [EMAIL PROTECTED] To: Post all your questions about iText here itext-questions@lists.sourceforge.net Sent: Thursday, October 12, 2006 9:26 PM Subject: Re: [iText-questions] exception in PdfContentByte.localDestination Hi, Paulo: I am getting confused. I am trying to read in a pdf file, create some named destination then write out to a new file. Are you saying it's not possible? No, I'm saying that there's not an out-of-the-box solution. If you know about the pdf structure then it's possible to do it. Paulo Thanks, Jing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Thursday, October 12, 2006 12:35 PM To: Post all your questions about iText here Subject: Re: [iText-questions] exception in PdfContentByte.localDestination You can't create new named destinations unless you fiddle with SimpleNamedDestination and that's not really trivial. You can however make plain GoTo page links. Paulo - Original Message - From: Jingrong Chen [EMAIL PROTECTED] To: Post all your questions about iText here itext-questions@lists.sourceforge.net Sent: Thursday, October 12, 2006 7:30 PM Subject: Re: [iText-questions] [EMAIL PROTECTED] - Email hasdifferent SMTP TO: and MIME TO: fields in the email addresses- Re: exception in PdfContentByte.localDestination Paulo: Thanks for your suggestions: I tried to Use PdfStamper instead of PdfCopy. No exception produced. But the output file does not contain any named destination. What am I missing here? PdfStamper stamper = new PdfStamper( reader, new FileOutputStream(test.pdf)); PdfContentByte under; PdfDestination de; for (int i = 1; i pages; i++) { under = stamper.getUnderContent(i); de = new PdfDestination(PdfDestination.FITR, 0, 0, 0, 0); under.localDestination(test, de); } stamper.close(); Thanks a lot! Jing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Wednesday, October 11, 2006 11:27 AM To: Post all your questions about iText here Subject: [EMAIL PROTECTED] - Email has different SMTP TO: and MIME TO: fields in the email addresses - Re: [iText-questions] exception in PdfContentByte.localDestination PdfCopy doesn't allow to add any content, only full pages. Use PdfStamper. Paulo - Original Message - From: Jingrong Chen [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Wednesday, October 11, 2006 7:25 PM Subject: [iText-questions] exception in PdfContentByte.localDestination Hi, I am trying to read in a pdf file, add some named destination then save them to a new file. Here's my code: int pages = reader.getNumberOfPages(); Document document = new Document( reader.getPageSizeWithRotation( 1 ) ); PdfCopy writer = new PdfCopy( document, new FileOutputStream(test.pdf) ); document.open(); String name = test_destination; for (int i = 1; i = pages; i++) writer.addPage(writer.getImportedPage(reader, i); PdfDestination destination = new PdfDestination(PdfDestination.FITR, 0, 0, 0, 0); PdfContentByte cb = writer.getDirectContent(); cb.localDestination(name, destination); PdfAction.gotoLocalPage(i, destination, writer); } document.close(); I keep getting the exception at the same place for each page: java.lang.IllegalArgumentException: Invalid page number 3 at com.lowagie.text.pdf.PdfCopy.getPageReference(PdfCopy.java:359) at com.lowagie.text.pdf.PdfWriter.getCurrentPage(PdfWriter.java:2164) at com.lowagie.text.pdf.PdfDocument.localDestination(PdfDocument.java:2989) at com.lowagie.text.pdf.PdfContentByte.localDestination(PdfContentByte.java :2489) What am I doing wrong here? Appreciate you help! - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions -
[iText-questions] Can't open pdf file
Hi All, I am using below code and I am not able to open the generated PDF File. Can anyone tell me what is wrong? import java.io.FileNotFoundException; import java.io.FileOutputStream; import com.lowagie.text.Cell; import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lowagie.text.PageSize; import com.lowagie.text.Table; import com.lowagie.text.pdf.PdfWriter; /* * Created on Oct 12, 2006 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ /** * @author vislavti * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class VerticalText { public static void main(String[] args) throws DocumentException { System.out.println(Table in cells); // step1 Document document = new Document(PageSize.A4, 50, 50, 50, 50); try { // step2 PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(c:\\TableInCell.pdf)); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (DocumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } // step3 document.open(); Table table1 = new Table(4); Cell c1 = new Cell(1); Cell c2= new Cell(2); Cell c3= new Cell(3); c3.setColspan(2); Cell c4 = new Cell(4); Cell c5= new Cell(5); Cell c6= new Cell(6); Table table2=new Table(3); table1.addCell(c1); table1.addCell(c2); table1.addCell(c3); c1.setColspan(4); table1.addCell(c1); //table1.addCell(c2); //table1.addCell(c3); table2.addCell(c4); table2.addCell(c5); table2.addCell(c6); Cell c7= new Cell(table2); c7.setColspan(4); table1.addCell(c7); document.add(table1); document.close(); } } -- View this message in context: http://www.nabble.com/Can%27t-open-pdf-file-tf2434098.html#a6787432 Sent from the iText - General mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Can't open pdf file
I found the problem. Thanks.. The problem was following piece of code..I was not honouring the table cell rule. c1.setColspan(4); table1.addCell(c1); vislavti wrote: Hi All, I am using below code and I am not able to open the generated PDF File. Can anyone tell me what is wrong? import java.io.FileNotFoundException; import java.io.FileOutputStream; import com.lowagie.text.Cell; import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lowagie.text.PageSize; import com.lowagie.text.Table; import com.lowagie.text.pdf.PdfWriter; /* * Created on Oct 12, 2006 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ /** * @author vislavti * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class VerticalText { public static void main(String[] args) throws DocumentException { System.out.println(Table in cells); // step1 Document document = new Document(PageSize.A4, 50, 50, 50, 50); try { // step2 PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(c:\\TableInCell.pdf)); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (DocumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } // step3 document.open(); Table table1 = new Table(4); Cell c1 = new Cell(1); Cell c2= new Cell(2); Cell c3= new Cell(3); c3.setColspan(2); Cell c4 = new Cell(4); Cell c5= new Cell(5); Cell c6= new Cell(6); Table table2=new Table(3); table1.addCell(c1); table1.addCell(c2); table1.addCell(c3); c1.setColspan(4); table1.addCell(c1); //table1.addCell(c2); //table1.addCell(c3); table2.addCell(c4); table2.addCell(c5); table2.addCell(c6); Cell c7= new Cell(table2); c7.setColspan(4); table1.addCell(c7); document.add(table1); document.close(); } } -- View this message in context: http://www.nabble.com/Can%27t-open-pdf-file-tf2434098.html#a6787470 Sent from the iText - General mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Why does table resides in cell??
Hi All, I am trying to add a table in a cell and then I am spanning the cell to 4 coulmns as required by the table. Inspite of that the nested table resided in the first cell. Why it does not span to whole row? The code is as below: import java.io.FileNotFoundException; import java.io.FileOutputStream; import com.lowagie.text.Cell; import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lowagie.text.PageSize; import com.lowagie.text.Table; import com.lowagie.text.pdf.PdfWriter; /* * Created on Oct 12, 2006 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ /** * @author vislavti * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class VerticalText { public static void main(String[] args) throws DocumentException { System.out.println(Table in cells); // step1 Document document = new Document(PageSize.A4, 50, 50, 50, 50); try { // step2 PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(c:\\TableInCell.pdf)); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (DocumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } // step3 document.open(); Table table1 = new Table(4); Cell c1 = new Cell(1); Cell c2= new Cell(2); Cell c3= new Cell(3); c3.setColspan(2); Cell c4 = new Cell(4); Cell c5= new Cell(5); Cell c6= new Cell(6); Table table2=new Table(3); table1.addCell(c1); table1.addCell(c2); table1.addCell(c3); //c1.setColspan(4); //table1.addCell(c1); //table1.addCell(c2); //table1.addCell(c3); table2.addCell(c4); table2.addCell(c5); table2.addCell(c6); Cell c7= new Cell(table2); c7.setColspan(4); table1.addCell(c7); document.add(table1); document.close(); } } The output of the above code can be seen in the attached pdf file. http://www.nabble.com/file/3615/TableInCell.pdf TableInCell.pdf -- View this message in context: http://www.nabble.com/Why-does-table-resides-in-cell---tf2434132.html#a6787542 Sent from the iText - General mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions