Path: csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'problem?': 0.07; 'works.': 0.07; 'cc:addr:python-list': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; '"<>': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'cc:name:laura creighton': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'guessing': 0.16; 'macosx,': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'laura': 0.18; 'settings': 0.20; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**2': 0.20; 'orientation': 0.22; 'sep': 0.22; 'this:': 0.23; 'command': 0.26; '+0200,': 0.27; 'correct': 0.28; 'fine': 0.28; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; 'problem': 0.33; 'skip:- 10': 0.34; 'know.': 0.34; 'file': 0.34; 'so,': 0.35; 'text': 0.35; 'files,': 0.35; 'there': 0.36; 'subject:: ': 0.37; 'there,': 0.37; 'done.': 0.37; 'pdf': 0.37; 'charset:us-ascii': 0.37; 'things': 0.38; 'itself': 0.38; 'version': 0.38; 'skip:- 20': 0.39; 'enough': 0.39; 'where': 0.40; 'your': 0.60; 'header:Message- Id:1': 0.61; 'real': 0.62; 'great': 0.63; 'landscape': 0.66; 'paper': 0.73; 'header:In-reply-to:1': 0.84; 'horrible': 0.84; 'surprisingly': 0.84; 'difficult,': 0.91 To: Baladjy KICHENASSAMY cc: Laura Creighton , python-list@python.org, lac@openend.se From: Laura Creighton Subject: Re: Postscript to pdf In-reply-to: References: <201509201812.t8KICXHu004041@fido.openend.se> Comments: In-reply-to Baladjy KICHENASSAMY message dated "Sun, 20 Sep 2015 20:27:48 +0200." MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18312.1442776143.1@fido> Date: Sun, 20 Sep 2015 21:09:03 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Sun, 20 Sep 2015 21:09:05 +0200 (CEST) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 48 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442776152 news.xs4all.nl 23782 [2001:888:2000:d::a6]:56177 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96892 In a message of Sun, 20 Sep 2015 20:27:48 +0200, Baladjy KICHENASSAMY writes: >Hello, > >I'm using macosx, ps2pdf version i don't know :/ sorry.... >ok actually i found what is the problem... > >There is no problem with the ps file every thing is fine =) > >Can u please just tell me how to change paper settings ? >i want to go from portait to landscape ? > Aha! Great to know. Do you have a real printer there, in which case is this a printer problem? If so, I need the name of the printer and its model number to help look up the way to make it do landscape. If you just want to have ps2pdf produce landscape files, that is surprisingly difficult, for the ps2pdf that uses ghostscript to get the work done. ps2pdf 'guesses' what is the correct orientation and, stupidly, there is no way to tell it 'stop guessing, I know what I want'. It's very bad at guessing things that don't have text -- or enough text -- in them. Most of the time ps2pdf is just this: gs \ -o output.pdf \ -sDEVICE=pdfwrite \ -dPDFSETTINGS=/prepress \ -dHaveTrueTypes=true \ -dEmbedAllFonts=true \ -dSubsetFonts=false \ -c ".setpdfwrite <> setdistillerparams" \ -f input.ps where input.ps is the file you have and output.pdf is the pdf you want. and we can make gs orient itself as you want with -c "<> setpagedevice" Orientation 3 is landscape. Orientation 0 is portrait. If this is your problem, then see if you have gs (ghostscript) and in that case see if this horrible long command works. Laura