Create pdf of a jpg image in shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Create pdf of a jpg image in shell script
# 1  
Old 01-26-2015
Create pdf of a jpg image in shell script

Dear Team,

Can any one please let me know, if there is any way to create pdf of a Jpg image file in shell script.

I work on Solaris, Korn Shell.

Currently we are using sunpcl2pdf.exe to create PDF from PCL(Printer Control Language) files.

But we are searching for some different way to create PDF to generate Invoice or other reporting information using records.There we need to put company logo in pdf. Logo is in jpg format.

Any solution will be very much helpful for me.


Many Thanks
Uttam Maji
# 2  
Old 01-26-2015
the only way I know is install the imagemagick package

Code:
sudo apt-get install imagemagick

and then run

Code:
convert image1.jpg image1.pdf

# 3  
Old 01-26-2015
Obviously apt-get will not be available on Solaris so you may need to download and compile the source.

Also note that imagemagick has been replaced with the newer (faster and better) graphicsmagick, you can see install instructions and download the source from Installing GraphicsMagick

The commands are very similar to imagemagick and typically just involve appending a gm eg:

Code:
gm convert image1.jpg image.pdf

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Create movie from jpg (or other picture format) file

hi linux expert is there any program for create movie file from pictures file (like jpg)? Many Thanks samad (1 Reply)
Discussion started by: abdossamad2003
1 Replies

2. Shell Programming and Scripting

How to create or convert to pdf files from csv files using shell script?

Hi, Can anyone help me how to convert a .csv file to a .pdf file using shell script Thanks (2 Replies)
Discussion started by: ssk250
2 Replies

3. UNIX for Dummies Questions & Answers

Converting pdf to jpg in multiple directories?

Hi! On my Ubuntu I have thousands of files in a couple hundred directories. I'm trying to convert the pdf's to jpg's. I used this command in terminal: for fname in *.pdf; do convert $fname ${fname%.pdf}.jpg; doneIt works great but the problem is I have to run this in terminal for each... (2 Replies)
Discussion started by: martinsmith
2 Replies

4. Shell Programming and Scripting

matching image files to create one image

Hi, I have two sets of image files. Both sets have names A to Z but set 1 ends with .cdt.png and set 2 ends with .matrix.png. I want set 1 to match with set 2 if the names match (i.e. A.cdt.png will match with A.matrix.png) and with the convert image tool (program for images), it will merge the... (6 Replies)
Discussion started by: kylle345
6 Replies

5. Shell Programming and Scripting

Create a dummy file in all directories that include a .jpg

Hello. My latest project has me with the need for the following script. Basically, any directory that includes a .jpg file needs to also have a ".picture" file created (if it doesn't exist). Here's an example of what I need. /mnt/user/Pictures/2011/Hawaii - 2011/.picture... (11 Replies)
Discussion started by: Davinator
11 Replies

6. Shell Programming and Scripting

Simple BASH shell script to rename webcam jpg and copy into a new directory.

System: Ubuntu Intrepid Ibex I'm running webcamd as a sort of "security" program, but I need a script that will archive my webcam.jpg files. So, take the following file: /home/slag/www/webcam.jpg Rename it--preferably with a time stamp. Place it in say: /home/slag/www/history/ ... (4 Replies)
Discussion started by: robfindlay
4 Replies

7. UNIX for Advanced & Expert Users

Create an Ignite image on tape from Online IgniteUX image

Hi, (HP-UX 11.11) I need to create a tape image of an igniteUX image created on our igniteUX server. That is to say. I have a "Online" image of the igniteUX of the targeted system but I now need to copy it to a useable TAPE (igniteUX) image so i can build an other server from it that is not... (3 Replies)
Discussion started by: Andrek
3 Replies

8. AIX

jpg image

Hello I would like to see an jpeg image with aix. It is possible ? how can i do ? thank you (4 Replies)
Discussion started by: pascalbout
4 Replies

9. UNIX for Dummies Questions & Answers

PDF/EPS to GIf/JPG Help!!

Hello. I have a large number of EPS files and a lesser number of PDFs that I need to convert to GIFs/JPGs using a Unix system. Is there a unix utility or application out there that can do this conversion? Thank you in advance for any help you can provide. -Pook (1 Reply)
Discussion started by: PookJP
1 Replies
Login or Register to Ask a Question