Cpdf::addImagePng
add a PNG image into the document, from a GD object this should work with remote files
Signature
public function addImagePng(string
$file,
float
$x,
float
$y,
[float
$w = 0.0,
[float
$h = 0.0,
resource&
$img,
[boolean
$is_mask = false,
[bool
$mask = NULL]]]] )
Parameters
$file
—
string
- The PNG file
$x
—
float
- X position
$y
—
float
- Y position
$w
—
float
- Width
$h
—
float
- Height
$img
—
resource
- A GD resource
$is_mask
—
boolean
- true if the image is a mask
$mask
—
object
- true if the image is masked
Errors/Exceptions
-
Exception