Fax preview with .tif attachment fails

11 views
Skip to first unread message

Jim Bishop

unread,
Mar 24, 2015, 7:46:10 PM3/24/15
to yajhf...@googlegroups.com

I just installed version 0.5.7. When I try to preview or send a fax with a tiff file attachment I get the following error:

 

Error previewing the documents:

java.io.IOException: Tag 282 not found.

 

java.lang.RuntimeException: java.io.IOException: Tag 282 not found.

            at yajhfc.file.tiff.LibTIFFImageReader$TiffIterator.next(LibTIFFImageReader.java:60)

            at yajhfc.file.tiff.LibTIFFImageReader$TiffIterator.next(LibTIFFImageReader.java:44)

            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.file.MultiFileConverter.viewMultipleFiles(MultiFileConverter.java:181)

            at yajhfc.send.SendController$PreviewWorker.doWork(SendController.java:277)

            at yajhfc.util.ProgressWorker.run(ProgressWorker.java:189)

Caused by: java.io.IOException: Tag 282 not found.

            at yajhfc.file.tiff.LibTIFFFile.getFloatField(LibTIFFFile.java:198)

            at yajhfc.file.tiff.LibTIFFFile.getResolutionX(LibTIFFFile.java:209)

            at yajhfc.file.tiff.LibTIFFFile.readAGBRPDFImage(LibTIFFFile.java:385)

            at yajhfc.file.tiff.LibTIFFFile.readPDFImage(LibTIFFFile.java:407)

            at yajhfc.file.tiff.LibTIFFImageReader$TiffIterator.next(LibTIFFImageReader.java:56)

            ... 7 more

 

 

YajHFC 0.5.7

Java 1.7.0_51 (Oracle Corporation)

Java(TM) SE Runtime Environment 1.7.0_51-b13

Java HotSpot(TM) Client VM

Windows 7 6.1 (x86)


Previewing and/or sending with a PDF attachment works fine. I could both preview and send faxes with tiff files attachments with version 0.5.6. Was this change intentional?

Jonas Wolz

unread,
Mar 25, 2015, 3:31:08 AM3/25/15
to yajhf...@googlegroups.com, Jim Bishop

Am Mittwoch, 25. März 2015 schrieb Jim Bishop:

> I just installed version 0.5.7. When I try to preview or send a fax with a

> tiff file attachment I get the following error:

>

> Error previewing the documents:

>

> java.io.IOException: Tag 282 not found.

> [...]

>

> YajHFC 0.5.7

> Java 1.7.0_51 (Oracle Corporation)

> Java(TM) SE Runtime Environment 1.7.0_51-b13

> Java HotSpot(TM) Client VM

> Windows 7 6.1 (x86)

>

> Previewing and/or sending with a PDF attachment works fine. I could both

> preview and send faxes with tiff files attachments with version 0.5.6. Was

> this change intentional?

 

The reason for the error is that your TIFF file does not have a resolution (dpi) set (which is currently not expected).

I will make a fix for the next release so it can handle TIFFs without resolution, too.

Could you send me one of the problematic TIFFs so I can test that fix?

 

The code in question has not changed between versions 0.5.6 and 0.5.7, however...

The most likely explanation for the difference is that you did not use native TIFF support in 0.5.6 or that the TIFF file you have tried is somehow different from the ones you used in the past...

 

Hope that helps,

Jonas

Jonas Wolz

unread,
Mar 26, 2015, 5:01:05 AM3/26/15
to Jim Bishop, yajhf...@googlegroups.com

Thanks for the test file!

The resolution is usually set (or not) by the application producing the file.

 

Anyway, at http://download.yajhfc.de/betas/ you can find an updated version of YajHFC which should have a fix for your problem. (except for the fix it is identical to 0.5.7 at the moment)

It would be nice if you could test this version and give me a short feedback if it works for you now ...

 

 

Am Mittwoch, 25. März 2015 schrieb Jim Bishop:

> Here is a sample tif file to test with.

> How do I set the resolution?

>

> From: jo...@yajhfc.de

> To: yajhf...@googlegroups.com; jrbish...@gmail.com

> Subject: Re: [yajhfc-user] Fax preview with .tif attachment fails

> Date: Wed, 25 Mar 2015 08:31:04 +0100

Reply all
Reply to author
Forward
0 new messages