LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-15-2004, 11:14 PM   #1
hpnadig
Member
 
Registered: Nov 2003
Location: India
Distribution: Fedora
Posts: 43

Rep: Reputation: 15
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...
 
Old 04-15-2004, 11:30 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
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
 
Old 04-16-2004, 01:12 AM   #3
mgatny
Member
 
Registered: Mar 2004
Posts: 41

Rep: Reputation: 15
The ImageMagick package also has a program called 'convert' which converts image formats, including JPEG and PDF.
 
Old 04-16-2004, 01:23 AM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Good call.
 
Old 04-16-2004, 01:26 AM   #5
profjohn
Member
 
Registered: Mar 2004
Location: Jinhua, People's Republic of China
Distribution: MDK, RH, KNPX
Posts: 161

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

http://www.xnview.com/
 
Old 04-16-2004, 01:28 AM   #6
profjohn
Member
 
Registered: Mar 2004
Location: Jinhua, People's Republic of China
Distribution: MDK, RH, KNPX
Posts: 161

Rep: Reputation: 30
Oops. Sorry. Apparently it does not do PDF...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF in Linux Mercurius Linux - Software 1 10-12-2005 07:58 PM
pdf in LInux CyGia Linux - General 13 09-14-2005 11:21 AM
pdf in linux sh4d0w13 Linux - Newbie 3 08-19-2005 02:26 AM
Foxit PDF Reader 1.3: A Nice PDF Viewer Cinematography Linux - Software 6 05-03-2005 05:36 PM
How do I unpack pdf.pdf files corbis_demon Linux - General 5 10-29-2004 10:12 PM


All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration