Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #805

Re: style of PostScript generated by pdf2ps?

From ken <ken@spamcop.net>
Newsgroups comp.lang.postscript
Subject Re: style of PostScript generated by pdf2ps?
Date 2012-07-16 11:15 +0100
Message-ID <MPG.2a6dfa2e26fb85ed989890@usenet.plus.net> (permalink)
References <CL-dne2qwa15Q57NnZ2dnUVZ7o-dnZ2d@brightview.co.uk>

Show all headers | View raw


In article <CL-dne2qwa15Q57NnZ2dnUVZ7o-dnZ2d@brightview.co.uk>, 
bugbear@trim_papermule.co.uk_trim says...
 
> This is (in fact) just the output of the pwwrite driver in GS.

That's because ps2pdf is just a script that calls Ghostscript.

> The older driver generated stuff like this
> 
> %!PS-Adobe-3.0
> %%Pages: (atend)
> %%BoundingBox: 0 0 90 85
> %%HiResBoundingBox: 0.000000 0.000000 90.000000 85.000000
> %.............................................
> %%Creator: GPL Ghostscript  900 (pswrite)
> %%CreationDate: 2012/07/16 10:18:24
> %%DocumentData: Clean7Bit
> %%LanguageLevel: 2
> %%EndComments
> 
> The newer driver:
> 
> %!PS-Adobe-3.0
> %%BoundingBox: 0 0 612 792
> %%Creator: GPL Ghostscript 904 (ps2write)
> %%LanguageLevel: 2
> %%CreationDate: D:20120713171249+01'00'
> %%Pages: 1
> %%EndComments

We now use ps2write instead of pswrite because it produces better output 
(smaller, less bitmapped content etc). In the long term pswrite will be 
removed, but for now you can still use it if you really want to.

 
> The %%BoundingBox comment in the new output is incorrect,
> or at least deferred in a very unhelpful way; *this*
> occurs later on...

Well %%BoundingBox is a high water mark for *all* the pages, and since 
that value is probably the media size, its certainly legitimate, if 
perhaps inaccurate. I'm not certain there is anything we can do about 
this, as I think the header may be generated before we know all the page 
sizes.

That said I'm willing to look at the problem if you raise a bug report 
at http://bugs.ghostscript.com


			Ken

Back to comp.lang.postscript | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

style of PostScript generated by pdf2ps? bugbear <bugbear@trim_papermule.co.uk_trim> - 2012-07-16 10:29 +0100
  Re: style of PostScript generated by pdf2ps? Helge Blischke <h.blischke@acm.org> - 2012-07-16 11:55 +0200
    Re: style of PostScript generated by pdf2ps? ken <ken@spamcop.net> - 2012-07-16 11:24 +0100
      Re: style of PostScript generated by pdf2ps? ken <ken@spamcop.net> - 2012-07-16 11:43 +0100
      Re: style of PostScript generated by pdf2ps? Helge Blischke <h.blischke@acm.org> - 2012-07-16 12:50 +0200
        Re: style of PostScript generated by pdf2ps? ken <ken@spamcop.net> - 2012-07-16 11:58 +0100
          Re: style of PostScript generated by pdf2ps? ken <ken@spamcop.net> - 2012-07-16 13:05 +0100
  Re: style of PostScript generated by pdf2ps? ken <ken@spamcop.net> - 2012-07-16 11:15 +0100

csiph-web