Converts Pod to PDF format with extensions to include inline images.
pod2pdf [options] filename.pod >filename.pdf perldoc -u Module::Name | pod2pdf [options] >filename.pdf
pod2pdf accepts the following command-line options:
--version--output-file--header | --noheader--noheader to disable.
--footer | --nofooter--nofooter to disable.
--title--footer-text--icon--icon-scale--timestamp--margins
--left-margin
--right-margin
--top-margin
--bottom-margin--margins option will set all margins to the same value, however individual margins may be altered with the appropriate options. Values must be given in points. The default value for the left and right margins is 48 points (0.75"), for the top and bottom margins the default value is 60 points.
--page-height--page-width--page-size--page-orientation--page-height and --page-width options, i.e. the option set --page-height=300 --page-width=100 --page-orientation=landscape will set the page height to 100 points and the width to 300 points to force landscape format.
Sets of command-line options may be saved into configuration files.
A configuration file contains options in the same format as used by pod2pdf on the command-line, with one option given on each line of the file, e.g.
--page-size A5 --page-orientation landscape
To use a config file, invoke pod2pdf with the option @/path/to/configfile.conf.
For example, if you wanted to always include a company logo, timestamp, and copyright notice in your PDF files, create a file mycompany.conf containing the following:
--icon "/path/to/your/logo.png" --footer-text "Copyright 2007 MyCompany Limited" --timestamp
Then invoke pod2pdf as:
pod2pdf @/path/to/mycompany.conf input.pod >output.pdf
If you create a config file called pod2pdf.conf and place this in the same directory as the pod2pdf script, it will be loaded as the default configuration.
In addition to the standard Pod formatting commands, the following directives can be used:
Jon Allen - freelance Perl & Catalyst developer, web designer, and technical manager.
Available for contract work and consultancy.
Contact jj@jonallen.info.
Follow me on Twitter at twitter.com/pennysarcade.