Hi,

At first i must say that is great to know that somebody is working on
Zend_Pdf.

So what i like to se, mmmm.... Tables!!!Definitely. I think that Zend_Pdf is
quite good even now but lack of tables cause that we still use fpdf.

One more thing which will be great is refactoring of drawText function.
Now if we use some advanced text formating we must call
$page->setFont($font, 15); very often.
I think that much better is somethinkg like this
$headingStyle=$pdf->createTextStyle($font,$size,$color,'UTF-8','etc.); 
$footerStyle=$pdf->createTextStyle($font2,$size2,$color2,etc.); 

and now is posibe call

$page->drawText($myText,$x,$y,$headingStyle);

I hope that is clear that on large document its very handy beacuse all styles can by set on one place...
usefull method can by also
$pdf->setDefaultTextStyle($footerStyle);

And please give us some more information what you are doing :-)



Willie Alberty wrote:
> 
> Kevin and I are about ready to introduce the comprehensive Zend_Pdf  
> updates I described last week for community review and early testing.  
> I am working on shoring up the documentation now and could use some  
> feedback:
> 
>    In what ways are you are currently using Zend_Pdf?
> 
> I don't necessarily need detailed descriptions--though that would be  
> great--something like "we open pre-printed forms and draw text on top  
> of them" would be sufficient.
> 
> The reason I'm asking is, as I mentioned last week, this update breaks  
> backwards-compatibility. There's no real loss of functionality, it's  
> just that the API has evolved. For example, to draw a filled rectangle  
> on a page:
> 
> // current Zend_Pdf
> $page->drawRectangle($x, $y, ($x + $width), ($y + $height),  
> Zend_Pdf_Page::SHAPE_DRAW_FILL);
> 
> // new Zend_Pdf
> Zend_Pdf_Path::fillRect($page, new Zend_Pdf_Rect($x, $y, $width,  
> $height));
> 
> I'm working on a migration guide, and in addition to listing out each  
> "this API call changed to that API call," I'd like to supplement it  
> with some examples based on real-world use cases. These examples would  
> also evolve into a full-fledged tutorial which will be included in the  
> framework Reference Guide.
> 
> Also, if you're not currently using Zend_Pdf, but you would use it if  
> it did "feature X," please share that too. Hopefully the feature you  
> are waiting for will be included in this update, and I'll be sure to  
> include an example for it as well.
> 
> Thanks!
> 
> --
> 
> Willie Alberty
> Spenlen Media
> [EMAIL PROTECTED]
> 
> http://spenlen.com/
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-are-you-using-Zend_Pdf--tp18767550p19082968.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to