a2pdf is a handy tool that helps you convert ASCII text into PDF format. You can even add line or page numbers and highlight Perl syntax if you want to! How cool is that?
To use a2pdf, the command looks like this:
a2pdf [options] input.txt >output.pdf
a2pdf recognizes several command line options:
--help
: This will print out how to use the program and exit.--doc
: Want full documentation? This option shows it and exits.--version
: Displays the version number of a2pdf.--title [your_title]
: Sets a title in the page header. If you skip this, it'll use the file name or 'STDIN' if you're using standard input.--timestamp
: This boolean option adds a timestamp to the page header if activated. It's off by default.--icon [path]
: Add an image to the top left of each page. It supports various formats!--icon-scale [value]
: Control how big your icon image appears; default is 0.25.--header | --noheader | --notitle
: Adds a header with the page title, timestamp, and icon unless turned off.--footer | --nofooter | --page-numbers | --nopage_numbers
: Enables current page numbering at the bottom of each page, which is on by default.--line-numbers | --noline-numbers
: Line numbers show up by default but can be turned off.--perl-syntax | --noperl-syntax
: Turns Perl syntax highlighting on (default) or off.--page-height [height]
: Set your page height in points (A4 is 842 points).--page-width [width]
: Set your page width in points (A4 is 595 points).If you'd like to ignore formfeed characters when converting your text, just use:
<
Go to the Softpas website, press the 'Downloads' button, and pick the app you want to download and install—easy and fast!
SoftPas is your platform for the latest software and technology news, reviews, and guides. Stay up to date with cutting-edge trends in tech and software development.
Subscribe to newsletter
© Copyright 2024, SoftPas, All Rights Reserved.