LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-07-2003, 04:48 AM   #1
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Rep: Reputation: 30
Images->PDF


How can i create a single pdf from mutitple images?

For example from a set of image, let's say the first 5 being png, the others 2 jpeg? Every image should represent a page in the pdf.

I can easily convert them to postscript ( one ps for each images ), then i don't know how can i proceed.

Thx in adv.
 
Old 07-07-2003, 05:39 AM   #2
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
Very simple! you have somthing called ps2pdf. This will convert them to pdf.

But you want one pdf. I think you have two choises.
One, if you know latex, you can put those images in a tex file and use "pdflatex" to compile them to pdf.
You could also, if you have openoffice, cut and paste the images in a swritter file, and print the file to pdf.

Last edited by qanopus; 07-07-2003 at 05:46 AM.
 
Old 07-07-2003, 01:47 PM   #3
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by schatoor
Very simple! you have somthing called ps2pdf. This will convert them to pdf.

But you want one pdf. I think you have two choises.
One, if you know latex, you can put those images in a tex file and use "pdflatex" to compile them to pdf.
You could also, if you have openoffice, cut and paste the images in a swritter file, and print the file to pdf.
Thank you, now i've understood the trick ( i have used openoffice, then print to
ps ( to pdf it doesn't work - but no prob ) and ps2pdf12 ).

But unfortunatly images are littler than a4... and i'm not able ( for now ) to use latex ( soon or later i'll try ).

I would like to create pages as big as the biggest image, if possible.
 
Old 07-07-2003, 04:59 PM   #4
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
Well, fist I wanted to suggest you open the picture with the gimp save them as ps and convert them to pdf. But I tought to my self that you won't be able to make every picture have it's own page like that.
But what you could try in gimp is make the individual pages as big as you like. I don't know if this will work though.
Well, good luck.
 
Old 07-08-2003, 10:00 AM   #5
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by schatoor
Well, fist I wanted to suggest you open the picture with the gimp save them as ps and convert them to pdf. But I tought to my self that you won't be able to make every picture have it's own page like that.
But what you could try in gimp is make the individual pages as big as you like. I don't know if this will work though.
Well, good luck.
Thank you again. Meanwhile i had another idea: i could try setting the borders ( margins? ) to 0 ( considering the biggest image ) with openoffice.
 
Old 07-11-2003, 05:48 PM   #6
mike@wales
LQ Newbie
 
Registered: May 2003
Posts: 23

Rep: Reputation: 15
i've been looking to do the same thing

hope you've found a way to convert images into pdf. I've been looking to do the same thing. I tried to use open office but found it was too laborious.

My solution is to use a utility called pstill which can be found here: http://www.wizards.de/~frank/pstill.html. Its free to use for private and educational use. The output is quite good and it supports batch files
 
Old 07-12-2003, 10:24 AM   #7
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Original Poster
Rep: Reputation: 30
Thank you for the info ( the link should be changed to http://www.pstill.com/ ).

Downloading now.

Unfortunatly is not GPL, but at least it's freeware for me ( only for linux, for windows no ).
 
Old 07-12-2003, 12:10 PM   #8
mike@wales
LQ Newbie
 
Registered: May 2003
Posts: 23

Rep: Reputation: 15
shame its not gpl

I noticed you were debian and thought perhaps i shouldn't have mentioned commercial software.

Hope it helps
 
Old 07-14-2003, 02:28 AM   #9
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Original Poster
Rep: Reputation: 30
Re: shame its not gpl

Quote:
Originally posted by mike@wales
I noticed you were debian and thought perhaps i shouldn't have mentioned commercial software.

Hope it helps
No problem... If there is nothing else. I use Debian mainly cause i started to play with linux with it, even if at the beginning i had "some" problem.

Recently i have tried other distro's ( Slackware 9 and Mandrake 9.1 ) and they are both really unstable ( and slackware unusable: it auto reboots after a bit ).

Last edited by mtb; 07-14-2003 at 05:13 AM.
 
Old 07-14-2003, 11:09 AM   #10
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
Use Scribus, it has 100% compatibility of the PDF/X-3 standard which means it will display the exact same way on a 'nix machine, Windows machine, and even a mac. Also, it is GPL and great software. (I didn't know about Scribus untill I checked out this forum and started using it.) It is on my Linux killer app list.
http://web2.altmuehlnet.de/fschmid/
 
Old 08-20-2003, 06:02 PM   #11
zopista
LQ Newbie
 
Registered: May 2003
Location: Wellington, New Zealand
Distribution: Debian sometimes, RedHat mostly ... playing with Mandrake on my laptop
Posts: 5

Rep: Reputation: 0
You might also want to try htmldoc. which converts html to pdf. so you can generate a script to create an html page for each image and then run the html through htmldoc

htmldoc

Martin
 
Old 01-21-2004, 11:44 AM   #12
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Original Poster
Rep: Reputation: 30
I have found now the best ( imo ) way:

Convert every image to ps ( maybe not needed, but it's easy with convert ( imagemagick package ) and maybe even faster with netpbm tools if there is support of ps ).

Then:
Quote:
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pswrite \
-sOutputFile=bla.ps -f foo1.ps foo2.ps
to obtain a multiple page ps
Quote:
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite \
-sOutputFile=bla.pdf -f foo1.pdf foo2.pdf
to obtain a multiple page pdf ( this time it joins 2 pdf, maybe it works also with ps or images )
 
  


Reply



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
Can't create readable pdf from latex. Images come out bad mrground Linux - Software 7 10-06-2005 02:26 AM
Convert cd images to dvd images rcsuk Debian 2 07-11-2005 10:34 AM
Foxit PDF Reader 1.3: A Nice PDF Viewer Cinematography Linux - Software 6 05-03-2005 04:36 PM
How do I unpack pdf.pdf files corbis_demon Linux - General 5 10-29-2004 09:12 PM
Pdf quietguy47 Linux - General 1 03-07-2003 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration