Hi All, I have a doubt regarding the PDF.I want to know if there is any function / event that can be used to find out when a new page begins....I want to know this coz I want to add an Image but not as a Header...Hope u guys can understand what i meant...
Sathish -----Original Message----- From: [EMAIL PROTECTED] [mailto:itext-questions-request@;lists.sourceforge.net] Sent: Tuesday, October 22, 2002 12:39 AM To: [EMAIL PROTECTED] Subject: iText-questions digest, Vol 1 #801 - 8 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. Problem converting rtf document into landscape (Ryan Wong) 2. RE: PdfPTable problems adding under Table (Paulo Soares) 3. RE: PDF from AS/400 problem... (Paulo Soares) 4. Re: PdfPTable problems adding under Table (Marco Ceccarelli) 5. RE: NullPointer exception in com.lowagie.text.p df.ColumnText.go(boolean) (Paulo Soares) 6. Re: Problem converting rtf document into landscape (Mark Hall) 7. New release itext-paulo-104 (Paulo Soares) --__--__-- Message: 1 From: "Ryan Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Fri, 18 Oct 2002 12:14:48 +0800 Subject: [iText-questions] Problem converting rtf document into landscape This is a multi-part message in MIME format. ------=_NextPart_000_0026_01C2769F.F6755F00 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Any one tried to convert the Word Document (*.rtf or *.doc) into landscape? I tried this but doesn't work: - // START Document document = new Document(PageSize.A4.rotate()); com.lowagie.text.rtf.RtfWriter writer = com.lowagie.text.rtf.RtfWriter.getInstance(document, new java.io.FileOutputStream("test.rtf")); // END Please help! ... Thanks ... Regards,Ryan ------=_NextPart_000_0026_01C2769F.F6755F00 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <TITLE>Message</TITLE> <META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D703421104-18102002><FONT face=3DArial=20 size=3D2>Hi,</FONT></SPAN></DIV> <DIV><SPAN class=3D703421104-18102002><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D703421104-18102002><FONT face=3DArial size=3D2>Any = one tried to=20 convert the Word Document (*.rtf or *.doc) into landscape? I tried this = but=20 doesn't work: -</FONT></SPAN></DIV> <DIV><SPAN class=3D703421104-18102002><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D703421104-18102002><FONT face=3DArial size=3D2>//=20 START</FONT></SPAN></DIV> <DIV><SPAN class=3D703421104-18102002><FONT face=3DArial = size=3D2> Document=20 document =3D new=20 Document(PageSize.A4.rotate());<BR> com.lowagie.text.rtf.RtfWriter = writer=20 =3D com.lowagie.text.rtf.RtfWriter.getInstance(document, new=20 java.io.FileOutputStream("test.rtf"));</FONT></SPAN></DIV> <DIV><SPAN class=3D703421104-18102002><FONT face=3DArial size=3D2>//=20 END</FONT></SPAN></DIV> <DIV><SPAN class=3D703421104-18102002><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D703421104-18102002><FONT face=3DArial size=3D2>Please = help! ...=20 Thanks ...</FONT></SPAN></DIV> <DIV><SPAN class=3D703421104-18102002><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D703421104-18102002><FONT face=3DArial=20 size=3D2>Regards,</FONT></SPAN><SPAN class=3D703421104-18102002><FONT = face=3DArial=20 size=3D2>Ryan</FONT></SPAN></DIV></BODY></HTML> ------=_NextPart_000_0026_01C2769F.F6755F00-- --__--__-- Message: 2 From: Paulo Soares <[EMAIL PROTECTED]> To: 'Marco Ceccarelli' <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: RE: [iText-questions] PdfPTable problems adding under Table Date: Mon, 21 Oct 2002 10:48:02 +0100 Put an empty Paragraph in-between to make some space. Best Regards, Paulo Soares > -----Original Message----- > From: Marco Ceccarelli [SMTP:[EMAIL PROTECTED]] > Sent: Saturday, October 19, 2002 11:49 > To: [EMAIL PROTECTED] > Subject: [iText-questions] PdfPTable problems adding under Table > > If you have CellPadding in the first table and you add a PdfPTable, it > go over the first table, how to resolve? > i would try with setOffset but there isn't in PdfPTable... > > excuse my english, i attach my exmple > > begin-------------------------------------------------------------- > import java.awt.Color; > import java.awt.Point; > import java.io.*; > > import com.lowagie.text.*; > import com.lowagie.text.pdf.*; > > public class MC_test { > > public static void main(String arg[]) { > Document.compress = false; > try { > Document document = new Document(PageSize.A4, 50, 50, 50, > 50); > PdfWriter.getInstance(document, new > FileOutputStream("c:\\test.pdf")); > document.open(); > > Table aTable = null; > > // test 1 : simple table > aTable = new Table(2,2); // 2 rows, 2 columns > aTable.setCellpadding(0); > > aTable.addCell("0.0"); > aTable.addCell("0.1"); > aTable.addCell("1.0"); > aTable.addCell("1.1"); > document.add(aTable); > System.out.println("\n --------------------- test1 done"); > > PdfPTable pTable = new PdfPTable(2); > pTable.getDefaultCell().setPadding(0); > pTable.addCell("aa"); > pTable.addCell("bb"); > pTable.addCell("aa"); > pTable.addCell("bb"); > document.add(pTable); > > document.newPage(); > > aTable = new Table(2,2); // 2 rows, 2 columns > aTable.setCellpadding(2); > aTable.addCell("0.0"); > aTable.addCell("0.1"); > aTable.addCell("1.0"); > aTable.addCell("1.1"); > document.add(aTable); > System.out.println("\n --------------------- test2 done"); > > pTable = new PdfPTable(2); > pTable.getDefaultCell().setPadding(2); > pTable.addCell("aa"); > pTable.addCell("bb"); > pTable.addCell("aa"); > pTable.addCell("bb"); > document.add(pTable); > > document.close(); > } > catch(Exception de) { > de.printStackTrace(); > System.out.println(de.toString()); > } > > } > } > > end-------------------------------------------------------------- > > > -- > Marco Ceccarelli - Programmatore > TNX.it - Internet & Multimedia > > -- > Marco Ceccarelli - Programmatore > TNX.it - Internet & Multimedia > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > Access Your PC Securely with GoToMyPC. Try Free Now > https://www.gotomypc.com/s/OSND/DD > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions --__--__-- Message: 3 From: Paulo Soares <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: RE: [iText-questions] PDF from AS/400 problem... Date: Mon, 21 Oct 2002 10:50:05 +0100 For reasons that Microsoft only knows the get works but the post don't. Best Regards, Paulo Soares > -----Original Message----- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] > Sent: Friday, October 18, 2002 14:01 > To: [EMAIL PROTECTED] > Subject: [iText-questions] PDF from AS/400 problem... > > I'm having problems getting my PDF to show up in IE (v5.5 sp2) when > running > from an AS/400 (WebShere). The code works fine when I using Netscape 4.7, > or if I am running my code from my PC test environment (VisualAge). I've > tried IE6, with no luck. The PDF will show in the browser once every 3-4 > times I hit the link. The only way I can get it to show, consistently, is > if I comment out everything that writes text and only display rectangles > and lines. I can also get it to show every time if I move all my code to > the doGet() of the servlet. Any ideas??? > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions --__--__-- Message: 4 Date: Mon, 21 Oct 2002 12:48:09 +0200 From: Marco Ceccarelli <[EMAIL PROTECTED]> To: itext-questions <[EMAIL PROTECTED]> Subject: Re: [iText-questions] PdfPTable problems adding under Table Thanks, i tried with adding a new Phrase("") but i want the two tables to be unified, with no blank space at all, so i make changes on the itext source for print the second table at a specified position. --- begin source --- public class PdfDocument extends Document implements DocListener { ... //MC //private float currentHeight = 0; public float currentHeight = 0; --- end source --- --- begin source --- public class Document implements DocListener { .... /** The DocListener. */ //MC //private ArrayList listeners = new ArrayList(); public ArrayList listeners = new ArrayList(); --- end source --- --- begin source --- (my porgram) PdfDocument temp = (PdfDocument)(document.listeners.get(0)); System.out.println("docY:" + temp.currentHeight); --- end source --- i know it isn't the best way but i don't know other ways to know the current y coord.. is there a simply way? Paulo Soares ha scritto: Put an empty Paragraph in-between to make some space. Best Regards, Paulo Soares -----Original Message----- From: Marco Ceccarelli [SMTP:[EMAIL PROTECTED]] Sent: Saturday, October 19, 2002 11:49 To: [EMAIL PROTECTED] Subject: [iText-questions] PdfPTable problems adding under Table If you have CellPadding in the first table and you add a PdfPTable, it go over the first table, how to resolve? i would try with setOffset but there isn't in PdfPTable... excuse my english, i attach my exmple begin-------------------------------------------------------------- import java.awt.Color; import java.awt.Point; import java.io.*; import com.lowagie.text.*; import com.lowagie.text.pdf.*; public class MC_test { public static void main(String arg[]) { Document.compress = false; try { Document document = new Document(PageSize.A4, 50, 50, 50, 50); PdfWriter.getInstance(document, new FileOutputStream("c:\\test.pdf")); document.open(); Table aTable = null; // test 1 : simple table aTable = new Table(2,2); // 2 rows, 2 columns aTable.setCellpadding(0); aTable.addCell("0.0"); aTable.addCell("0.1"); aTable.addCell("1.0"); aTable.addCell("1.1"); document.add(aTable); System.out.println("\n --------------------- test1 done"); PdfPTable pTable = new PdfPTable(2); pTable.getDefaultCell().setPadding(0); pTable.addCell("aa"); pTable.addCell("bb"); pTable.addCell("aa"); pTable.addCell("bb"); document.add(pTable); document.newPage(); aTable = new Table(2,2); // 2 rows, 2 columns aTable.setCellpadding(2); aTable.addCell("0.0"); aTable.addCell("0.1"); aTable.addCell("1.0"); aTable.addCell("1.1"); document.add(aTable); System.out.println("\n --------------------- test2 done"); pTable = new PdfPTable(2); pTable.getDefaultCell().setPadding(2); pTable.addCell("aa"); pTable.addCell("bb"); pTable.addCell("aa"); pTable.addCell("bb"); document.add(pTable); document.close(); } catch(Exception de) { de.printStackTrace(); System.out.println(de.toString()); } } } -- Marco Ceccarelli - Programmatore TNX.it - Internet & Multimedia --__--__-- Message: 5 From: Paulo Soares <[EMAIL PROTECTED]> To: 'Gerald Fehringer' <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: RE: [iText-questions] NullPointer exception in com.lowagie.text.p df.ColumnText.go(boolean) Date: Mon, 21 Oct 2002 11:56:11 +0100 It's a bug. It doesn't detect an empty chunk. The fix will be in the next release (probably today). Best Regards, Paulo Soares > -----Original Message----- > From: Gerald Fehringer [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, October 16, 2002 11:03 > To: [EMAIL PROTECTED] > Subject: [iText-questions] NullPointer exception in > com.lowagie.text.pdf.ColumnText.go(boolean) > > Hello Paulo! > > Sometimes we get a nullpointer exception in > com.lowagie.text.pdf.ColumnText.go(boolean) method .. which is thrown in > case the bidiLine.processLine(..) returns null .. > > Unfortunately I cant provide a sample code. > > What can be the problem there? > What if we try to check for such cases and break the loop this is > happening > in? > > Thanks for your answer, > Gerald. > > > > ------------------------------------------------------- > This sf.net email is sponsored by: viaVerio will pay you up to > $1,000 for every account that you consolidate with us. > http://ad.doubleclick.net/clk;4749864;7604308;v? > http://www.viaverio.com/consolidator/osdn.cfm > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions --__--__-- Message: 6 Date: Mon, 21 Oct 2002 15:51:29 +0200 From: Mark Hall <[EMAIL PROTECTED]> To: Ryan Wong <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: Re: [iText-questions] Problem converting rtf document into landscape -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ryan Wong wrote: > // START > Document document = new Document(PageSize.A4.rotate()); > com.lowagie.text.rtf.RtfWriter writer > = com.lowagie.text.rtf.RtfWriter.getInstance(document, new > java.io.FileOutputStream("test.rtf")); > // END If you are not using the most current version (check the website) or the cvs version, then please upgrade. Upgrading should solve the problem. If it doesn't please specify which version and which environment you are using. Greetings, Mark - -- The cause of the problem is: manager in the cable duct My GPG key is available at: http://www.edu.uni-klu.ac.at/~mhall/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBPbQGYEks8txBCICQAQLSbAgAmBmGg8AbAq6iHPhhH7GhOeuln6W7o2HC Rp6x3G1gBTwXyFRCVkSMkphvzqLMmzgBgdeaJ9thgEElIpDPUEW6/9FsgV7+RChQ cg5O401NWAu3GCBEC0lLH1Vzi3GdZAFyK/ezB8s6r7SD1IUMs8esOh0asU/dlQF2 ivCNI84tP6ZZMqtzo7JpwH2C1jXDBHk6Hvrrd8TfBXa+XkPQnan/ucqv6trlQhJD QzafakzTPldhnhYlP49s5Z3QQErD4Odk06fhbo62NwgOm3GmZeRk5fbBYJRh2zuk dOgUKkfKam+nSJLmTrN/KqFkombc+FKeYGlzU1ht2aF0hkxekAIqmw== =gYPn -----END PGP SIGNATURE----- --__--__-- Message: 7 From: Paulo Soares <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Mon, 21 Oct 2002 17:04:18 +0100 Subject: [iText-questions] New release itext-paulo-104 Changes in itext-paulo-104 (2002-10-21) - added kerning support in PdfContentByte. - fixed a bug in ColumnText when a Chunk had an empty string. - added additional actions in page objects. - fixed a bug in PdfGraphics2D when using create() and templates. - added support for colors and styles in outlines. - fixed a bug in imported pages when matrix was different than identity. - added support to free the memory used by PdfReader in PdfWriter. All this at: http://www.geocities.com/itextpdf Best Regards, Paulo Soares --__--__-- _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions End of iText-questions Digest ------------------------------------------------------- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions