Skip to content

Commit

Permalink
Merge pull request #38 from ilovepdf/develop
Browse files Browse the repository at this point in the history
Editpdf samples typo fixes
  • Loading branch information
lcollazo-ilovepdf authored Oct 14, 2022
2 parents 54d849e + a37dec2 commit e0c0d58
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions samples/editpdf_advanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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){
Expand Down
2 changes: 1 addition & 1 deletion samples/editpdf_basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// Create ImageElement
$imageElem = new ImageElement();
$imageElem->setImage($imageFile);
$imageElem->setFile($imageFile);

// Add image element to Editpdf task
$editpdfTask->addElement($imageElem);
Expand Down
2 changes: 1 addition & 1 deletion src/Ilovepdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0c0d58

Please sign in to comment.