ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Siep Kroonenberg <siepo@cybercomm.nl>
To: ntg-context@ntg.nl
Subject: Re: Convert eps to pdf
Date: Mon, 22 Nov 2010 16:38:16 +0100	[thread overview]
Message-ID: <20101122153816.GA6630@molly> (raw)
In-Reply-To: <AANLkTi=BP1Pa-tVZ9uN0Y12qX-gOqN7xd3rcuaWooxY+@mail.gmail.com>

On Mon, Nov 22, 2010 at 12:02:13PM +0100, Mojca Miklavec wrote:
> 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.

For pdf to eps, use pdftops from the xpdf suite
(http://www.foolabs.com/xpdf/). 

I wrote a Ruby script epspdf with a gui Tcl/Tk wrapper epspdftk
(http://tex.aanhet.net/epspdf/) for arbitrary conversions between
eps, ps and pdf in any direction, with optional cropping and
grayscaling. Epspdf and epspdftk are included in TeX Live.

-- 
Siep Kroonenberg
___________________________________________________________________________________
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
___________________________________________________________________________________


      reply	other threads:[~2010-11-22 15:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-22 10:51 Alan BRASLAU
2010-11-22 11:02 ` Mojca Miklavec
2010-11-22 15:38   ` Siep Kroonenberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101122153816.GA6630@molly \
    --to=siepo@cybercomm.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).