Forums Register Login

combining tif files with java

+Pie Number of slices to send: Send
Hello
Does anyone know how to combine tif files using java (or any other tool). For example I have a CD where someone has scanned multiple page documents into a tif format. The users want the multiple page documents combined into 1 document.
Thanks
+Pie Number of slices to send: Send
Hi Chuck,
You may use Java Advanced Imaging (JAI).
This API works well on most file formats, and handles correctly TIFF pages.
To do what you need, you may use the following snippet, assuming you want to save the output images as tiff:
+Pie Number of slices to send: Send
I forgot to mention that if you're using the Java 2 SDK 1.4, you may also use the ImageIO APIs.
To get the number of images use ImageReader.getNumImages and to retrieve one single image ImageReader.read(int imageIndex).
Hope this provides usefull.
+Pie Number of slices to send: Send
Beno�t
Thank you very much. Your example pointed me in
the right direction.
Chuck
Your buns are mine! But you can have this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 5354 times.
Similar Threads
Tabs within one browser share Session, but I want to capture close and time out event for each tab
JAI - creating multi page tiff images
Opening a file
Java Code to Convert RTF to JPG
compressed Tiff
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:07:05.