From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63819 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Convert eps to pdf Date: Mon, 22 Nov 2010 12:02:13 +0100 Message-ID: References: <201011221151.49732.alan.braslau@cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1290423754 24946 80.91.229.12 (22 Nov 2010 11:02:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2010 11:02:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 22 12:02:30 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PKUAH-0005rR-JI for gctc-ntg-context-518@m.gmane.org; Mon, 22 Nov 2010 12:02:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1863BCA863; Mon, 22 Nov 2010 12:02:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id S+hRsLFdqkTR; Mon, 22 Nov 2010 12:02:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 148A3CA86B; Mon, 22 Nov 2010 12:02:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 782C2CA868 for ; Mon, 22 Nov 2010 12:02:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 60QuGHqnV8Ke for ; Mon, 22 Nov 2010 12:02:18 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 66234CA863 for ; Mon, 22 Nov 2010 12:02:18 +0100 (CET) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAMB2EBX032712 for ; Mon, 22 Nov 2010 12:02:17 +0100 Original-Received: by qwi2 with SMTP id 2so2376097qwi.14 for ; Mon, 22 Nov 2010 03:02:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=RTKbA+YlriicpPW7eXlEuSrwYYORzCnViRKiqD+X87I=; b=ZJTRO77fxOmQ4zG4M1fgL217i2XAEz/NjUemUE9D5OyeC9xpomw/tyX+twBIRRcMOm KmNXOvLVEucOVXa/1Tf4q1rjfTRbQV2M2Rk0tBTLFt5L8Ax8eDnbWKHIMxtxnuZUP7tz dVhZz6iTuGEDVKKjAGymKIluE+JHYNCLdwanw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=AUSW9vFPHvaT4mU55Sg3C7aTFDsa3G9P6ENlsQkUU8xEZZBf59NmgAh11HOWuVRmQk yyER2ISexlMtTleo2NJGQxrw3MX1hr2CwgaIITgpAhrAC/0u0DwGCcwEX54Hg4x8EGh2 CzHlN/FgYeojPkuqShPHtKPoFKdeYVDKaRSOE= Original-Received: by 10.229.98.206 with SMTP id r14mr4886423qcn.162.1290423733959; Mon, 22 Nov 2010 03:02:13 -0800 (PST) Original-Received: by 10.229.230.18 with HTTP; Mon, 22 Nov 2010 03:02:13 -0800 (PST) In-Reply-To: <201011221151.49732.alan.braslau@cea.fr> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eDyb2fFP - a3a6503a418d - 20101122 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:63819 Archived-At: On Mon, Nov 22, 2010 at 11:51, Alan BRASLAU wrote: > ConTeXt mkiv will take an encapsulated postscript (eps) file through > \externalfigure [myfigure.eps] > and creates a (compressed) pdf version as m_k_i_v_myfigure.pdf > that conserves the vectorial components of the eps file. > > Other standard conversion tools, notably those based on ghostscript, > generally create a bitmap image with pretty horrible results. > > The vectorial conversion must be fully trivial, but I am ignorant > of the tools available for this manipulation (other than ConTeXt!), > as well as the inverse (pdf->eps) conversion. Perhaps I am simply > missing some simple (ghostscript, pstoedit, ...) option. 1.) ps2pdf -dEPSCrop file.eps file.pdf On some systems you have "epstopdf". 2.) gs -dSAFER -dBATCH -dNOPAUSE -dEPSCrop \ -sDEVICE=pdfwrite -sOutputFile=file.pdf file.ps I use the same command for conversion into bitmap figures: gs -dSAFER -dBATCH -dNOPAUSE -dEPSCrop \ -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -r500 \ -sDEVICE=pngalpha -sOutputFile=file.png file.ps Usually the conversion from PDF to EPS is slightly problematic for (to me) unknow reason. Mojca ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________