fcprinter - Commandline Tool
fcprinter is a simple commandline tool written in PERL
to convert a text file in a
CSV format
into a PDF file. In a second step you can then print the cards.
The following commandline options are available:
- -front
- Convert to a PDF file with only the front pages.
- -back
- Convert to a PDF file with only the back pages.
- -both
- Convert to a PDF file with all pages. This is the default and needs a
printer capable of turning the pages automatically.
- -marks
- Print thin lines between the cards to aid in cutting the
cards. This happens only on the back pages. Default is off.
- -user={name}
- Print this username in the bottom area.
- -lesson={name}
- Print this lesson description in the bottom area.
- -date
- Print the current date in the bottom area. Default is off.
- -top-bold
- Print the topmost entry in bold face. Default is off.
- -scale={percent}
- Set a scale factor for the font. Default is 100.
To create a set of PDF files with the front and back sides from you
local CSV file lesson1.txt
you would use the following two commands:
fcprinter -front lesson1.txt >lesson1-front.pdf
fcprinter -back lesson1.txt >lesson1-back.pdf