Skip to content

Commit

Permalink
Merge branch 'fix_pdfa_addExtGState' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Oct 26, 2024
2 parents 0acbbf1 + 1056a31 commit 5ce8a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -13936,8 +13936,8 @@ public function setVisibility($v) {
* @since 3.0.000 (2008-03-27)
*/
protected function addExtGState($parms) {
if ($this->pdfa_mode || $this->pdfa_version >= 2) {
// transparencies are not allowed in PDF/A mode
if (($this->pdfa_mode && $this->pdfa_version < 2) || ($this->state != 2)) {
// transparency is not allowed in PDF/A-1 mode
return;
}
// check if this ExtGState already exist
Expand Down

0 comments on commit 5ce8a91

Please sign in to comment.