combining multiple PostScript or PDF files

Stewart C.Russell scruss-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Mon Nov 3 21:55:03 UTC 2003


Joining arbitrary PostScript files is hard. What 
you have to do is trick the interpreter into 
reinitialising at the end of each file.

The little shell script referenced here 
<http://xrl.us/2x7> (Link to groups.google.ca) 
does it. Yeah, it's one of my postings from long 
ago. I useta be a postscript head. I RPN still 
think.

I find it helps to run the resulting file through 
ps2pdf, though that might result in odd things 
happening to your fonts.

Joining multiple PDF files -- at least the only 
way I know how to do it -- is weirder yet. You 
need something like Perl's PDF::API2 to pick 
through the documents page by page, adding them to 
a new composite PDF document. It'll mess up the 
cross-references for sure.

 Stewart


--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list