Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Missing table in export #71

Open
youthelectronix opened this issue Nov 15, 2018 · 3 comments
Open

Missing table in export #71

youthelectronix opened this issue Nov 15, 2018 · 3 comments

Comments

@youthelectronix
Copy link

Description

Table is not appearing in an mPDF export.

Pressbooks version
screen shot 2018-11-15 at 12 57 06 pm

text editor
screen shot 2018-11-15 at 3 34 38 pm

mPDF version
screen shot 2018-11-15 at 12 56 44 pm

System Information

  • mPDF for Pressbooks: 3.2.1
  • Pressbooks: 5.5.6
  • WordPress: 4.9.8
@bdolor
Copy link
Contributor

bdolor commented Nov 15, 2018

thank you @youthelectronix - will take a look!

@josieg
Copy link

josieg commented Nov 16, 2018

TLDR: I think the problem is in the attributes/values within the <Table> element that @youthelectronix is using. Tables created with the current default Pressbooks markup export no problem in mPDF. And when I removed style="width: auto;" from the table element, I was able to export the table in mPDF.

So I don't know if this is a bug or if the table just needs to be recreated using the updated Pressbooks markup. Here are the specifics of what I found:

When I used the following table markup, which is the deafult table markup I get when I create a new table in Pressbooks, I have no problems exporting a table in mPDF:

HTML view:
mpdftablenormalmarkup
mPDF view:
mpdftablenormalmarkup1

However, when I imitate the html provided in the above example, I get the following:

HTML view:
mpdftableabnormalmarkup
Visual Editor view:
mpdftableabnormalmarkupve
MPDF view:
mpdftableabnormalmarkup1
**Note that I also tried creating the table using the same width="XXpx" values used in the previous example, but that did not affect the mPDF output.

When I removed style="width: auto;" from the table element, I get the following:

HTML view:
mpdftablesimplemarkup
mPDF view:
mpdftablesimplemarkup1

@josieg
Copy link

josieg commented Nov 16, 2018

And I forgot to compare behaviour to Prince.

The style="width: auto;" is not a problem in Prince PDF exports. Table elements with that attribute/value appear fine, so this is definately a mPDF problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants