On Thursday 02 August 2001 02:49, Alexandr Malusek wrote:
"Steven T. Hatton"
writes: Printing: convert -page A4+0+0 image.tiff - | lpr
Later, I realized the PS format was not specified for the output file here. I guess "convert -page A4+0+0 image.tiff PS2:- | lpr" is OK but I haven't tested it.
When I already have my document in a postscript file I typically use psbook and psnup, but I don't think these will do any good in this situation.
Try something like:
FILES="f1.tiff f2.tiff f3.tiff" # or more files convert -page A4+0+0 $FILES PS2:book.ps psnup -2 book.ps book_2.ps
Also note that the PS2 format (Adobe Level II PostScript) significantly reduces the resulting file size.
Alexandr, et al, Thanks for the help. http://w1.859.telia.com/~u85906673/asar/havamal/havamal.html That was the hint I needed. I found I couldn't get more than a few pages to fit in a single PS file, so I had to generate on file per sheet. I tried using a perl script to do everything, but I couldn't remember how to get it to pass the multiple file names as parameters of the system('convert', ...). I createda perl script that spit out a bash script which processed on section. It's a major hack, but here's the script. You will notice I don't even use command line parameters, instead I changed the variable assignment in the perl script itself. FWIW: ___________________________________________ #!/usr/bin/perl print "#!/bin/bash \n"; print "mkdir ps\n"; $offset = 521; $size = 30; for ($i = 0; $i < 16 ; $i += 2) { print "FILES=\""; $j = ($size -1) + $offset - $i; if ($j < 10) { print "00".$j.".tiff "; } elsif ($j < 100) { print "0".$j.".tiff "; } else { print $j.".tiff "; } # else $j = $offset + $i; if ($j < 10) { print "00".$j.".tiff "; $pad="00".$j; } elsif ($j < 100) { $pad="0".$j; print "0".$j.".tiff "; } else { print $j.".tiff "; $pad=$j; } # else $j = $offset + $i + 1; if ($j < 10) { print "00".$j.".tiff "; } elsif ($j < 100) { print "0".$j.".tiff "; } else { print $j.".tiff "; } # else $j = ($size -2) + $offset - $i; if ($j < 10) { print "00".$j.".tiff "; } elsif ($j < 100) { print "0".$j.".tiff "; } else { print $j.".tiff "; } # else print "\";\n"; print "echo \"files = \" \$FILES\n"; print "convert -page letter \$FILES PS2:quad.ps;\n"; print "psnup -2 -pletter quad.ps ps/book$pad.ps;\n"; } ________________________________________
-- Alexandr.Malusek@imv.liu.se