[lug] image to pdf?

D. Stimits stimits at idcomm.com
Tue Mar 19 11:23:15 MST 2002


All of a sudden it looks like lots of replies!

Ed Hill wrote:
> 
> 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

Very interesting...I didn't know about the convert utility. For a moment
I thought you were just saying "find a way to convert it", and then
realized it is an actual command.

> 
> 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.

I'm going to try this, it might be interesting.

D. Stimits, stimits at idcomm.com

> 
> 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
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list