[lug] image to pdf?
Ed Hill
ed at eh3.com
Tue Mar 19 11:13:44 MST 2002
On Tue, 2002-03-19 at 10:46, D. Stimits wrote:
> What would be the recommended means of taking a color image and creating
> a pdf from it on linux? I have the image in multiple formats, though eps
> is not one of them. Is this "a job for LaTeX"? Or some other utility?
Hi Dan,
Heres two [1] options:
convert file.jpg file.ps
ps2pdf file.ps
or [2]
convert file.jpg file.ps
ps2epsi file.ps
in tex_file.tex:
\usepackage[dvips]{epsfig}
\def\scalefig#1{\epsfxsize #1\textwidth}
\begin{figure}[htbp]
\centerline{ \scalefig{.8}\epsfbox{../cord_none.eps} }
\caption{}
\end{figure}
latex tex_file
dvips -Ppdf -G0 tex_file
ps2pdf tex_file.ps
I'd use the latter only if you need to add a caption or some other
text. I included it only because its been very helpful in my papers.
hth,
Ed
[1] - you'll want to have ImageMagick and ghostscript (v7.x) installed
[2] - this may not be the exact syntax, but its very close
--
Edward H. Hill III, PhD
Post-Doctoral Researcher | Email: ed at eh3.com, ehill at mines.edu
Division of ESE | URL: http://www.eh3.com
Colorado School of Mines | Phone: 303-273-3483
Golden, CO 80401 | Fax: 303-273-3311
Key fingerprint = 5BDE 4DA1 66BE 4F7B BC17 3A0C 932B 7266 1E76 F123
More information about the LUG
mailing list