Re: Paragraph and documentation
"spinningwebz2002" <spinningwebz2002-/[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.pdfapi2 |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], "Mr. Shawn H. Corey" <shawnhcorey@...> wrote: > > spinningwebz2002 wrote: > > Thanks for the info. In your other message I also saw the posting > > about bold etc. I will just have to write routines that would process > > the paragraph using text_center, left etc. which would give me more > > control anyways. > > > > While working with pdf::api2, what variables do I have access to (is > > there a list)? > > You will find that $text->text(...) is the workhorse of PDF::API2. > Every routine that prints (via the text object) uses this routine. > > I'm not sure what you mean by variables. PDF::API2 is object- oriented. > It helps if you know something about Perl objects. There are a lot of > parameters but few variables (and you shouldn't touch them unless you > really, really know what you're doing). > > > -- > 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 > Probably Variables is the wrong word. What I was thinking, if I have to write routines to use the text->text for bold, italic etc, then it would be necessary to know where the line ended so that the next block of text would start after it. For the time being I am using text->paragraph and setting it up so it is only one line long, this way I get what was overflowed back and then create the next line below it until all text is done displaying. I did this so I can catch when I reach the bottom of the page and add a new page. It will also allow me to do things like wrap text around a photo, have varying line width etc. Ideally what I think I may end up doing is rewriting the text- >paragraph as my own routine that would catch simple html markup (<B><I><U><UL> etc) in a line and handle it automatically. One thing I notice is that it takes pdf::api2 a bit to get started, is this due to the use strict;? If so, when my code is done can I remove that to speed up the process? Or, will the pdf::api2 run under mod_perl? Bill H