contatenate fax in pdf

Gert Doering (gert@greenie.muc.de)
Sun, 18 Apr 1999 15:19:14 +0200


Hi,

On Sun, Apr 18, 1999 at 02:51:48PM +0200, Marc SCHAEFER wrote:
> do you know of any easy way to make so the user receives a *PDF*
> which has page 1 as page 1 of fax, etc ?

Nothing I know of, but it should be doable by constructing ps files
(ideally something like "pbmtolps" with line graphics, not bitmaps) and
then building an PDF file from there - PDF is not much more than 
"postscript with some more headers".

> I can convert g3 to ps through pbm, I attempted to concatenate the
> ps files with diverse tools, I tried to use gs and multiple ps
> argument files, but none of this works.
> 
> It's not very important, but could be interesting, since PDF
> is probably today the ``most portable format'' (except ASCII).

Well, I managed to do it :) - wasn't that hard actually...:

[gert@noisy /tmp]$ for i in ff71468065b*g3 ; do g3topbm <$i | pbmtolps >>i.ps ;done
[gert@noisy /tmp]$ ps2pdf i.ps
[gert@noisy /tmp]$ acroread i.pdf

-> works, but it's massively ugly:

[gert@noisy /tmp]$ ls -l i* ff*
-rw-rw-r--   1 gert     gert     21315537 Apr 18 14:11 i.pdf
-rw-rw-r--   1 gert     gert      4179313 Apr 18 14:10 i.ps

21 Mbytes!!! as compared to below 1Mb for the G3 files:

-rw-r--r--   1 gert     gert        91550 Apr 18 15:05 ff71468065b-_-+49-8932356299_.01.g3
-rw-r--r--   1 gert     gert       134661 Apr 18 15:05 ff71468065b-_-+49-8932356299_.02.g3
-rw-r--r--   1 gert     gert       133488 Apr 18 15:05 ff71468065b-_-+49-8932356299_.03.g3
-rw-r--r--   1 gert     gert       128271 Apr 18 15:05 ff71468065b-_-+49-8932356299_.04.g3
-rw-r--r--   1 gert     gert       139522 Apr 18 15:05 ff71468065b-_-+49-8932356299_.05.g3
-rw-r--r--   1 gert     gert       121609 Apr 18 15:05 ff71468065b-_-+49-8932356299_.06.g3

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de