-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
pdf export: Parent table not found for table cell #5395
Comments
I was able to narrow down the issue to a single page. By creating a new page with a the simplest possible table could reproduce the issue: <table id="bkmrk-%C2%A0">
<tbody>
<tr>
<td> </td>
</tr>
</tbody>
</table> |
Hi @tipuraneo, Thanks for reporting. Unfortunately I have not been able to replicate this. Even when going back to v24.12, tables in content don't seem to break PDF exports, at a page, chapter or book level. Are you able to reproduce this on our demo site? |
Diving deeper, I looked at your site and copied the customizations out to my own development instance, which would then cause the issue to occur. Specifically, it's this customization that's applied in the "Custom HTML Head Content" customization setting, which is causing trouble with the export render since it's causing tables not to be treated as tables in the same manner: /* Tabellen scrollbar machen */
.page-content table {
/* overflow: scroll; */
display: block;
/* `!important` is required to override the official styles `!important`.. */
/* height: 800px !important; */
white-space: nowrap;
} As an alternative, you could tweak that specific rule so it's ignored for exports, like so: /* Tabellen scrollbar machen */
.page-content table:not(body.export *) {
/* overflow: scroll; */
display: block;
/* `!important` is required to override the official styles `!important`.. */
/* height: 800px !important; */
white-space: nowrap;
} |
Hi Dan, Thanks for testing. Because the css does not work as intended, I removed the section. Now pdf export is possible. So this is not a bookstack issue and can be closed. |
Describe the Bug
Hello,
I am running Bockstack v24.12 on Ubuntu 22.04.5 LTS with Apache/2.4.52 (Ubuntu) and PHP 8.1.2-1ubuntu2.2. During the pdf export of the chapter I get the following error in the laravel.log.
apache error.log does not give any hints. access.log says:
Error occurs with and without logged in user.
How can I fix it?
Kind Regards
Steps to Reproduce
Expected Behaviour
generating a pdf file and push it for download
Screenshots or Additional Context
Browser Details
Chrome
Exact BookStack Version
v24.12
The text was updated successfully, but these errors were encountered: