-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pu/pm/TbExportWaterMarkOnAllHeaders' into '2024.11'
tweak(TB Export) watermark on all headers See merge request tine20/tine20!4835
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage Export | ||
* @license http://www.gnu.org/licenses/agpl.html AGPL Version 3 | ||
* @author Paul Mehrer <[email protected]> | ||
* @copyright Copyright (c) 2017-2017 Metaways Infosystems GmbH (http://www.metaways.de) | ||
* @copyright Copyright (c) 2017-2024 Metaways Infosystems GmbH (http://www.metaways.de) | ||
*/ | ||
|
||
/** | ||
|
@@ -794,6 +794,12 @@ function ($match) { | |
|
||
public function addWaterMark($text, $headerIndex = 1) | ||
{ | ||
if (null === $headerIndex) { | ||
foreach (array_keys($this->tempDocumentHeaders) as $hIdx) { | ||
$this->addWaterMark($text, $hIdx); | ||
} | ||
return; | ||
} | ||
if (!isset($this->tempDocumentHeaders[$headerIndex])) { | ||
throw new Exception('header idnex ' . $headerIndex . ' doesn\'t exist'); | ||
/* | ||
|