Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update tcpdf.php Since the version 6.7.4, the "0" is considered like empty string and not displayed * Update tcpdf.php Co-authored-by: William Desportes <[email protected]> * Fixed handling of transparency in PDF/A mode in addExtGState method The condition allowed to add ExtGState in all PDF/A modes and disallowed in default mode. 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'. * Encrypt /DA string when document is encrypted When document is encrypted then /DA string must be encrypted, without this Acrobat cannot allow fill form fields. * Improve quality of generated seed, avoid potential security pitfall * Try to use random_bytes() first if it's available * Do not include the server parameters in the generated seed, as they might contain sensitive data As all current usages of getRandomSeed() directly hash the seed, there should be no BC breaking changes. The main source of entropy is more than enough on its own if random_bytes() or openssl_random_pseudo_bytes() are available. * Fix bug on _getannotsrefs when there are empty signature appearances but not other annot on a page * Fix SVG coordinate parser that caused drawing artifacts * Remove usage of xml_set_object() function The xml_set_object() function will be deprecated in PHP 8.4 as well as passing non-callable strings to the xml_set_*_handler() functions. Instead of using xml_set_object(), the string method names in xml_set_element_handler() and xml_set_character_data_handler() should be replaced with callables. - https://wiki.php.net/rfc/deprecations_php_8_4#xml_set_object_and_xml_set_handler_with_string_method_names Signed-off-by: Maurício Meneghini Fauth <[email protected]> --------- Signed-off-by: Maurício Meneghini Fauth <[email protected]> Co-authored-by: jlouche <[email protected]> Co-authored-by: William Desportes <[email protected]> Co-authored-by: stollr <[email protected]> Co-authored-by: Robert Jędrzejczyk <[email protected]> Co-authored-by: Andreas Erhard <[email protected]> Co-authored-by: Alejandro Precioso <[email protected]> Co-authored-by: davidrod <[email protected]> Co-authored-by: sslldavid <[email protected]> Co-authored-by: Alejandro <[email protected]> Co-authored-by: Maurício Meneghini Fauth <[email protected]>
- Loading branch information