Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx006.isp.belgacom.be (inmx006.isp.belgacom.be [195.238.2.106])
        by mailst006.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i7KG7DOI003206
        for <joris.at.lebbeke@skynet.be>; Fri, 20 Aug 2004 18:07:13 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx006.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i7KG6vKo031405
        for <joris.at.lebbeke@skynet.be>; Fri, 20 Aug 2004 18:06:58 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 8AEC21F6DAF; Fri, 20 Aug 2004 12:06:41 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from tiki-lounge.com (tiki-lounge.com [199.181.107.26])
	by xserve.flids.com (Postfix) with ESMTP id 70FDD1F6D84
	for <tiff@remotesensing.org>; Fri, 20 Aug 2004 12:06:39 -0400 (EDT)
Received: from tiki-lounge.com (localhost [127.0.0.1])
	by tiki-lounge.com (8.12.1/8.12.1) with ESMTP id i7KG2WTe009181;
	Fri, 20 Aug 2004 09:02:32 -0700 (PDT)
Received: from localhost (raf@localhost)
	by tiki-lounge.com (8.12.1/8.12.1/Submit) with ESMTP id i7KG2W9h009178; 
	Fri, 20 Aug 2004 09:02:32 -0700 (PDT)
Date: Fri, 20 Aug 2004 09:02:31 -0700 (PDT)
From: "Ross A. Finlayson" <raf@tiki-lounge.com>
X-X-Sender: raf@tiki-lounge.com
To: Beppe Costagliola <beppecosta@yahoo.it>
Subject: Re: [Tiff] Tiff2pdf with zlib
In-Reply-To: <00e501c4869d$525b0220$43fea8c0@aspgroup.local>
Message-ID: <Pine.GSO.4.43.0408200852060.8919-100000@tiki-lounge.com>
X-Ross: Ross
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: tiff@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: bc172c44fcce26605022b20945d0cfee


Hi Beppe,

On Fri, 20 Aug 2004, Beppe Costagliola wrote:

> I've ported the latest Tifflib 3.6.1 to my iSeries with the tiff2pdf.1.4.
>
> Everything works fine and I use it to convert spooled files to PDF.
>
> The TIFF is created from and AFP spooled file with an IBM api called
> HostPrintTranform and the generated PDF has the attribute
> /CCITTFaxDecode
>
> I've tried to include the zlib modules and rebuilt all.
>
> I call the tiff2pdf with the -z option, it runs without errors, but the
> pdf is still the same.
>
> Thanks for any information on this topic.
>
>
>

That is by design.  For most cases Group IV Fax cmpression is more
efficient in output size in compressing the image.  Some type of images
are better compressed with LZ77, Deflate, Zip.  Those are highly
speckled or halftoned images, JBIG encoding is better than Group IV Fax or
Zip in file size, if not necessarily computational requirements.

Also, in the conversion, when the input image is already compressed with
Fax compression, the tiff2pdf program can copy it right over to the PDF
file without handling the compressed domain image data.

It should be not a problem to add the logic so that when you select, say,
the -n option for no data passthrough, and then the -z option for zip,
with maybe the -d option for decompress or don't compress, to get some
intuitive combination that would instruct the program that you want the
file compressed with Deflate.

I'm trying to figure out Ionita's tags, if I can get a patch to tiff2pdf.c
for that then I will try and figure out a good way for you to set that
option.

Ross F.

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
