-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
TCPDF - PDF generation does not respect $isPDF #1163
Comments
The dirty hot fix is set to $isPDF to public in html.php. |
What is the consequences of having this flag to the wrong flag? Why do you think it needs to be changed? |
The Problem is that the pagebreaks will be doubled, if $isPDF is false, because PhpSpreadsheet/src/PhpSpreadsheet/Writer/Html.php Lines 828 to 830 in 9d6736d
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Setting isPdf was added to PDF constructor by PR #1464 in May 2020. |
This is:
What is the expected behavior?
If I use TCPDF as writer, the $isPDF in /vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Html.php should interpreted as true.
What is the current behavior?
If I use TCPDF as writer, the $isPDF is misinterpreted in/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Html.php as false.
What are the steps to reproduce?
Which versions of PhpSpreadsheet and PHP are affected?
Tested with 1.8.2, 1.9.0.
The text was updated successfully, but these errors were encountered: