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.

WWW:	http://search.cpan.org/dist/PDF-FromHTML/

PR:		ports/100060
Submitted by:	Gea-Suan Lin <gslin at gslin.org>
This commit is contained in:
Roman Bogorodskiy 2006-07-11 11:43:29 +00:00
parent f3192a130e
commit 374fa97a34
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=167464
6 changed files with 70 additions and 0 deletions

View file

@ -375,6 +375,7 @@
SUBDIR += p5-Number-Format
SUBDIR += p5-PDF-API2
SUBDIR += p5-PDF-Create
SUBDIR += p5-PDF-FromHTML
SUBDIR += p5-PDF-Writer
SUBDIR += p5-POE-Filter-XML
SUBDIR += p5-PPI

View file

@ -0,0 +1,39 @@
# New ports collection makefile for: p5-PDF-FromHTML
# Date created: 2006-07-10
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= PDF-FromHTML
PORTVERSION= 0.12
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= PDF
PKGNAMEPREFIX= p5-
MAINTAINER= gslin@gslin.org
COMMENT= Convert HTML documents to PDF
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/HTML/Tidy.pm:${PORTSDIR}/textproc/p5-HTML-Tidy \
${SITE_PERL}/Graphics/ColorNames.pm:${PORTSDIR}/graphics/p5-Graphics-ColorNames \
${SITE_PERL}/Image/Size.pm:${PORTSDIR}/graphics/p5-Image-Size \
${SITE_PERL}/LWP/Simple.pm:${PORTSDIR}/www/p5-libwww \
${SITE_PERL}/PDF/API2.pm:${PORTSDIR}/textproc/p5-PDF-API2 \
${SITE_PERL}/PDF/Template.pm:${PORTSDIR}/print/p5-PDF-Template \
${SITE_PERL}/PDF/Writer.pm:${PORTSDIR}/textproc/p5-PDF-Writer \
${SITE_PERL}/XML/Twig.pm:${PORTSDIR}/textproc/p5-XML-Twig
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN1= html2pdf.pl.1
MAN3= PDF::FromHTML.3 PDF::FromHTML::Twig.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
IGNORE= requires perl 5.6.1 or later. Install lang/perl5.8 then try again
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,3 @@
MD5 (PDF-FromHTML-0.12.tar.gz) = 37404ccb649ebb7b5f0a52d80fb7745b
SHA256 (PDF-FromHTML-0.12.tar.gz) = 73a21685340ad4d0eb201ddf42e6adee5b5dcedd4ae549969613a8e9d7281610
SIZE (PDF-FromHTML-0.12.tar.gz) = 23320

View file

@ -0,0 +1,11 @@
--- Makefile.PL.orig Tue Jul 11 13:51:40 2006
+++ Makefile.PL Tue Jul 11 13:51:47 2006
@@ -13,7 +13,7 @@
LWP::Simple 0
Image::Size 0
PDF::Writer 0.05
- PDF::Template 0.30
+ PDF::Template 0.22
);
unless (can_use('PDF::API2') or can_use('pdflib_pl')) {

View file

@ -0,0 +1,7 @@
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.
WWW: http://search.cpan.org/dist/PDF-FromHTML/

View file

@ -0,0 +1,9 @@
@comment $FreeBSD$
bin/html2pdf.pl
%%SITE_PERL%%/%%PERL_ARCH%%/auto/PDF/FromHTML/.packlist
%%SITE_PERL%%/PDF/FromHTML.pm
%%SITE_PERL%%/PDF/FromHTML/Twig.pm
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/PDF/FromHTML
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/PDF
@dirrmtry %%SITE_PERL%%/PDF/FromHTML
@dirrmtry %%SITE_PERL%%/PDF