Re: Underline text

"turnertim" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <[email protected]>
I'm sorry I have looked at the -underline explanation in Content and
have tried the following code:

	$txt1->text("Some text to underline",-underline=>[2,1]);

And it draws without error but with no underline.
Anything obvious that I'm doing wrong in that syntax?



--- In [email protected], "Mr. Shawn H. Corey"
<shawnhcorey@...> wrote:
>
> turnertim wrote:
> > Is there any way to underline text other than using the GFX to draw a
> > line at a specific location start and stop?
> 
> Yes, see `perldoc PDF::API2::Content` and search for 'underline'.
> 
> The -underline option is available in all text operations (text,
text_right, text_center, text_justify, paragraph, text_label). 
Entering negative values for the distance will produce a strikethru,
or if sufficient negative, an overline.  Experiment or write for more
help.
> 
> 
> -- 
> Just my 0.00000002 million dollars worth,
>   Shawn
> 
> "For the things we have to learn before we can do them, we learn by
doing them."
>   Aristotle
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.