LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   JPEG to PDF on Linux? (https://www.linuxquestions.org/questions/linux-software-2/jpeg-to-pdf-on-linux-170753/)

hpnadig 04-15-2004 10:14 PM

JPEG to PDF on Linux?
 
One way I've been doing this is by importing the JPEGS to Open Office and then printing it as PDF. Is there any other way of doing it? especially when I need to get each JPEG on a page of PDF...

ilikejam 04-15-2004 10:30 PM

Hi.

It's not very elegant, but you could use 'a2ps' to convert the JPEGs to PostScript, then use ps2pdf to convert the PostScript to PDF.

e.g.
#!/bin/bash
a2ps -o out.ps inputjpeg.jpg
ps2pdf out.ps

That will leave you with a PDF called out.pdf

You'll have to look at the man pages for both programs to fine tune the presentation, but it does work.

You'll also have to have ImageMajick installed to do the conversion from JPEG to PostScript. (It's probably installed already).

Dave

mgatny 04-16-2004 12:12 AM

The ImageMagick package also has a program called 'convert' which converts image formats, including JPEG and PDF.

ilikejam 04-16-2004 12:23 AM

Good call.

profjohn 04-16-2004 12:26 AM

XnView does conversion in an easy and quick way. From and to most any format. Get yours at:

http://www.xnview.com/

profjohn 04-16-2004 12:28 AM

Oops. Sorry. Apparently it does not do PDF...


All times are GMT -5. The time now is 02:26 AM.