Fix tiff2pdf problem of converting tiff to pdf using COMPRESSION_JPEG format.
Fix tiff2pdf problem of converting from tiff (using COMPRESSION_JPEG format) to pdf.
I'm not good at JPEG and DCT things. So please review deeply as needed.
Test cases:
marb.tif
Note: tiff2pdf.exe is: LIBTIFF, Version 4.2.0
KU@H270 /cygdrive/c/a
$ tiff2pdf.exe -o marb.pdf marb.tif
- Fixed output by this PR: marb.pdf
24.tif
Note: tiff2pdf.exe is: LIBTIFF, Version 4.2.0
KU@H270 /cygdrive/c/a/c2
$ tiff2pdf.exe -o 24.pdf 24.tif
- Fixed output by this PR: 24.pdf