We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When creating PDFs the bundle does not seem to recognize thead tbody and th tags. Is there any way to fix that?
thead
tbody
th
The following error is thrown Unknown tag "tbody". when I call $pdf = $facade->render($response->getContent();
Unknown tag "tbody".
$pdf = $facade->render($response->getContent();
The text was updated successfully, but these errors were encountered:
These tags are not supported. List of supported tags you can find in documentation: https://github.com/psliwa/PHPPdf#tags. PHPPdf does not support html but xml with tags similar to html tags - this is also explained in documentation: https://github.com/psliwa/PHPPdf#intro
You can define custom tags - to achieve that you should create your own nodes.xml file and configure PHPPdf facade to use that file. Hints how to do that you can find in documentation (https://github.com/psliwa/PHPPdf#configuration), default nodes.xml file you can find in repo: https://github.com/psliwa/PHPPdf/blob/master/lib/PHPPdf/Resources/config/nodes.xml. There will be a problem with thead and tbody tags, because current table implementation is not adapted to support some containers for rows (tr tags). You could define th tag as alis for td.
nodes.xml
PHPPdf
tr
td
Sorry, something went wrong.
No branches or pull requests
When creating PDFs the bundle does not seem to recognize
thead
tbody
andth
tags. Is there any way to fix that?The following error is thrown
Unknown tag "tbody".
when I call$pdf = $facade->render($response->getContent();
The text was updated successfully, but these errors were encountered: