Postscript files - help

Postscript files - help

Post by Santosh Krishnan x281 » Tue, 17 Dec 1996 04:00:00



Hi,
I'd like to know how to combine multiple postscript files to make one
monolithic file.

For instance, netscape will allow you to print to a file.  However, if
you're browsing a set of pages, and want all of them to be printed to the
same file, it's not possible.  I tried using Ghostview to do this, but it
doesn't have an option for it.

I then tried appending each file to the end of the previous one, but that
doesn't work well, since each file has a header and a footer, unlike one
file with several pages, which would have one header and one footer with
several page separators.

Any help on this matter would be appreciated.
Sincerely
Santosh Krishnan

*************************************************
* LINUX System Admin    | Phone: (817)272-2815  *
*-----------------------------------------------*
* Center for High Energy Physics and Technology *
* The University of Texas at Arlington          *
* Arlington, Texas 76019                        *
*-----------------------------------------------*
* Fax: (817)272-2824                            *

*************************************************

 
 
 

Postscript files - help

Post by Nicol » Thu, 19 Dec 1996 04:00:00



> Hi,
> I'd like to know how to combine multiple postscript files to make one
> monolithic file.

> For instance, netscape will allow you to print to a file.  However, if
> you're browsing a set of pages, and want all of them to be printed to the
> same file, it's not possible.  I tried using Ghostview to do this, but it
> doesn't have an option for it.

> I then tried appending each file to the end of the previous one, but that
> doesn't work well, since each file has a header and a footer, unlike one
> file with several pages, which would have one header and one footer with
> several page separators.

> Any help on this matter would be appreciated.
> Sincerely
> Santosh Krishnan

> *************************************************
> * LINUX System Admin    | Phone: (817)272-2815  *
> *-----------------------------------------------*
> * Center for High Energy Physics and Technology *
> * The University of Texas at Arlington          *
> * Arlington, Texas 76019                        *
> *-----------------------------------------------*
> * Fax: (817)272-2824                            *

> *************************************************

I'm sorry but I don't remember its names (one is, perhaps, nenscript).
There are various postscript utilities for doing such things. Ghostview
won't wotk for that.
--


 
 
 

Postscript files - help

Post by David M. Co » Thu, 19 Dec 1996 04:00:00



>I'm sorry but I don't remember its names (one is, perhaps, nenscript).

mpage.  nenscript is for printing out textfiles.

Dave Cook

 
 
 

Postscript files - help

Post by Ian Fin » Thu, 19 Dec 1996 04:00:00



> Hi,
> I'd like to know how to combine multiple postscript files to make one
> monolithic file.

> For instance, netscape will allow you to print to a file.  However, if
> you're browsing a set of pages, and want all of them to be printed to the
> same file, it's not possible.  I tried using Ghostview to do this, but it
> doesn't have an option for it.

> I then tried appending each file to the end of the previous one, but that
> doesn't work well, since each file has a header and a footer, unlike one
> file with several pages, which would have one header and one footer with
> several page separators.

> Any help on this matter would be appreciated.
> Sincerely
> Santosh Krishnan

> *************************************************
> * LINUX System Admin    | Phone: (817)272-2815  *
> *-----------------------------------------------*
> * Center for High Energy Physics and Technology *
> * The University of Texas at Arlington          *
> * Arlington, Texas 76019                        *
> *-----------------------------------------------*
> * Fax: (817)272-2824                            *

> *************************************************

Check into how PS is splitting up the pages, then write a perl script
to merge the PS files together.

Adobe's book:  PostScript Language Reference Manual

Would help on how to figure out the page breaks and headers :)

It's been a while since I have done any PS work, so I don't know
how to do that off the top of my head.

Ian Fink

 
 
 

Postscript files - help

Post by Subhas R » Fri, 20 Dec 1996 04:00:00





>> Hi,
>> I'd like to know how to combine multiple postscript files to make one
>> monolithic file.

>> For instance, netscape will allow you to print to a file.  However, if
>> you're browsing a set of pages, and want all of them to be printed to the
>> same file, it's not possible.  I tried using Ghostview to do this, but it
>> doesn't have an option for it.

>> I then tried appending each file to the end of the previous one, but that
>> doesn't work well, since each file has a header and a footer, unlike one
>> file with several pages, which would have one header and one footer with
>> several page separators.

>> Any help on this matter would be appreciated.
>> Sincerely
>> Santosh Krishnan

>> *************************************************
>> * LINUX System Admin    | Phone: (817)272-2815  *
>> *-----------------------------------------------*
>> * Center for High Energy Physics and Technology *
>> * The University of Texas at Arlington          *
>> * Arlington, Texas 76019                        *
>> *-----------------------------------------------*
>> * Fax: (817)272-2824                            *

>> *************************************************

> Check into how PS is splitting up the pages, then write a perl script
> to merge the PS files together.

> Adobe's book:  PostScript Language Reference Manual

> Would help on how to figure out the page breaks and headers :)

Or, do it the easy way: use psmerge. It is part of psutils packages.
See: http://www.dcs.ed.ac.uk/home/ajcd/psutils/

 Manpage says

NAME
       psmerge  -  filter  to merge several PostScript files into
       one

SYNOPSIS
       psmerge [ -oout.ps ] [ file.ps ...  ]

DESCRIPTION
       Psmerge merges PostScript documents into  a  single  docu-
       ment.  It  only  works  in the specific case the the files
       were created using the same  application,  with  the  same
       device  setup  and  resources  (fonts, procsets, patterns,
       files, etc) loaded.

       If the -o option is used, output will be sent to the  file
       named, otherwise it will go to standard output.

       Psmerge will merge multiple files concatenated into a sin-
       gle file as if they were in separate files.