On Saturday 04 August 2001 11:10, Joel Hammer wrote:
> On Sat, Aug 04, 2001 at 09:12:04AM -0500, Jim Conner wrote:
> > When this saga comes to a conclusion, I think it would make a great SxS.
>
> Unless I shoot myself first. This seems SO simple there may not be a name
> for it or it may be so complicated nobody can do it.
> The current status of my simple quest:
Joel:
I offer you the below which came from the SuSE list. I haven't dug into it
all but it sounds like someone was trying to do much the same thing you are
but with tiff files converted to a PS file, in quad format. There's a script
file at the bottom.
Maybe there is a clue in here.....
On Thursday 02 August 2001 02:49, Alexandr Malusek wrote:
> "Steven T. Hatton" <[EMAIL PROTECTED]> 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";
}
________________________________________
+----------------------------------------------------------------------------+
+ Bruce S. Marshall [EMAIL PROTECTED] Bellaire, MI 08/04/01 12:54 +
+----------------------------------------------------------------------------+
"A book may be compared to the life of your neighbor. If it be good, it cannot
last too long; if bad, you cannot get rid of it too early." - H. Brooke
_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc
->http://linux.nf/mailman/listinfo/linux-users