23 Oct 2019 17:01:32 UTC
- Distribution: PDF-FromHTML
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (13)
- Testers (87 / 0 / 0)
- KwaliteeBus factor: 2
- % Coverage
- License: unrestricted
- Perl: v5.6.0
- Activity24 month
- Download (64.31KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
To write text in a specified spot
TEXT This is the text for this textbox. Can be either as a parameter or as character children of this node. Defaults to '' (the empty string).
ALIGN / JUSTIFY This is the orientation of the text in the textbox. Legal values are:
Full (NOT IMPLEMENTED)
JUSTIFY is provided for backwards compatibility, and is deprecated.
COLOR This is the color of the text
BGCOLOR This is the color of background
BORDER This is a boolean specifying if a border should be drawn. Currently, the border is drawn in the same color as the text.
LMARGIN / RMARGIN These are the paddings within the textbox for the text. This is useful if you are listing columns of numbers and don't want them to run into one another.
H Normally, one would not set H, as it should be set by either the FONT or ROW ancestor. However, it can be useful to do the following:
<font h="8" face="Times-Roman"> <row> <textbox w="100%" h="*4">Some text here</textbox> </row> </font>
That will create textbox which will occupy four rows of text at whatever size the font is set to.
TRUNCATE_TEXT Normally, at textbox will use as many rows it needs to write the text given to it. (It will always respect its width requirement, even to the point of splitting words, though it tries hard to preserve words.) However, sometimes this behavior is undesirable.
Set this to a true value and the height value will be a requirement, not an option.
<row h="8"> <textbox w="40%" text="Some text here"/> <textbox w="60%"><var name="Param1"/> and stuff</textbox> </row>
This will put two textboxes on the page at the current Y-position. The first will occupy 40% of the write-able space and contain the text "Some text here". The second will occupy the rest and contain the text from Param1, then the text " and stuff". (This is the only way to mix parameters and static text in the same textbox.)
Rob Kinyon (firstname.lastname@example.org)
Module Install Instructions
To install PDF::FromHTML, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install PDF::FromHTML
For more information on module installation, please visit the detailed CPAN module installation guide.