A while ago we received a fix in 20.08, because we were not able to convert from DOCX to TIFF when we had more than one page (filed as WORDSJAVA-2428). What we recon now is that the generated TIFF format makes trouble for TIFF files with more than one page. The Imaging for Windows OCX is pretty picky on those Tags and we think we know what the problem is. The tag BitsPerSample is missing on Page1 and has a strange value on Page2. Normally that should be sth. like BitsPerSample = 1
If you look at the Tags from Page one you see:
TAGS from Page1:
ImageWidth (1 Short): 2481
ImageLength (1 Short): 3508
Compression (1 Short): Group 4 Fax (aka CCITT FAX4)
Photometric (1 Short): MinIsWhite
StripOffsets (135 Long): 1232, 1239, 1246, 1253, 1260, 1267, 1274,…
SamplesPerPixel (1 Short): 1
RowsPerStrip (1 Short): 26
StripByteCounts (135 Long): 7, 7, 7, 7, 7, 7, 1828, 2021, 2188, 1306,…
XResolution (1 Rational): 300
YResolution (1 Rational): 300
TAGS from Page2:
ImageWidth (1 Short): 2481
ImageLength (1 Short): 3508
BitsPerSample (4 Short): 1, 0, 1, 23048
Compression (1 Short): Group 4 Fax (aka CCITT FAX4)
Photometric (1 Short): MinIsWhite
StripOffsets (135 Long): 88584, 88591, 88598, 88605, 88612, 88619,…
SamplesPerPixel (1 Short): 1
RowsPerStrip (1 Short): 26
StripByteCounts (135 Long): 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,…
XResolution (1 Rational): 300
YResolution (1 Rational): 300
We tried this with Version Aspose.Word.20.08 and 20.10 with the same results.
Error message with the OCX is attached and also the ASPOSE generated one with the suspicious TAGs
Imaging4WinOCXError.jpg (22.7 KB)
100021064-1.zip (138.0 KB)