X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f X-Recipient: geda-help AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EW0ewAPIg+FDX7TS5QaFlbhsPn1A0XeSpYygtxmJgvg=; b=Ne7IMxUv5eEoE6c48CAeXbBJHWykpEMCnUx576iy91KF4BS2I+R/rUnX07Wgny3dgQ QpZWVQJ26FYjpsnQW491UcWhmpd5pGwyj6AJPGaJAz+dXlNREZ28opu3M8Gat5Ni/5UV Sst/XKmOjS5MqyNmNvloiCmcvPqTkCGWwR0dRw5Ws/TXNYQKzU8DVAxYX36+NJcLzK9m aEwi2giE4R47Hs2K2AGBJHVFF2LxTKzlpf2FzjoQ1aLIuu2nVGORpMkuzmX41OntfsDR Sa54ZdQ70c9PKyaefBraaLIqY/piLTdjhPrQP1SNPcZEssbuUXMeyhK1WLcIhzlkA0NN mm+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=EW0ewAPIg+FDX7TS5QaFlbhsPn1A0XeSpYygtxmJgvg=; b=LdF9pWYtTBqvph61EFbC5wOLsuEm8DXBIgXnd+GMQC/lRCipnnNDSH1q5VeU5MTmPu yp/o49QQXPKtfn8FGgHq6w71AKsmxOoARTVhryxvhK+HCB0PtR7MmxdTZQqARwcmI+hz J1NWI/iZucgZv1N7fZGNCp/90rmHbnggwI5dQMLWO0AQXgSe4xsykae/FrP7qqDpU5sp tbHK6OgCfcrpNyr2uQ3JUUrREXx+7DzFrzAxHwiJ8lmmcAhDpjhkSG2hVQIsiDsGaI+Y ZjTcKUNPqOkVBPRlKzZj94X0u5vR9np8cKQN1xVaVyk3m5htxb/IcWdbt6yI9IXaRgnl vKMw== X-Gm-Message-State: AMke39noVXsrzEr1N2rLV2Rs5Jle0ZMAJr146nrdenSvTFqU2KhZ4PjohB+rHxfMVCxlpg== X-Received: by 10.25.65.15 with SMTP id o15mr3777280lfa.14.1487492307731; Sun, 19 Feb 2017 00:18:27 -0800 (PST) Date: Sun, 19 Feb 2017 11:18:25 +0300 From: "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-help AT delorie DOT com]" To: geda-help AT delorie DOT com Subject: Re: [geda-help] printing to landscape A4 without margins, how ? Message-ID: <20170219081825.GA14177@localhost.localdomain> Mail-Followup-To: geda-help AT delorie DOT com References: <20170218181007 DOT 80DD9812BA6B AT turkos DOT aspodata DOT se> <20170218224033 DOT 9B0F9812BA6B AT turkos DOT aspodata DOT se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170218224033.9B0F9812BA6B@turkos.aspodata.se> User-Agent: Mutt/1.5.23 (2014-03-12) Reply-To: geda-help AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-help AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, Feb 18, 2017 at 11:40:33PM +0100, karl AT aspodata DOT se wrote: > Karl: > > How do I print a sch file to a postscript file where the output is > > supposed to completely fill the page ? > > > > Formely, when gschem produced the postscript itself, I could do that > > by specifying "without extents". With current gschem I can print, > > but (probably) since I don't have cups installed, I just get some > > dumb dialogue where I cannot change anything. It gives a posttscript > > file in letter size and with some automatic margins. > > Ok, I'll start over. This is a question about the gaf postscript > export, not the pdf export. > > I have this small test schematics; > > $ cat tt.sch > v 20121203 2 > C 0 0 1 0 0 EMBEDDEDA4liggande.sym > [ > H 3 25 2 0 -1 -1 0 -1 -1 -1 -1 -1 3 > M 1800,37860 > L 0,37860 > L 0,36060 > H 3 25 2 0 -1 -1 0 -1 -1 -1 -1 -1 5 > M 1800,34260 > L 51840,34260 > L 51840,1860 > L 1800,1860 > L 1800,34260 > H 3 25 2 0 -1 -1 0 -1 -1 -1 -1 -1 3 > M 1800,60 > L 0,60 > L 0,1860 > H 3 25 2 0 -1 -1 0 -1 -1 -1 -1 -1 3 > M 53460,1860 > L 53460,60 > L 51660,60 > H 3 25 2 0 -1 -1 0 -1 -1 -1 -1 -1 3 > M 51660,37860 > L 53460,37860 > L 53460,36060 > ] > T 4000 31000 9 80 1 0 0 0 1 > ABC > $ > > If I do the obvious thing: > > gaf export -f ps -p iso_a4 -m 0 -o tt.ps tt.sch > > I get a postscript file which shows fine in gv but at printout, the > content is rotated 90degrees relative the paper. I have also stumbled upon the fact that different programs show postscript/pdf files differently. Ghostscript is a preprocessing program in Linux which outputs files to printer drivers (AFAICR), so you can use it to see your page orientation before printing. gs file.ps There are various scripts in the ghostscript distribution that can help to get what you want. Probably in your case it is simplest to use ghostscript itself to change page orientation. The work-around command is: gs -o x.ps -sDEVICE=pswrite -c '<> setpagedevice' -f tt.ps The variable '/Orientation' can take values as follows: 0-3 just to rotate page 0i-3i to additionally exchange x<->y Play with it and use gs to see what it does. > The problem does not appear when then schematics rotated in gschem, > i.e. when the in gschem view on screen is "portrait". > > Now, is this a bug in the cairo postscript routines or have I called > gaf export in the wrong way ? It's probably a bug. I'm not certain. HTH -- Vladimir