•
•
•
•
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
![]() |
•
•
Join Date: Oct 2007
Posts: 275
Reputation:
Rep Power: 1
Solved Threads: 26
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
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!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
•
•
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 334
Reputation:
Rep Power: 8
Solved Threads: 5
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:
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
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
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
•
•
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 334
Reputation:
Rep Power: 8
Solved Threads: 5
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."
"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
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- This Should be Easy for You Guys! (Linux Servers and Apache)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
Other Threads in the Shell Scripting Forum
- Previous Thread: What is the use of unix shell scripting with oracle?
- Next Thread: help with a script


Linear Mode