User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 427,197 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,219 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 710 | Replies: 4
Reply
Join Date: Feb 2008
Posts: 4
Reputation: php.mca is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
php.mca php.mca is offline Offline
Newbie Poster

shell script to generate pdf

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2007
Posts: 275
Reputation: eggi is on a distinguished road 
Rep Power: 1
Solved Threads: 26
eggi eggi is online now Online
Posting Whiz in Training

Re: shell script to generate pdf

  #2  
Mar 13th, 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!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
Reply With Quote  
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 334
Reputation: TheOgre has a spectacular aura about TheOgre has a spectacular aura about TheOgre has a spectacular aura about 
Rep Power: 8
Solved Threads: 5
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: shell script to generate pdf

  #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:

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  
Join Date: Feb 2008
Posts: 4
Reputation: php.mca is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
php.mca php.mca is offline Offline
Newbie Poster

Re: shell script to generate pdf

  #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 1:09 am. Reason: gave examples
Reply With Quote  
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 334
Reputation: TheOgre has a spectacular aura about TheOgre has a spectacular aura about TheOgre has a spectacular aura about 
Rep Power: 8
Solved Threads: 5
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: shell script to generate pdf

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Shell Scripting Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Shell Scripting Forum

All times are GMT -4. The time now is 10:34 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC