You're in the wrong mailing list. However, you can use iText to convert the tiff, single or multistrip, to pdf.
----- Original Message ----- From: "Scott Tyriver" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, January 08, 2005 1:34 AM Subject: [iText-questions] create single strip in multi page tiff > Hello, > > Hope you can help me. We are users of iText and I went > back to your site and found XTIFF. The problem I am > having is as follows: > > I am creating a tiff document that eventually gets > converted to pdf. > > I need to set the tiff pages to all use single strip > images in order for the tif to pdf converter we have > to work. > If I add the following line to the snippet below I can > get the first page to be single strip but I cannot get > the rest of the pages in the > tiff to be single strip. Can I use XTIFF to do this or > is there an existing way using the jai classes. > > myTIFFEncodeParam.setTileSize(myFirstImage.getWidth(),myFirstImage.getHeight ()); > > > // Tiff creation snippet: > > int myPageCount = > aBufferedImageList.size(); > > // create the file output stream > myByteArrayOutputStream = new > ByteArrayOutputStream (); > myBufferedOutputStream = new > BufferedOutputStream (myByteArrayOutputStream); > TIFFEncodeParam myTIFFEncodeParam = new > TIFFEncodeParam(); > > myTIFFEncodeParam.setCompression(TIFFEncodeParam.COMPRESSION_GROUP4); > > > ImageEncoder myImageEncoder = > ImageCodec.createImageEncoder("tiff", > myBufferedOutputStream, myTIFFEncodeParam); > > // Save off first image and remove it > from list. > BufferedImage myFirstImage = > (BufferedImage)aBufferedImageList.get(0); > aBufferedImageList.remove(0); > > // Get and iterator of the rest of the > images. > Iterator myIterator = > aBufferedImageList.iterator(); > > myTIFFEncodeParam.setExtraImages(myIterator); > > // Create multi-page tiff file. > myImageEncoder.encode(myFirstImage); > > myReturnValue = > myByteArrayOutputStream.toByteArray(); > > Thank you for any feedback. > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - 250MB free storage. Do more. Manage less. > http://info.mail.yahoo.com/mail_250 > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
