I'm trying to make a pdf from tiff images, but the images in the pdf are squished. If I use the same tiff in imagemagick, the pdf appears fine, but the one I create with imageen is squished. Is there anything I'm doing wrong? Here is my code I'm using to create the pdf:
tiff := TIEMultiBitmap.Create;
try
tiff.ParamsEnabled := True;
tiff.Read(TiffFileName, nil, true);
tiff.Params[0].TIFF_Compression := ioTIFF_JPEG;
tiff.Params[0].PDF_Compression := ioPDF_JPEG;
tiff.DuplicateCompressionInfo;
tiff.Write(PDFFileName, ioPDF);
finally
tiff.Free;
end;
Please see the attached zip for the tiff file and the example pdf
attach/ioan/2020112144027_tiff-example.zip
34.79 KB