LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-06-2010, 10:48 AM   #1
Htoad2020
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Images to PDF on extrunal hard drive


I'm looking for an application that runs on Linux that will convert image files (TIF, JPEG, GIF, etc.) to single page PDF files. That is one or more images in one PDF file out. I'm trying to get a program that can run on a extrunal hard drive.
I don't know what PHP is?

Does anyone know of anything like this?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-06-2010, 12:45 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
PHP is a server side scripting language and would have no bearing with what you are attempting to do.

I believe your best bet might be with open office, I believe open office writer can save documents as .pdf, just import an image into a writer document and save as .pdf... I think this might be the easiest solution for you. there might be alternative solutions around however.

It might be easier to give a better solution if you could state exactly what you are trying to accomplish with this.
 
2 members found this post helpful.
Old 08-06-2010, 01:23 PM   #3
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,831
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
You could also use PDF tk...

http://portableapps.com/apps/office/...ilder_portable

That download is Windows only. If you're on a distro like ubuntu you can install the command line version....
Code:
sudo apt-get install pdftk
Additionally if you're not comfortable working in the terminal then you may want a GUI front end for PDFTK. Here's the best GUI I could find so far. Not that great but better than nothing...

http://sourceforge.net/projects/guipdftk/

If you are comfortable in the terminal and like using scripting here's a pdftk tutorial which is useful...

http://www.accesspdf.com/pdftk/


EDIT: sorry this only works with PDF files which isn't what you're looking for...


--------------------------------------------------------------------------------------------------
Command line tool imagemagick does what you need if they're images.
Installation:
Code:
sudo apt-get install imagemagick
Usage: (coverts all images into one pdf)
Code:
convert *.jpg foo.pdf
Usage: (converts each image into an individual pdf)
This is if you want .jpg to be replaced with .pdf. This command will work with any image. Replace .jpg with whatever image extension you want.
Code:
for x in `ls -w 1 *.jpg`;do convert $x `echo $x | sed 's/.jpg$/.pdf/'`;done
Here is the previous command but a little simpler. This is if you want the file extension to be .jpg.pdf.
Code:
for x in `ls -w 1 *.jpg`;do convert $x $x.pdf;done
Here's your bulk solution for converting all image files to pdf individually...
Code:
for x in `ls -w 1 *.jpg *.jpeg *.png *.gif *.tif *.tiff`;do convert $x $x.pdf;done
As you can see with a little bit of terminal ninja scripting you can get the job done relatively effortlessly. (search shell script howto in google)

Last edited by sag47; 09-27-2010 at 04:09 AM.
 
1 members found this post helpful.
Old 08-06-2010, 01:42 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
also The Gimp will export to ps ( post script )
then "ps2pdf" will save it to a pdf --- should be installed --

there also is "tiff2pdf" --- most likely already installed ---
http://libtiff.maptools.org/man/tiff2pdf.1.html
 
Old 08-12-2010, 03:05 AM   #5
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,831
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Don't forget to mark this as solved if you found your solution.

That will allow other users to find a solution to a similar problem more easily if they see the thread is solved.
 
  


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
Batch images to pdf / pdf to txt geeeeky.girl Linux - Software 10 12-24-2009 02:40 AM
Saving images to hard drive cherith.brook Linux - Newbie 1 10-23-2007 06:06 PM
Looking for a program to mount .iso images from hard drive jturnbul Linux - Software 5 05-27-2006 11:45 PM
Install Debian from images on hard drive? rconan Debian 3 01-10-2006 12:54 PM
How to use ISO images for updates after hard drive installation? Nandor Fedora - Installation 9 08-01-2005 03:48 PM


All times are GMT -5. The time now is 04:04 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