M
M
Mnobody2014-08-29 21:16:20
Java
Mnobody, 2014-08-29 21:16:20

What java library to convert multi-strip tiff to pdf?

Previously, the iText 1.4.8 library was used, but then the file format changed and the library gives an error.

Compression JPEG is only supported with a single strip. This image has 350 strips.

Newer versions don't seem to work with this file type either (or am I wrong)?
To be honest, I don’t really understand what strip is (sort of like a layer), but the generation of pdf files does not work with the new format (multilayer chtoli).
1. Is it possible to somehow make a multi-stripe tiff'a single-strip even before processing it with the iText library?
2. What library can be used instead of iText? What library is the fastest way to remake existing code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Odissey Nemo, 2014-10-28
@odissey_nemo

Strips are separate consecutive blocks in Tiff. To speed up access to arbitrary parts of the raster.
For omnivorous and optimal purposes, you can use GDAL (there is a Java connection) - that is a natural beast that eats everything. Relatively difficult to learn, but quite easy to use. There are many examples.
Because GDAL works with almost any raster format, there will be no problems with reworking existing code. Unless with a new code for working with GDAL) And yes, it takes up a lot of space (each format has its own library).
Perhaps, for the sake of TIFF alone, you should not bother with GDAL.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question