#549653 gscan2pdf: cannot save to g3 compressed pdf

#549653#5
Date:
2009-10-05 09:42:52 UTC
From:
To:
Package: gscan2pdf
Version: 0.9.29-1
Severity: normal

Hello,

I use gscan2pdf to scan and prepare files for fax sending. So I use
lineart mode and the correct resolution so hylafax doesn't have to scale
and/or convert the documents.

I also want to save the pdfs using the g3 compression since it is the
native fax format, which is quite efficient with these scan settings.

But I have the following error when saving :

Error embedding file image in tif format to PDF: chunked ccitt g4 tif
not supported. at
/usr/share/perl5/PDF/API2/Resource/XObject/Image/TIFF.pm line 270

I'm pretty sure that it worked before, but it might be quite some times
ago since I have not used that combination in a long time.

Thanks for your great work,

#549653#10
Date:
2009-11-28 23:34:43 UTC
From:
To:
reassign 549653 libpdf-api2-perl
thanks

The attached g3-compressed TIFF and script demonstrate the problem:

chunked ccitt g4 tif not supported. at /usr/share/perl5/PDF/API2/Resource/XObject/Image/TIFF.pm line 270.

#549653#19
Date:
2013-04-16 12:23:41 UTC
From:
To:
found 549653 2.019-1
tags 549653 upstream
severity 549653 wishlist
thanks

This is still the case in the current version. But as reassigned to
libpdf-api2-perl, this seems like a feature request more than a bug:
PDF::API2 only supports certain kinds of compression, and duly errors
out if an unsupported kind is requested. Unfortunately, upstream has
been unmaintained since 2008, so the chances of significant new
functionality being added are quite low, unless a new upstream
maintainer is found.

Best,
Mark

#549653#30
Date:
2013-04-16 12:44:13 UTC
From:
To:
forwarded 549653 https://rt.cpan.org/Public/Bug/Display.html?id=84665
thanks

Correction to my previous message: upstream actually does have a new
maintainer. Therefore I've forwarded this request. Apologies for the
misinformation.

Best,
Mark

#549653#37
Date:
2017-11-28 18:50:01 UTC
From:
To:
FYI, this bug (PDF::API2 RT 84665) has been fixed in the PDF::Builder
fork of PDF::API2 (v 3.009, issue #8). Two items to note:

 1. g3test.pl needs a line  $gfx->image($imgobj, 0,0,
    2528/300*72,3299/300*72); in order to display the image in the PDF.
 2. To use this in PDF::Builder, libtiff.a and the Graphics::TIFF
    library (from Jeffrey Ratcliffe) first need to be installed.

This is not fixed yet in PDF::API2. Jeffrey is trying to get the
maintainer (Steve Simms) to put in similar code to use Graphics::TIFF.

Phil Perry, owner, PDF::Builder