diff --git a/samples/editpdf_advanced.php b/samples/editpdf_advanced.php index 877a700..c2352bc 100644 --- a/samples/editpdf_advanced.php +++ b/samples/editpdf_advanced.php @@ -22,8 +22,8 @@ $svgFile = $editpdfTask->addFile('your_svg.svg'); // Create ImageElement -$imageElem = new ImageElement(); -$imageElem->setCoordinates(300, 600) +$imageElement = new ImageElement(); +$imageElement->setCoordinates(300, 600) ->setPages(3) ->setOpacity(40) ->setFile($imageFile); @@ -43,8 +43,8 @@ $svgElement->setFile($svgFile); // Add elements to Editpdf task in order of drawing (important if elements overlap!) -$editpdfTask->addElement($imageElem); -$editpdfTask->addElement($textElem); +$editpdfTask->addElement($imageElement); +$editpdfTask->addElement($textElement); $editpdfTask->addElement($svgElement); foreach($editpdfTask->getElements() as $editpdfElement){ diff --git a/samples/editpdf_basic.php b/samples/editpdf_basic.php index c073a12..40a8556 100644 --- a/samples/editpdf_basic.php +++ b/samples/editpdf_basic.php @@ -20,7 +20,7 @@ // Create ImageElement $imageElem = new ImageElement(); -$imageElem->setImage($imageFile); +$imageElem->setFile($imageFile); // Add image element to Editpdf task $editpdfTask->addElement($imageElem); diff --git a/src/Ilovepdf.php b/src/Ilovepdf.php index dfbba4e..d761c19 100644 --- a/src/Ilovepdf.php +++ b/src/Ilovepdf.php @@ -44,7 +44,7 @@ class Ilovepdf */ public static $apiVersion = 'v1'; - const VERSION = 'php.1.2.2'; + const VERSION = 'php.1.2.3'; /** * @var string|null