Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG added viewBox to getBarcodeSVGcode output #679

Closed
wants to merge 23 commits into from

Conversation

martinbourdages
Copy link

It's important to have the viewBox when manipulating the SVG in Imagick and other HTML component.

remicollet and others added 23 commits September 6, 2023 08:51
…#620)

Tested and confirmed working in PHP 7.4 and PHP 8.2
* README: tone down the warning about tc-lib-pdf

Signed-off-by: Ruben Barkow-Kuder <[email protected]>

* Update README.md

Co-authored-by: William Desportes <[email protected]>

---------

Signed-off-by: Ruben Barkow-Kuder <[email protected]>
Co-authored-by: William Desportes <[email protected]>
* Fix of Deprecation warning with php 8.1 tecnickcom#614

* Update include/barcodes/qrcode.php

Co-authored-by: William Desportes <[email protected]>

---------

Co-authored-by: Robert Johnson Nallori <[email protected]>
Co-authored-by: johnson361 <[email protected]>
Co-authored-by: William Desportes <[email protected]>
…om#633)

* Update tcpdf_fonts.php

Fixes "use of "self" in callables is deprecated" warning is arising from tcpdf_fonts.php when using PHP >= 8.2

* Update tcpdf_fonts.php for PHP 5.3-8.2 compatibility

PHP 8.2 "use of "self" in callables is deprecated" yet some ways of fixing this breaks for PHP 5.3. This approach works, tested PHP 5.3.29 - 8.2.0

* Update tcpdf_fonts.php

Spaces added back in before arguments

* Update tcpdf_fonts.php using get_called_class()

Maneuvers compatibility of callables inside array_map() between PHP 5.3 and 8.2 - tested.

---------

Co-authored-by: Nicola Asuni <[email protected]>
* Fix composite glyph output

* Pad zeros before checksum calulation

---------

Co-authored-by: Nicola Asuni <[email protected]>
* fix for tecnickcom#583

* fix fix

---------

Co-authored-by: Nicola Asuni <[email protected]>
* Fix non-numeric value warning

Fixes this warning on generating PDF:
Warning: A non-numeric value encountered in /tcpdf/tcpdf.php on line 5473

* Better fix for non-numeric value warning

Fixes this warning on generating PDF after calling `Text` with a non-numeric value for `$fstroke`:
Warning: A non-numeric value encountered in /tcpdf/tcpdf.php on line 5470

* Update tcpdf.php

Co-authored-by: William Desportes <[email protected]>

---------

Co-authored-by: William Desportes <[email protected]>
Co-authored-by: Nicola Asuni <[email protected]>
This was already fixed in tc-lib-barcode.
* Fix return type annotation

* BC with tools that do not support PHPStan annotations

Co-authored-by: William Desportes <[email protected]>

---------

Co-authored-by: William Desportes <[email protected]>
Co-authored-by: Nicola Asuni <[email protected]>
tecnickcom#598)

* Typehints for get/setHeaderMargin are inconstent

* Add typehints for header/footer margin properties

---------

Co-authored-by: Nicola Asuni <[email protected]>
* Bump actions/checkout and add PHP 8.3

* Update the composer json tests

* Remove PHP 5.3 and 5.4 from the matrix

* add permission entry

Restrict GitHub actions access

---------

Co-authored-by: Nicola Asuni <[email protected]>
It's important to have the viewBox when manipulating the SVG in Imagick and other HTML component.
@CLAassistant
Copy link

CLAassistant commented Jan 20, 2024

CLA assistant check
All committers have signed the CLA.

@williamdes
Copy link
Contributor

Can you show before and after screenshots ?

@martinbourdages
Copy link
Author

1be6b31

@nicolaasuni
Copy link
Member

Please try to resolve the conflicts.

@nicolaasuni
Copy link
Member

Hi, Thank you for your contribution.
The barcode implementation in this lib is buggy and not up-to-date with tc-lib-barcode.
Please use tc-lib-barcode directly and use the exported SVG from there.
Note the new tc-lib-pdf library already integrated tc-lib-barcode, just missing some features that you may not need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.