From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Convert eps to pdf
Date: Mon, 22 Nov 2010 12:02:13 +0100 [thread overview]
Message-ID: <AANLkTi=BP1Pa-tVZ9uN0Y12qX-gOqN7xd3rcuaWooxY+@mail.gmail.com> (raw)
In-Reply-To: <201011221151.49732.alan.braslau@cea.fr>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-11-22 11:02 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 [this message]
2010-11-22 15:38 ` Siep Kroonenberg
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='AANLkTi=BP1Pa-tVZ9uN0Y12qX-gOqN7xd3rcuaWooxY+@mail.gmail.com' \
--to=mojca.miklavec.lists@gmail.com \
--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).