Menu

#1028 3 Column Layout, Table Break Header Issues

v1.0_(example)
open
None
1
2015-02-26
2015-02-11
No

Hi Nicola,

I've been experimenting with 3-column layouts and I'm having trouble with the example you've provided and certain numbers of rows.

I have attached my script, basic input HTML and what happens when I create the PDF. All 4 example HTML files are the same, except for the number of rows in the tables. The PHP script is exactly the same as your example_010.php but I've added a chapter for each HTML file.

Example #1 - As expected. The tables appear one after the other, with the first finishing in the same column as the next table starts.

Example #2 - A superfluous table header is shown with no rows after it. A column break occurs for no obvious reason. The

element doesn't take account of the vertical spacing used by this extra tag and they overlap.

Example #3 - The

tag appears after the first table as expected. Table 1 breaks nicely over the columns and the table header is repeated as expected, but the next table appears in its own column again when it should run on as per example #1.

Example #4 - Same as example #3. One table breaks its rows but the next table is always forced to a new column or page. Additionally, is there any way of closing the

_______
|  |  |

...at the bottoms of the tables? I have tried the nobr="true" workaround in which the forums mention but it doesn't seem to work.

Searches of the forums and web have not discussed this breaking behaviour. I hope it's a bug and that I'm not wasting your time.

Thanks very much. I love using TCPDF and appreciate your hard work.

3 Attachments

Discussion

  • pyShowRename

    pyShowRename - 2015-02-11

    Additional: Here are the versions and OS I'm using...

    Version: 6.2.6
    Release date: 2015-01-28
    PHP Version 5.5.9-1ubuntu4.5
    Build Linux HOST 3.13.0-24-generic #46-Ubuntu SMP x86_64

     
  • Nicola Asuni

    Nicola Asuni - 2015-02-17
     
  • Nicola Asuni

    Nicola Asuni - 2015-02-17

    Please try the attached example, it can be a problem triggered by the width of the table.

     
  • pyShowRename

    pyShowRename - 2015-02-17

    Hi Nicola, thanks for your reply. I have tried with the example you kindly provided. Unfortunately, I still see the same behaviour. I have attached The full HTML file used (ex_5.html) which consists of your example table followed by a < p > element and then your table again. Also attached (NicolasExampleCh5.pdf) shows the output. The tables won't show immediately one after the other as expected. Excluding this < p > element makes no difference.

    You mentioned that table width could be a trigger. I also tried forcing 50px, 100px and 200px table widths within the column and it makes no difference.

    Please let me know if there are any more examples you require to help troubleshoot and I will happily provide them.

     

    Last edit: pyShowRename 2015-02-17
  • pyShowRename

    pyShowRename - 2015-02-26

    Bump. Is there anything else I can be doing to provide examples of this not working as expected?

     

Log in to post a comment.