|
NAMErem2pdf - draw a PDF calendar from Remind outputSYNOPSISremind -pp [options] file | rem2pdf [options] > output.pdf DESCRIPTIONrem2pdf reads the standard input, which should be the results of running remind with the -p, -pp or -ppp options. It emits PDF code that draws a calendar to standard output.rem2pdf uses the Pango text formatting library (<https://pango.gnome.org/>) and the Cairo graphics library (<https://www.cairographics.org/>) to produce its output. The CPAN modules Pango (<https://metacpan.org/pod/Pango>) and Cairo (<https://metacpan.org/pod/Cairo>) are prerequisites. rem2pdf assumes that its input stream is valid UTF-8. If this is not the case, it may render output incorrectly or even fail to render output at all. OPTIONS
USAGETo use rem2df, pipe the output of remind with one of the -p, -pp or -ppp options into rem2pdf. The PDF output will be sent to standard output. So for example, to print a 12-month calendar for the year 2030, use:remind -pp12 /dev/null Jan 2030 | rem2pdf -e -l -c=3 | lpr You can concatenate multiple remind runs. For example, the following will produce a PDF calendar for January through March of 2023, and June of 2023 (for a total of four pages); (remind -pp3 Jan 2023 /dev/null ; \ remind -p June 2023 /dev/null) | rem2pdf -e -l -c=3 > cal.pdf FORMATTED TEXTrem2pdf supports a SPECIAL reminder type called PANGO. This lets you format text using the Pango markup language, described at <https://docs.gtk.org/Pango/pango_markup.html>. Here are some examples:REM Mon SPECIAL PANGO <b>Bold</b> and <i>italic</i> REM Tue SPECIAL PANGO <span face="zapf chancery">Fancy</span> REM Wed SPECIAL PANGO <span foreground="red"><b>Bold red</b></span> Other back-ends such as rem2ps and rem2html will ignore PANGO special reminders. Neither remind nor rem2pdf will check the markup to ensure it is syntactically correct. If you use invalid Pango markup, the Pango library will print a warning and rem2pdf will not render any output for the invalid reminder. ABSOLUTELY-POSITIONED TEXTIf your PANGO special reminder starts with "@ x,y" where x and y are floating-point numbers, then the Pango marked-up test is positioned absolutely with respect to the day's box (and is not counted when calculating the box's height.)A positive x value positions the left edge of the text x points to the right of the left side of the calendar box, while a negative x value positions the right edge of the text x points to the left of the right side of the calendar box. A positive y value positions the top edge of the text y points below the top of the calendar box, while a negative y value positions the bottom edge of the text y points above the bottom of the calendar box. If you use absolutely-positioned text, it's up to you to make sure it doesn't overlap other text; rem2pdf takes no special precautions to prevent this. As an example, this places Sunrise and Sunset times at the bottom left of each calendar box: REM SPECIAL PANGO @1,-1 <span size="4800"><i>Rise [sunrise($U)] Set [sunset($U)]</i></span> (Note that Pango expresses font sizes in 1024's of a point, so a size of 4800 works out to about 4.6 points.) AUTHORRem2PDF was written by Dianne Skoll <dianne@skoll.ca>SEE ALSOremind, rem2ps, rem2html, tkremind
Visit the GSP FreeBSD Man Page Interface. |