Carl

Thanks so much for the help.  I've done my own due diligence
as well and think I have some answers for both of us.

It appears that pdf2ps creates faulty postscript from exported
OpenOffice PDFs.  (I get some errors about EOF's missing.)

mpage works on *some* postscript files as you have discovered.
mpage fails on *some* postscript files such as aforementioned.

For some reason, psnup can handle the "bad" postscript that
mpage cannot.

thanks again....now i have 1 less reason to fire up Windows!

chris

On Thu, 2006-03-16 at 10:32 -0800, Carl Lowenstein wrote:
> On 3/16/06, Carl Lowenstein <[EMAIL PROTECTED]> wrote:
> > On 3/16/06, Chris Seberino <[EMAIL PROTECTED]> wrote:
> > > Carl
> > >
> > > Thanks for looking into this.  Glad I'm not crazy.
> > > I tried your examples and indeed pages.ps is fine
> > > until one does ps2ps.
> > >
> > > What comments did you add to pages.ps to make mpage
> > > act correctly on it?  Any ideas what ps2ps changes
> > > on pages.ps to mess it up for mpage?
> >
> > Actually, I started with a text file created with vi, which consisted of:
> > one ^L
> > two ^L
> > three ^L
> > four
> >
> > and used mpage -1 to translate that to PostScript.  Then I took out
> > everything that seemed unnecessary, including lots of PostScript
> > boilerplate that never got used.  I suspect that I could have taken
> > out all the structured comments except for
> >
> > %!PS-Adobe-2.0
> > %%Pages: (atend)
> > %%Page: 1 1
> > %%Page: 2 2
> > %%Page: 3 3
> > %%Page: 4 4
> > %%Pages: 4
> >
> > since mpage keys on the %%Page: comments.
> >
> > ps2ps makes such a mess of the original file, it is hard to see what
> > is going on.  Essentially it replaces all character generation by
> > direct calls to "move" and "draw line".
> >
> > If the net is working well this morning I will see if there are any
> > references to similar problems.  By the way, have you tried "psnup -4"
> > on your original files?  I just tried it on the results from "ps2ps
> > pages.ps" and it came out with the 4 images in the right place.  So
> > maybe the answer is to abandon mpage, unless you need some of its
> > other handy features, like printing page headers and numbers.
> 
> Nobody seems to have mentioned a problem exactly like this.  Just a
> few "how do I print 4-up".  By the way, I just noticed that
> 
> mpage -4 puts the pages
> 1 3
> 2 4
> 
> psnup -4 puts the pages
> 1 2
> 3 4
> 
> And a2ps -4 delegates the work to psnup.
> 
> I think that each of them has a switch to change the row-major or
> column-major aspect.
> 
>     carl
> --
>     carl lowenstein         marine physical lab     u.c. san diego
>                                                  [EMAIL PROTECTED]
> 
-- 
_______________________________________

Christian Seberino, Ph.D.
SPAWAR Systems Center San Diego
Code 2872
49258 Mills Street, Room 158
San Diego, CA 92152-5385
U.S.A.

Phone: (619) 553-9973
Fax  : (619) 553-0804
Email: [EMAIL PROTECTED]
_______________________________________

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to