home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_1a320d0ab886ce284323e2b29158f64e
< prev
next >
Wrap
Text File
|
2000-03-23
|
5KB
|
144 lines
<HTML>
<HEAD>
<TITLE>HTML::FormatPS - Format HTML as postscript</TITLE>
<LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> HTML::FormatPS - Format HTML as postscript</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#see also">SEE ALSO</A></LI>
<LI><A HREF="#copyright">COPYRIGHT</A></LI>
<LI><A HREF="#author">AUTHOR</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>HTML::FormatPS - Format HTML as postscript</P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<PRE>
require HTML::FormatPS;
$html = parse_htmlfile("test.html");
$formatter = new HTML::FormatPS
FontFamily => 'Helvetica',
PaperSize => 'Letter';
print $formatter->format($html);</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>The HTML::FormatPS is a formatter that outputs PostScript code.
Formatting of HTML tables and forms is not implemented.</P>
<P>You might specify the following parameters when constructing the formatter:</P>
<DL>
<DT><STRONG><A NAME="item_PaperSize">PaperSize</A></STRONG><BR>
<DD>
What kind of paper should we format for. The value can be one of
these: A3, A4, A5, B4, B5, Letter, Legal, Executive, Tabloid,
Statement, Folio, 10x14, Quarto.
<P>The default is ``A4''.</P>
<P></P>
<DT><STRONG><A NAME="item_PaperWidth">PaperWidth</A></STRONG><BR>
<DD>
The width of the paper in points. Setting PaperSize also defines this
value.
<P></P>
<DT><STRONG><A NAME="item_PaperHeight">PaperHeight</A></STRONG><BR>
<DD>
The height of the paper in points. Setting PaperSize also defines
this value.
<P></P>
<DT><STRONG><A NAME="item_LeftMargin">LeftMargin</A></STRONG><BR>
<DD>
The left margin in points.
<P></P>
<DT><STRONG><A NAME="item_RightMargin">RightMargin</A></STRONG><BR>
<DD>
The right margin in points.
<P></P>
<DT><STRONG><A NAME="item_HorizontalMargin">HorizontalMargin</A></STRONG><BR>
<DD>
Both left and right margin at the same time. The default value is 4 cm.
<P></P>
<DT><STRONG><A NAME="item_TopMargin">TopMargin</A></STRONG><BR>
<DD>
The top margin in points.
<P></P>
<DT><STRONG><A NAME="item_BottomMargin">BottomMargin</A></STRONG><BR>
<DD>
The bottom margin in points.
<P></P>
<DT><STRONG><A NAME="item_VerticalMargin">VerticalMargin</A></STRONG><BR>
<DD>
Both top and bottom margin at the same time. The default value is 2 cm.
<P></P>
<DT><STRONG><A NAME="item_PageNo">PageNo</A></STRONG><BR>
<DD>
The parameter determines if we should put page numbers on the pages.
The default is yes, so you have to set this value to 0 in order to
suppress page numbers.
<P></P>
<DT><STRONG><A NAME="item_FontFamily">FontFamily</A></STRONG><BR>
<DD>
The parameter specifies which family of fonts to use for the formatting.
Legal values are ``Courier'', ``Helvetica'' and ``Times''. The default is
``Times''.
<P></P>
<DT><STRONG><A NAME="item_FontScale">FontScale</A></STRONG><BR>
<DD>
All fontsizes might be scaled by this factor.
<P></P>
<DT><STRONG><A NAME="item_Leading">Leading</A></STRONG><BR>
<DD>
How much space between lines. This is a factor of the fontsize used
for that line. Default is 0.1.
<P></P></DL>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P><A HREF="../../../site/lib/HTML/Formatter.html">the HTML::Formatter manpage</A></P>
<P>
<HR>
<H1><A NAME="copyright">COPYRIGHT</A></H1>
<P>Copyright (c) 1995-1998 Gisle Aas. All rights reserved.</P>
<P>This library is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.</P>
<P>
<HR>
<H1><A NAME="author">AUTHOR</A></H1>
<P>Gisle Aas <<A HREF="mailto:aas@sn.no">aas@sn.no</A>></P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> HTML::FormatPS - Format HTML as postscript</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>