Quoting Tabish Sarwar <[EMAIL PROTECTED]>: > Hi, > I have a few jpegs images that i need to convert into single pdf file . > > e.g: > 1.jpg ,2.jpg this will form a pdf document with 2 pages. > Any pointers will be highly appreciated.
Create Image objects using the jpegs. Create pages with the same size as the images. Add the images to those pages at coordinate (0, 0) For inspiration you could look at the code of the PhotoAlbum plug-in in the iText toolbox. -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar