Raku Land

Pod::To::PDF::Lite

cpan:WARRINGD

TITLE

Pod::To::PDF::Lite - Pod to PDF draft renderer

Description

Renders Pod to PDF draft documents via PDF::Lite.

Usage

From command line:

$ raku --doc=PDF::Lite lib/to/class.rakumod | xargs xpdf

From Raku:

use Pod::To::PDF::Lite;

=NAME
foobar.pl

=SYNOPSIS
    foobar.pl <options> files ...

pod2pdf($=pod).save-as: "foobar.pdf";

Exports class Pod::To::PDF::Lite; sub pod2pdf; # See below

From command line:

$ raku --doc=PDF::Lite lib/to/class.rakumod | xargs xpdf

From Raku code, the pod2pdf function returns a PDF::Lite object which can be further manipulated, or saved to a PDF file.

use Pod::To::PDF::Lite;
use PDF::Lite;

=NAME
foobar.raku

=SYNOPSIS
    foobarraku <options> files ...

my PDF::Lite $pdf = pod2pdf($=pod);
$pdf.save-as: "class.pdf"

Restrictions

PDF::Lite minimalism, including: