Closed jwolz closed 8 years ago
Original comment by Oliver Jaksch (Bitbucket: oliver_jaksch, ).
libtiff plugin IS installed, also pdf-plugin. That was the first action I checked ;)
This fax is one lonely of thousands of faxes that had this kind of error. Many many others are send/received correctly with differend formats, like jbig etc.
Logfile available: https://drive.google.com/open?id=0B0ZPAlxGlGzbWVpfaEJhbVBpYmM
Original comment by Jonas Wolz (Bitbucket: jonaswolz, GitHub: jwolz).
From the stack trace in the error message it is pretty clear to me that the tiff plugin is not used/not working and YajHFC falls back to iText instead to read the TIFFs...
When you go to "Help -> Log Console" in YajHFC, you should see something like the following if the TIFF plugin is working:
#!none
Dez 11, 2015 10:11:53 AM yajhfc.file.tiff.LibTIFFEntryPoint$1 call
INFORMATION: libtiff version: LIBTIFF, Version 4.0.3
Copyright (c) 1988-1996 Sam Leffler
Copyright (c) 1991-1996 Silicon Graphics, Inc.
Do you see something similar or an error message instead?
Original comment by Oliver Jaksch (Bitbucket: oliver_jaksch, ).
Jeez, it says
Dez 12, 2015 11:14:47 AM yajhfc.file.tiff.LibTIFFEntryPoint$1 call SCHWERWIEGEND: Can not load libtiff, plugin disabled
So I re-setup yajhfc and message is gone. But issue with viewing/converting this fax still exists. Maybe the sender used a unsual compression or something other went wrong with transmission? Unfortunately I can't publish this fax here for public as it contains sensitive informations.
Okular complains about "INFORMATION: okular output: JBIG: Error (107) decoding: Input data stream contains invalid data." but shows the fax.
tiff2pdf throws... JBIG: Error (107) decoding: Input data stream contains invalid data. tiff2pdf: Error on decoding strip 0 of fax000011285.tiff. tiff2pdf: An error occurred creating output PDF file. ...and creates a PDF that isn't readable
tiffinfo: TIFF Directory at offset 0x2a12 (10770) Subfile Type: multi-page document (2 = 0x2) Image Width: 1728 Image Length: 1141 Resolution: 204, 98 pixels/inch Bits/Sample: 1 Compression Scheme: ISO JBIG Photometric Interpretation: min-is-white FillOrder: lsb-to-msb Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: (infinite) Planar Configuration: single image plane ImageDescription: xxxxxxxxxxx
xxxxxxxxxxx s Make: WWW.SOFT-SWITCH.ORG Model: spandsp Software: HylaFAX (tm) Version 5.5.5 DateTime: 2015:11:30 15:18:36 HostComputer: asterisk FaxRecvParams: 34676776 FaxRecvTime: 17 FaxDcs: 00 44 1F 21 01 01 01 01 01 02 TIFF Directory at offset 0x452a (17706) Subfile Type: multi-page document (2 = 0x2) Image Width: 1728 Image Length: 1160 Resolution: 204, 98 pixels/inch Bits/Sample: 1 Compression Scheme: ISO JBIG Photometric Interpretation: min-is-white FillOrder: lsb-to-msb Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: (infinite) Planar Configuration: single image plane ImageDescription: xxxxxxxxxxx
xxxxxxxxxxx s Make: WWW.SOFT-SWITCH.ORG Model: spandsp Software: HylaFAX (tm) Version 5.5.5 DateTime: 2015:11:30 15:18:46 HostComputer: asterisk FaxRecvParams: 34676776 FaxRecvTime: 7 FaxDcs: 00 44 1F 21 01 01 01 01 01 02 TIFF Directory at offset 0x7116 (28950) Subfile Type: multi-page document (2 = 0x2) Image Width: 1728 Image Length: 1141 Resolution: 204, 98 pixels/inch Bits/Sample: 1 Compression Scheme: ISO JBIG Photometric Interpretation: min-is-white FillOrder: lsb-to-msb Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: (infinite) Planar Configuration: single image plane ImageDescription: xxxxxxxxxxx
xxxxxxxxxxx s Make: WWW.SOFT-SWITCH.ORG Model: spandsp Software: HylaFAX (tm) Version 5.5.5 DateTime: 2015:11:30 15:18:52 HostComputer: asterisk FaxRecvParams: 34676776 FaxRecvTime: 9 FaxDcs: 00 44 1F 21 01 01 01 01 01 02 TIFF Directory at offset 0x8c34 (35892) Subfile Type: multi-page document (2 = 0x2) Image Width: 1728 Image Length: 1160 Resolution: 204, 98 pixels/inch Bits/Sample: 1 Compression Scheme: ISO JBIG Photometric Interpretation: min-is-white FillOrder: lsb-to-msb Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: (infinite) Planar Configuration: single image plane ImageDescription: xxxxxxxxxxx
xxxxxxxxxxx s Make: WWW.SOFT-SWITCH.ORG Model: spandsp Software: HylaFAX (tm) Version 5.5.5 DateTime: 2015:11:30 15:19:02 HostComputer: asterisk FaxRecvParams: 34676776 FaxRecvTime: 7 FaxDcs: 00 44 1F 21 01 01 01 01 01 02
Original comment by Oliver Jaksch (Bitbucket: oliver_jaksch, ).
I'm sure you're right. This one is one of only a very few which were broken, and in all cases "other reasons" were the cause. Thanks for listening. Ticket can be closed.
Original report by Anonymous.
Received a fax that when selected "save as pdf" produces the following error. The same with windows with same versions, except there runs oracles jdk instead. Viewing and saving as tif work flawless.
Beim Speichern des Faxes ist ein Fehler aufgetreten: The compression 34661 is not supported.
java.lang.IllegalArgumentException: The compression 34661 is not supported. at com.itextpdf.text.pdf.codec.TiffImage.getTiffImageColor(TiffImage.java:333) at com.itextpdf.text.pdf.codec.TiffImage.getTiffImage(TiffImage.java:117) at com.itextpdf.text.pdf.codec.TiffImage.getTiffImage(TiffImage.java:315) at com.itextpdf.text.pdf.codec.TiffImage.getTiffImage(TiffImage.java:303) at yajhfc.file.tiff.ITextTiffImageReader$ImgIterator.next(ITextTiffImageReader.java:71) at yajhfc.file.tiff.ITextTiffImageReader$ImgIterator.next(ITextTiffImageReader.java:56) at yajhfc.file.pdf.ITextTIFFFileConverter.convertToHylaFormat(ITextTIFFFileConverter.java:63) at yajhfc.file.MultiFileConverter.convertMultipleFiles(MultiFileConverter.java:123) at yajhfc.file.MultiFileConverter.convertMultipleFilesToSingleFile(MultiFileConverter.java:206) at yajhfc.MainWin$SaveToFormatWorker.doWork(MainWin.java:738) at yajhfc.util.ProgressWorker.run(ProgressWorker.java:189)
YajHFC 0.5.7 Java 1.7.0_91 (Oracle Corporation) OpenJDK Runtime Environment 1.7.0_91-b02 OpenJDK 64-Bit Server VM Linux 4.2.5-1-ARCH (amd64)