Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: PDF::API2 and opacity

by sflitman (Hermit)
on Jun 08, 2010 at 05:24 UTC ( [id://843617]=note: print w/replies, xml ) Need Help??


in reply to PDF::API2 and opacity

Don't bother trying to do it natively in PDF, just make your image or text with desired opacity (or transparency) in a friendly environment like GD and export as PNG, then use PDF::API2::Resource::XObject::Image::PNG to import it into a PDF you are constructing. I have not tested this myself, but it is how I would go about solving the problem. If you are trying to alter existing objects in a PDF, that's another ball of wax. My guess there would be to extract them, modify them externally with a tool like GD or ImageMagick, then build a new output PDF.

HTH,
SSF

Replies are listed 'Best First'.
Re^2: PDF::API2 and opacity
by Anonymous Monk on Jun 08, 2010 at 15:24 UTC
    May I send you my firstborn?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://843617]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-29 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found