LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-28-2005, 03:59 PM   #1
parker.andrew
LQ Newbie
 
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
Image to PDF


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 image in one PDF file out. This can work in batch mode or single file mode as long as it can be fired off from PHP.

Does anyone know of anything like this?

Thanks,
Andy
 
Old 03-28-2005, 04:30 PM   #2
ricstirato
Member
 
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
Why use a shell command if you can do this from inside PHP?
Take a look at FPDF (http://www.fpdf.org/)
This is a PHP library for PDF generation (coded in PHP, no special extension needed).

For your purpose, creating the PDF, putting the image where you want (maybe scale it) and doing the output (to file or directly to browser) should be done in only a few lines.

Regards
ric.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying image using acroread from pdf file xptools Linux - General 9 04-15-2009 04:27 AM
Kernel-image renamed to linux-image? powadha Debian 2 08-02-2005 05:07 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
Best image viewer for very large image files? andvaranaut Linux - Software 1 02-21-2004 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:14 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
Open Source Consulting | Domain Registration