Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx016.isp.belgacom.be (inmx016.isp.belgacom.be [195.238.2.219])
        by mailst006.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i7QJW6sM016676
        for <joris.at.lebbeke@skynet.be>; Thu, 26 Aug 2004 21:32:08 +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 inmx016.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i7QJVmi7016434
        for <joris.at.lebbeke@skynet.be>; Thu, 26 Aug 2004 21:31:50 +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 C8802259DD5; Thu, 26 Aug 2004 15:31:28 -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 8B1BE259DC5
	for <tiff@remotesensing.org>; Thu, 26 Aug 2004 15:31:26 -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 i7QJRCTe018354;
	Thu, 26 Aug 2004 12:27:12 -0700 (PDT)
Received: from localhost (raf@localhost)
	by tiki-lounge.com (8.12.1/8.12.1/Submit) with ESMTP id i7QJRCbb018351; 
	Thu, 26 Aug 2004 12:27:12 -0700 (PDT)
Date: Thu, 26 Aug 2004 12:27:12 -0700 (PDT)
From: "Ross A. Finlayson" <raf@tiki-lounge.com>
X-X-Sender: raf@tiki-lounge.com
To: Ekkard Gerlach <EkkardGerlach@aiai.de>
Subject: Re: [Tiff] tiff2ps converts short faxes to bottom of a letter
In-Reply-To: <20040826171901.GG2503@rex2.local>
Message-ID: <Pine.GSO.4.43.0408261222320.18302-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: e50c748e37e6d6004ce3c003439a1318



On Thu, 26 Aug 2004, Ekkard Gerlach wrote:

> Problem with faxes (received by hylafax, faxgetty) that contain
>   * only few lines of text
>   * more than one page
> like http://www.aiai.de/fax00058.tif
>
> tiff2ps -a fax00058.tif > fax.ps  converts this tiff to
> a ps-file with each document placed at the botton
> of the letter. But it should be placed the top or middle.
>
> Sorry, I can't detect version of my tiff2ps! tiff2ps -h
> or something like this responds not with a version. I'm
> using Suse8.2 Linux distribution.
>
> My aim is to generate a pdf-document. ps2pdf is the
> next step. BTW: fax2ps is no solution because the result
> after ps2pdf is not readable /fuzzy when using acrobat reader
> (Linux and Windows). xpdf or kghostview make no problems, but
> Win-user should read the documents, too.
>
> tia
> Ekkard
>

Hi Ekkard,

I can't tell you too much about tiff2ps.  In looking at the man page,
there is a -c option to center the image on the page if you provide it
with -w and -h options for width and height.

If you are using HylaFAX, then if you want to use libtiff with version
greater than 3.6 then I think you need to get a patch for either HylaFAX
or libtiff from HylaFAX.  Search for "HylaFAX libtiff 3.6.1".  I don't use
HylaFAX so I can't tell you much more about it, although I could continue
indefinitely, but I think the issue is about the Group III fax coding.
Anyways from what I understand there is a patch for one of HylaFAX or
libtiff to enable working with the current versions of libtiff and HylaFAX
together.

http://bugzilla.remotesensing.org/show_bug.cgi?id=483
http://bugs.hylafax.org/bugzilla/show_bug.cgi?id=500

If you use the current version of libtiff then you could use tiff2pdf to
go directly to PDF, it's efficient.  I tried it on your sample image, it
places the fax image on the center of the page.  You can set the page size
or width and height.  The tiff2pdf program does not have the tiff2ps
option to split an image onto several pages, for example an extended fax
page.  The tiff2pdf might have added an option for fax detection based
upon the resolutions 204 x 196 or 204 x 98, but the page length is
variable, there are some standard dimensions of the fax pages, and they
vary.  If you need it immediately you could enlist me for commercial
support of the freeware, MIT-style license, tiff2pdf from libtiff.  Also
I'll be happy to do that.

There are some fine commercial products that might solve your problem, and
add thumbnails, linearization, annotations, and encryption, for example
DaVince's or FastIO's tiff2pdf, at least one of which uses libtiff, or my
own ImagePDF software, which uses libtiff, or any of the dozens of other
TIFF to PDF programs available freely or for money, some few of which run
on non-Windows platforms.

I'm not sure what the status is on the HylaFAX <-> libtiff compatibility.
It is unclear.

You can use the -c option to center the image on the page with dimensions
set with the -h and -w options in inches using tiff2ps.

Regards,

Ross F.

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