Hi everyone,
Today I am stuck with PDF::API2. Although seeming very powerful, the module
documentation is horridly lacking. I was able to figure a great deal of what
I need by directly examining the source, however some issues are left
unsolved:

1. Is there a way to get the (x,y) pos and maybe more attributes of an
already processed object? I looked all over the place - doesn't look like
there is such a function. Even if I put every single line and dot into a
separate handler - the dump of the structure still does not yield anything.
I need this to be able to do background hilighting - e.g. I placed some text
through handler $some_text, I pass it to the subroutine, it extracts the
starting position, the alignment and the width of the text and creates an
ellipse behind it with a certain fillcolor. I actually have more uses for
that, but this is the main one. 

2. I don't really understand the entire concept of objectifying content
elements - I can have a $paragraph object handler and use ->text in
conjunction with ->nl to write out an entire paragraph, or I can make a
separate handler for each line - the output doesn't seem to change. In this
case - why the need/possibility for separate handlers? 

3. Is there a difference between methods ->gfx->textlabel and ->text ? I 
understand they have a different syntax but they seem to do the same thing 
in the end. 

4. Is there vertical alignment for text? Or the font is always centered 
between the zone denoted by ->lead ?

I have seen questions about PDF::API2 on this list before, and here and 
there people were suggested to try other modules. Unfortunately 
PDF::API2::Lite has 0 documentation and PDF::Report does not seem to be able 
to do all the graphics that I would eventually need in my case. So I am 
stuck with the vanilla API2. Any help/comments/and most importantly 
references to somewhat complete documentation/examples would be appreciated. 

Thank you

Peter

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to