shell script to generate pdf

Reply

Join Date: Feb 2008
Posts: 4
Reputation: php.mca is an unknown quantity at this point 
Solved Threads: 0
php.mca php.mca is offline Offline
Newbie Poster

shell script to generate pdf

 
0
  #1
Mar 13th, 2008
Can any one tell me how to convert any types of file to pdf? I want a shell script or a software in opensource?
is there any software that can do this?

Please help me. I would be very much thankfull to u.

thanx in advance
Dushyant Joshi
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 399
Reputation: eggi will become famous soon enough eggi will become famous soon enough 
Solved Threads: 47
eggi eggi is offline Offline
Posting Whiz

Re: shell script to generate pdf

 
0
  #2
Mar 14th, 2008
Hey there,

Do you just want to take your work and put it in a pdf? You'd just need the Adobe Acrobat software.

I'm not sure how to create a pdf in a shell script, if that's what you mean.

Best wishes,

Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this Free Report now!
Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 372
Reputation: TheOgre is a jewel in the rough TheOgre is a jewel in the rough TheOgre is a jewel in the rough 
Solved Threads: 6
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: shell script to generate pdf

 
0
  #3
Mar 14th, 2008
You can use ipdf (not sure of the project page, but it's in the ports tree in FreeBSD.)

Here's how I use it in a bash script:

Shell Scripting Syntax (Toggle Plain Text)
  1. ipdf -o daily_report.pdf -m letter-p -f 11 -F Courier -s 'Daily user report from MyServer' -a 'My Name' -t 'Daily User Report' daily_report.txt

This takes the contents of a text file (daily_report.txt) and outputs it to daily_report.pdf with the various options (portrait, Courier font, ps 11, with my name as the creator, and the name of the report embedded in the "properties" info.)

Once you install it, the manpage gives quite detailed information on all the various options/switches.

HTH
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 4
Reputation: php.mca is an unknown quantity at this point 
Solved Threads: 0
php.mca php.mca is offline Offline
Newbie Poster

Re: shell script to generate pdf

 
0
  #4
Mar 14th, 2008
Thanq very much for the replies.

Can the script convert any documents to pdf?

for e.g.,
.txt,.doc,.pst,.xls, and all others...which contains text or images..


regards
dushyant joshi
Last edited by php.mca; Mar 14th, 2008 at 2:09 am. Reason: gave examples
Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 372
Reputation: TheOgre is a jewel in the rough TheOgre is a jewel in the rough TheOgre is a jewel in the rough 
Solved Threads: 6
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: shell script to generate pdf

 
0
  #5
Mar 14th, 2008
It looks like it only converts text files, according to the project page at http://www.hoopajoo.net/projects/ipdf.html

"Creates indexed pdf documents from text files. Designed to aid creating an electronic distribution method for legacy system reports, since many mainframe type print spools are plain text. Allows indexing, customizing page settings, font size, font face, and super-imposing text over an image in the case of using pre-printed forms. Supports unlimited levels of indexing bookmarks in documents and system/user configuration files. Suitable for use in an intranet gateway for generating PDF documents in real-time."
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Shell Scripting Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC