Read-only release history for PDF-FromHTML
Perl
Switch branches/tags
stable gitpan_version/0.31 gitpan_version/0.30 gitpan_version/0.26 gitpan_version/0.24 gitpan_version/0.23 gitpan_version/0.22 gitpan_version/0.21 gitpan_version/0.20 gitpan_version/0.12 gitpan_version/0.11 gitpan_version/0.10 gitpan_version/0.08 gitpan_version/0.07 gitpan_version/0.06 gitpan_version/0.05 gitpan_version/0.04 gitpan_version/0.02 gitpan_version/0.01 gitpan_version/0.00_04 gitpan_version/0.00_03 gitpan_version/0.00_02 gitpan_version/0.00_01 cpan_version/0.31 cpan_version/0.30 cpan_version/0.26 cpan_version/0.24 cpan_version/0.23 cpan_version/0.22 cpan_version/0.21 cpan_version/0.20 cpan_version/0.12 cpan_version/0.11 cpan_version/0.10 cpan_version/0.08 cpan_version/0.07 cpan_version/0.06 cpan_version/0.05 cpan_version/0.04 cpan_version/0.02 cpan_version/0.01 cpan_version/0.00_04 cpan_version/0.00_03 cpan_version/0.00_02 cpan_version/0.00_01 cpan_path/AUTRIJUS/PDF-FromHTML-0.12.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.11.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.10.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.08.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.07.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.06.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.05.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.04.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.02.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.01.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.00_04.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.00_03.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.00_02.tar.gz cpan_path/AUTRIJUS/PDF-FromHTML-0.00_01.tar.gz cpan_path/AUDREYT/PDF-FromHTML-0.31.tar.gz cpan_path/AUDREYT/PDF-FromHTML-0.30.tar.gz cpan_path/AUDREYT/PDF-FromHTML-0.26.tar.gz cpan_path/AUDREYT/PDF-FromHTML-0.24.tar.gz cpan_path/AUDREYT/PDF-FromHTML-0.23.tar.gz cpan_path/AUDREYT/PDF-FromHTML-0.22.tar.gz cpan_path/AUDREYT/PDF-FromHTML-0.21.tar.gz cpan_path/AUDREYT/PDF-FromHTML-0.20.tar.gz alpha AUTRIJUS AUDREYT
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
inc/Module
lib/PDF
script
t
Changes
MANIFEST
META.yml
Makefile.PL
README
SIGNATURE

README

NAME
    PDF::FromHTML - Convert HTML documents to PDF

SYNOPSIS
        my $pdf = PDF::FromHTML->new( encoding => 'utf-8' );

        # Loading from a file:
        $pdf->load_file('source.html');

        # Or from a scalar reference:
        # $pdf->load_file(\$input);

        # Perform the actual conversion:
        $pdf->convert(
            # With PDF::API2, font names such as 'traditional' also works
            Font        => 'font.ttf',
            LineHeight  => 10,
            Landscape   => 1,
        );

        # Write to a file:
        $pdf->write_file('target.pdf');

        # Or to a scalar reference:
        # $pdf->write_file(\$output);

DESCRIPTION
    This module transforms HTML into PDF, using an assortment of XML
    transformations implemented in PDF::FromHTML::Twig.

    There is also a command-line utility, html2pdf.pl, that comes with this
    distribution.

PUBLIC METHODS
  convert(%params)
    Convert the loaded file to PDF. Valid parameters are:

        PageWidth         640
        PageResolution    540
        FontBold          'HelveticaBold'
        FontOblique       'HelveticaOblique'
        FontBoldOblique   'HelveticaBoldOblique'
        LineHeight        12
        FontUnicode       'Helvetica'
        Font              (same as FontUnicode)
        PageSize          'A4'
        Landscape         0

HINTS & TIPS
  <img> tags
    Add the height and width attributes if you are creating the source HTML,
    it keeps PDF::FromHTML from having to open and read the source image
    file to get the real size. Less file I/O means faster processing.

CAVEATS
    Although PDF::FromHTML will work with both HTML and XHTML formats, it is
    not designed to utilise CSS.

    This means any HTML using external or inline CSS for design and layout,
    including but not limited to: images, backgrounds, colours, fonts etc...
    will not be converted into the PDF.

    To get an idea of the likely resulting PDF, you may wish to use an
    non-CSS capable browser for testing first.

    There is currently no plan to adapt this module to utilise CSS. (Patches
    welcome, though!)

SEE ALSO
    html2pdf.pl is a simple command-line interface to this module.

    PDF::FromHTML::Twig, PDF::Template, XML::Twig.

CONTRIBUTORS
    Charleston Software Associates <info@charletonsw.com>

AUTHORS
    唐鳳 <cpan@audreyt.org>

CC0 1.0 Universal
    To the extent possible under law, 唐鳳 has waived all copyright and
    related or neighboring rights to PDF-FromHTML.

    This work is published from Taiwan.

    <http://creativecommons.org/publicdomain/zero/1.0>