tecnickcom / TCPDF

Official clone of PHP library to generate PDF documents and barcodes
https://tcpdf.org
Other
4.18k stars 1.51k forks source link

Fixed handling of transparency in PDF/A mode in addExtGState method #692

Open stollr opened 6 months ago

stollr commented 6 months ago

The condition allowed to add ExtGState in all PDF/A modes and disallowed it in default mode until now. This looks logically wrong.

This fix inlines the condition with setExtGState to allow transparency parameters for non-PDF/A and PDF/A > 1 documents.

The state condition is copied from 'setExtGState'.

CLAassistant commented 6 months ago

CLA assistant check
All committers have signed the CLA.

williamdes commented 6 months ago

@nicolaasuni what do you think ?

nicolaasuni commented 5 months ago

Please try to resolve the conflicts.

stollr commented 5 months ago

@nicolaasuni I have rebased the PR on the main branch

jabbarSoomro commented 2 months ago

approved