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

Unknown tags (thead, tbody, th) #55

Open
Freddixx opened this issue Nov 25, 2014 · 1 comment
Open

Unknown tags (thead, tbody, th) #55

Freddixx opened this issue Nov 25, 2014 · 1 comment

Comments

@Freddixx
Copy link

When creating PDFs the bundle does not seem to recognize thead tbody and th tags. Is there any way to fix that?

The following error is thrown Unknown tag "tbody". when I call $pdf = $facade->render($response->getContent();

@psliwa
Copy link
Owner

psliwa commented Nov 27, 2014

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.

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

No branches or pull requests

2 participants