PDF::Images::PNG
Inherits PDF::Images::Base < Reference < Object
PNG image handler with alpha channel support.
PNG images are decoded using stumpy_png and re-encoded with FlateDecode for PDF embedding. Alpha channels are extracted as separate soft mask images for transparency support.
Usage
png = PDF::Images::PNG.load("logo.png")
png.width # => 200
png.height # => 100
png.has_alpha? # => true
Constructors
Instance methods
height
Source