Re: +Re:Gradients in PDF::API2 [Re-posted]
Alan Fry <ajf-n9G92GgND9yX/[email protected]> Mon, 26 Jan 2009 17:04:59 +0000
| Newsgroups | gmane.comp.lang.perl.modules.pdfapi2 |
|---|---|
| Message-ID | <[email protected]> |
The script quoted below (.../message/551) begins: #!/usr/bin/perl use PDF::API2; use Text::PDF::Utils; $pdf=PDF::API2->new; $sh=$pdf->shade; If you replace the line "use Text::PDF::Utils" by "use PDF::API2::Basic::PDF::Utils" and replace the line "$sh=$pdf->shade" by "$sh=$pdf->shading" I think you will find the script works as it should. HTH, Alan Fry On 26 Jan 2009, at 15:05, jeffchimene wrote: > --- In [email protected], Rick Measham <rick@...> > wrote: > > > > Jeff Chimene wrote: > > > > > > > > > What about using shading? > > > > Sounds ideal .. but I can't find any useful documentation. The > closest I > > can find is the example Fredo gave here: > > http://tech.groups.yahoo.com/group/perl-text-pdf-modules/message/551 > > Well, that's probably as close as you're gonna get... > > > > > But that doesn't work with a modern PDF::API2. > > Yeah, that post is pretty old. > > Have you searched the Adobe documentation for more info? A quick > glance at the PDF::API2 code shows it turns whatever you send it into > PDF code. Perhaps Adobe can help interpret the various arguments. > > Bueno Suerte, > jec > > > > > If anyone has an example .. even the most simple .. it would make me > > really, really happy. > > > > >