-
-
Notifications
You must be signed in to change notification settings - Fork 90
Add possibility to show scissors instead of text if printable=false #258
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9d9adcf
Add support for scissors and dashed lines (partial support for FPDF)
tafel b0848cf
added tests
tafel bb1f734
added trait for FPDF, to manage dash lines and text rotation
tafel 522a82e
set css unicode code for scissors, so charset other than utf-8 should…
tafel 82025d3
added tests data
tafel c1ebc2d
added missing test files for HTML
tafel 44afb61
add both traits for Fpdf tests if needed
tafel 532f7ce
Merge branch 'master' into master
tafel 4620bce
suggestion for paymentpart print options
tafel 7bbae9c
Remove font managment, optimize textDownArrows and regenerate all tes…
tafel 3350815
compatibility with PHP 8.0, coding style and regeneration of test files
tafel b2bc124
added not-compact HTML tests and replace static props in print option…
tafel 93f25b1
remove useless method comment in fpdf trait
tafel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-additional-information.print.pdf
Binary file not shown.
Binary file modified
BIN
-29 Bytes
(100%)
tests/TestData/FpdfOutput/qr-additional-information.scissors.pdf
Binary file not shown.
Binary file modified
BIN
-29 Bytes
(100%)
tests/TestData/FpdfOutput/qr-additional-information.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-additional-information.svg.textarrows.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-33 Bytes
(100%)
tests/TestData/FpdfOutput/qr-alternative-schemes.scissors.pdf
Binary file not shown.
Binary file modified
BIN
-35 Bytes
(100%)
tests/TestData/FpdfOutput/qr-alternative-schemes.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-alternative-schemes.svg.textarrows.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-34 Bytes
(100%)
tests/TestData/FpdfOutput/qr-full-set.svg.scissorsdown.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-international-ultimate-debtor.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-international-ultimate-debtor.print.pdf
Binary file not shown.
Binary file modified
BIN
-34 Bytes
(100%)
tests/TestData/FpdfOutput/qr-international-ultimate-debtor.scissors.pdf
Binary file not shown.
Binary file modified
BIN
-35 Bytes
(100%)
tests/TestData/FpdfOutput/qr-international-ultimate-debtor.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-international-ultimate-debtor.svg.textarrows.pdf
Binary file not shown.
Binary file removed
BIN
-7.06 KB
tests/TestData/FpdfOutput/qr-international-ultimate-debtor.svg.textno.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-33 Bytes
(100%)
tests/TestData/FpdfOutput/qr-minimal-setup.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-minimal-setup.svg.textarrows.pdf
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...estData/FpdfOutput/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...a/FpdfOutput/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.print.pdf
Binary file not shown.
Binary file modified
BIN
-30 Bytes
(100%)
...pdfOutput/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.scissors.pdf
Binary file not shown.
Binary file modified
BIN
-32 Bytes
(100%)
...t/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...put/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.svg.textarrows.pdf
Binary file not shown.
Binary file removed
BIN
-15.4 KB
...fOutput/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.svg.textno.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.print.pdf
Binary file not shown.
Binary file modified
BIN
-30 Bytes
(100%)
...TestData/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.scissors.pdf
Binary file not shown.
Binary file modified
BIN
-32 Bytes
(100%)
.../FpdfOutput/qr-payment-information-without-amount-and-long-addresses.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ta/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.svg.textarrows.pdf
Binary file not shown.
Binary file removed
BIN
-12.7 KB
...stData/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.svg.textno.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.print.pdf
Binary file not shown.
Binary file modified
BIN
-34 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.scissors.pdf
Binary file not shown.
Binary file modified
BIN
-33 Bytes
(100%)
...TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...s/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.svg.textarrows.pdf
Binary file not shown.
Binary file removed
BIN
-10.4 KB
tests/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.svg.textno.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-without-amount.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-without-amount.print.pdf
Binary file not shown.
Binary file modified
BIN
-34 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-without-amount.scissors.pdf
Binary file not shown.
Binary file modified
BIN
-33 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-without-amount.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-without-amount.svg.textarrows.pdf
Binary file not shown.
Binary file removed
BIN
-15 KB
tests/TestData/FpdfOutput/qr-payment-information-without-amount.svg.textno.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-zero-amount.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-zero-amount.print.pdf
Binary file not shown.
Binary file modified
BIN
-30 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-zero-amount.scissors.pdf
Binary file not shown.
Binary file modified
BIN
-32 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-zero-amount.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-information-zero-amount.svg.textarrows.pdf
Binary file not shown.
Binary file removed
BIN
-11.9 KB
tests/TestData/FpdfOutput/qr-payment-information-zero-amount.svg.textno.pdf
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-reference-non.print.pdf
Binary file not shown.
Binary file modified
BIN
-32 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-reference-non.scissors.pdf
Binary file not shown.
Binary file modified
BIN
-34 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-reference-non.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-reference-non.svg.textarrows.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-reference-scor.print.pdf
Binary file not shown.
Binary file modified
BIN
-33 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-reference-scor.scissors.pdf
Binary file not shown.
Binary file modified
BIN
-34 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-reference-scor.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-payment-reference-scor.svg.textarrows.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-31 Bytes
(100%)
tests/TestData/FpdfOutput/qr-ultimate-debtor.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/TestData/FpdfOutput/qr-ultimate-debtor.svg.textarrows.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use
const, then no$is needed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sprain PHP 8.0 went EOL (no security fixes) 1 ago year. Do we really need to implement backward facing implementations like this to maintain compatibility with it?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol, I just forgot this, thanks :D I replaced static by const. But that's true that PHP 8.0 is old. We may drop the support. But it means a breaking change...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kohlerdominik
PHP 8.0 is only 5% of current installs. We can consider dropping it. In a future release, since this is already PHP 8.0 compatible now ;)
@tafel
Thanks!
FYI: dropping a PHP version is not a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sprain ok, so composer manage matches between PHP version and packages version itself. The question is, in the current implementation, we can use the
::TOPconst property, but we can also just write'TOP'as a string. When/If we migrate the code to enums, it will be a breaking change, because the method will only accept enum type.Should we go with the current implementation, and document this breaking change later? Or is it better to just drop PHP 8.0 right now, and not worry about breaking change at all?