Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
* master:
  Develop (#47)
  Update PdfjpgTask.php
  Remove php doc param (#40)
  • Loading branch information
maztch committed Jun 11, 2024
2 parents 0bc0b96 + 23eceed commit f9130ac
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Ilovepdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ public function setWorkerServer(?string $workerServer): void


/**
* @param bool $value
* @param string|null $encryptKey
* @return $this
*/
Expand Down
19 changes: 19 additions & 0 deletions src/PdfjpgTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ class PdfjpgTask extends Task
*/
public $pdfjpg_mode;


/**
* @var string|null
*/
public $pages;

/**
* @var integer|null
*/
Expand Down Expand Up @@ -47,6 +53,19 @@ public function setMode($mode): self
return $this;
}

/**
* Set pages for extract pages
*
* @param string $mode values:["1-5, 7,12"] default: null
* @return $this
*/
public function setPages($pages): self
{
$this->pages = $pages;

return $this;
}

/**
* Set image quality for output
*
Expand Down

0 comments on commit f9130ac

Please sign in to comment.