Skip to content

Commit ea11756

Browse files
committed
Add functions to trigger automatic file deletion on print server
1 parent 5b6cb47 commit ea11756

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.4.0] - 2020-11-04
10+
### Added
11+
- Added support to trigger automatic file deletion
12+
913
## [0.3.5] - 2020-11-04
1014
### Fixed
1115
- Fixed download mechanism

src/Classes/PdfPrinterOption.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ class PdfPrinterOption {
99
public String $postBackUrl;
1010
public Array $postBackBody;
1111
public String $token;
12+
public bool $autodelete = false;
1213

13-
public function __construct(String $filename, String $postBackUrl = null, Array $postBackBody = [], String $token = null) {
14+
public function __construct(String $filename, String $postBackUrl = null, Array $postBackBody = [], String $token = null, bool $autodelete = false) {
1415
$this->filename = $filename;
1516
$this->postBackUrl = $postBackUrl;
1617
$this->postBackBody = $postBackBody;
1718
$this->token = $token;
19+
$this->autodelete = $autodelete;
1820
}
1921

2022

0 commit comments

Comments
 (0)