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


Groups > comp.lang.postscript > #121

Re: PDF: multiple slides per page to one slide per page?

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!feeder.news-service.com!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date Fri, 22 Apr 2011 13:33:16 -0500
From ken <ken@spamcop.net>
Newsgroups comp.lang.postscript
Subject Re: PDF: multiple slides per page to one slide per page?
Date Fri, 22 Apr 2011 19:33:12 +0100
Message-ID <MPG.281bda39ead0c4a298982c@usenet.plus.net> (permalink)
References <7d554826-c2b6-4dff-a363-8e8bf16c6798@r19g2000prm.googlegroups.com> <MPG.27e30eeb4abd417798981e@usenet.plus.net> <fb141551-05f0-47a3-8ef3-418c2bfc4dce@h9g2000pre.googlegroups.com>
Reply-To ken@spamcop.net
MIME-Version 1.0
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding 7bit
User-Agent MicroPlanet-Gravity/3.0.4
Lines 35
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-MNVoua/LNi3xVZc8lhq9v4n23162fYyr39fCTOq8FugLo19V3G77VRT8vU+/QWhPcuqlgHVIyVkiTMY!NcxdceJ17KKZrxvt1n5wZH69U0PW77jHKANMLV5uuK1F/avdGA6//wyrrLXTsuuRbpk5ItBXD6SZ!ZzxwpHw2AdXdN0c=
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2659
Xref x330-a1.tempe.blueboxinc.net comp.lang.postscript:121

Show key headers only | View raw


In article <fb141551-05f0-47a3-8ef3-
418c2bfc4dce@h9g2000pre.googlegroups.com>, dmathog@gmail.com says...

> I finally got around to this and your test program worked great - when
> extracting two pages per page.  Unfortunately the PDFs I am trying to
> convert are marked up 4 to a page.  So I made this change (the
> coordinates match my input):
t 9.02: Unrecoverable error, exit code 1
> 
> The resulting pdf wasn't viewable, but that's not surprising since it
> was probably corrupted by the crash.

That's a gracefully handled error condition rather than a crash :-) But 
yes, if the interpreter aborts the job then the PDF file is not written 
properly (at all in fact).

 
> Is there a way to work around this 2 page limit in ghostscript?

Well, sadly the code is making use of undocumented internals in the PDF 
interpreter, so it's not entirely surprising that it doesn'r work 100%. 
The error message is saying that the stack was empty (or contained too 
few objects) when trying to manipulate it, so something I did has had 
unexpected side effects on the stack.

Its been rather a while since I looked at this, but I seem to remember 
saying that if the sub-pages were all the same size then I could get 
away without the nasty hack of using undocumented code. So... if I can 
remember what I had in mind I may be able to fix it (assuming that the 
sub-pages are all the same size, as per your example).

I'll give it a bash over the weekend.


			Ken

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


Thread

Re: PDF: multiple slides per page to one slide per page? David Mathog <dmathog@gmail.com> - 2011-04-22 09:03 -0700
  Re: PDF: multiple slides per page to one slide per page? David Mathog <dmathog@gmail.com> - 2011-04-22 10:41 -0700
    Re: PDF: multiple slides per page to one slide per page? ken <ken@spamcop.net> - 2011-04-22 19:36 +0100
      Re: PDF: multiple slides per page to one slide per page? David Mathog <dmathog@gmail.com> - 2011-04-22 13:01 -0700
        Re: PDF: multiple slides per page to one slide per page? ken <ken@spamcop.net> - 2011-04-22 21:50 +0100
  Re: PDF: multiple slides per page to one slide per page? ken <ken@spamcop.net> - 2011-04-22 19:33 +0100
  Re: PDF: multiple slides per page to one slide per page? ken <ken@spamcop.net> - 2011-04-23 16:10 +0100
    Re: PDF: multiple slides per page to one slide per page? David Mathog <dmathog@gmail.com> - 2011-04-23 08:50 -0700
      Re: PDF: multiple slides per page to one slide per page? ken <ken@spamcop.net> - 2011-04-23 21:29 +0100
        Re: PDF: multiple slides per page to one slide per page? ken <ken@spamcop.net> - 2011-04-25 12:03 +0100
      Re: PDF: multiple slides per page to one slide per page? David Mathog <dmathog@gmail.com> - 2011-04-26 08:40 -0700
        Re: PDF: multiple slides per page to one slide per page? ken <ken@spamcop.net> - 2011-04-26 17:21 +0100
          Re: PDF: multiple slides per page to one slide per page? David Mathog <dmathog@gmail.com> - 2011-04-26 13:23 -0700
            Re: PDF: multiple slides per page to one slide per page? ken <ken@spamcop.net> - 2011-04-27 08:31 +0100

csiph-web