From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Brian Blackmore Newsgroups: gmane.emacs.help Subject: Re: Splitting 2 pages/page landscape postscript file into two single page portrait pages Date: Sat, 13 Oct 2007 19:27:39 +0000 (UTC) Organization: University of Washington Message-ID: References: <1192048230.677232.139360@r29g2000hsg.googlegroups.com> <1192140899.043658.176980@50g2000hsm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1192374800 31961 80.91.229.12 (14 Oct 2007 15:13:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2007 15:13:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 14 17:13:10 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ih59Q-0007Ys-2O for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Oct 2007 17:13:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ih59J-0004jv-Dq for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Oct 2007 11:13:01 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!feedme.ziplink.net!newspeer1.nwr.nac.net!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.alt.net!news.u.washington.edu!not-for-mail Original-Newsgroups: comp.lang.postscript, comp.text.tex, comp.graphics.algorithms, comp.text.pdf, gnu.emacs.help Original-Lines: 59 Original-NNTP-Posting-Host: cs702-37.myuwmodem.myuw.net Original-X-Trace: gnus01.u.washington.edu 1192303659 23024 209.124.187.47 (13 Oct 2007 19:27:39 GMT) Original-X-Complaints-To: help@cac.washington.edu Original-NNTP-Posting-Date: Sat, 13 Oct 2007 19:27:39 +0000 (UTC) User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (OpenBSD/3.5 (i386)) Original-Xref: shelby.stanford.edu comp.lang.postscript:85919 comp.text.tex:359934 comp.graphics.algorithms:169760 comp.text.pdf:85390 gnu.emacs.help:152885 X-Mailman-Approved-At: Sun, 14 Oct 2007 11:12:31 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48400 Archived-At: In comp.text.tex Ross Presser wrote: > On Oct 10, 4:30 pm, vasan...@hotmail.com wrote: > > Hi, I am a newbie. > > > > I have a book.ps file which has all the pages, having two facing pages > > per portrait page like this: > > > > +---------------+--------------+ > > | | | > > | | | > > +---------------+--------------+ > > > > I want to split the two pages. I dont want to scan the pages and then > > make bulky images out of compact pdf file. The file was generated from > > a dvi and latex that are no longer available. The > > author has died. The ps was made to save the number of printed > > pages in an era before pdf. > > > > So there are two problems: > > (1) split the ps into single pages > > (2) split each page in the center to to two successive pages. > > (3) then combine all the ps > > (4) I would like the ps to be converted to pdf so that it is > > searcheable, if possible. > > > > Steps 1-2 are the most important. > > > > Vasantha > I can't help but think that all the solutions proposed so far are > overthinking the problem. There are only a few good ways to 2-up a > document in postscript, and it seems likely that a suitable perl > script (or, if you're insane like Don Lancaster, a postscript program) > could do the job without having to go through a PDF phase. It's easy to think this because you're correct. It would be nice to see the first few pages, as was requested, simply so we could discern what 2-upper was used. If the document was created through a reasonable process like latex->dvips->psnup, then the data should nicely be in unmunged form whence all that is required is to remove the two-up stuff, which is easily found after the %%EndSetup as the PStoPS stuff. In this case, the pages are preserved (TeXDict begin ... bop ... eop end) so removing the PStoPS rotation/scaling is all that's required. Incidentally, I'm sure it would be fairly easy to right a postscript header that would disable the PStoPS commands and create the same effect. :) It seems to me that going through PDf, etc., is way overkill, and likely to cause more problems. The ability to search PDf is, of course, somewhat dependent on the fonts used; the more steps you carry out, the more likely it is that it becomes bitmapped. If you just want to search, I suggest ps2ascii or a more capable document (postscript) viewer. -- Brian Blackmore blb8 at po dot cwru dot edu