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

DOMPDF and PAGE-BREAK-INSIDE #653

Closed
ynthn opened this issue May 29, 2013 · 17 comments
Closed

DOMPDF and PAGE-BREAK-INSIDE #653

ynthn opened this issue May 29, 2013 · 17 comments

Comments

@ynthn
Copy link

ynthn commented May 29, 2013

Hi I need help, I have an HTML DIV that has several text as follows:

<div style="page-break-inside:avoid;">

<div class="title">title...</div>

<div class="text">text...text...text...text...text...text...</div>

</div>

the problem is when the text very large, exceeding a page, blank pages are generated and the text is not complete.
How I can fix this?

from already thank you very much.

@bsweeney
Copy link
Member

Which version of dompdf? Can you share a sample document? I tried something using the basic structure you outlined and didn't have any problems with the render.

@ynthn
Copy link
Author

ynthn commented May 29, 2013

DOMPDF 0.6.0 beta 3
with this structure works perfect, but if the text is too long does not work

<div style="page-break-inside:avoid;">

<div class="title">title...</div>

<div class="text">
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
</div>

</div>

@ynthn ynthn closed this as completed May 29, 2013
@ynthn ynthn reopened this May 29, 2013
@bsweeney
Copy link
Member

I'm not experiencing the same issue. Did you test on your server with the sample you provided?

What version of PHP are you using? Sometimes that can affect how dompdf renders.

You might try updating to the latest code by downloading from github or using the nightly downloader.

@ynthn
Copy link
Author

ynthn commented May 29, 2013

5.4 version of php with codeigniter framework

downloaded from github.com / dompdf / dompdf DOMPDF vercion 0.6.0 beta 3
and the problem continues

@bsweeney
Copy link
Member

It could be a PHP 5.4 problem. We haven't tested in that environment yet. I'll get back to you after testing with PHP 5.4.

@ynthn
Copy link
Author

ynthn commented May 30, 2013

hello, probe the text in a different project today and it worked perfect, I think it must have something in my project maybe the CSS

@ynthn
Copy link
Author

ynthn commented May 30, 2013

Hi, I solved was the footer and header

#header {position: relative; left: 0px; right: 0px; font-size: 10px; color: # 888}
#footer {position: fixed; left: 0px; bottom:-180px; right: 0px; height: 150px; font-size: 12px; color: # 808080}

them out and it works perfect. I now use a function of DOMPDF for the footer and header

$pdf-> page_text ($ w - 60, $ h - 10, "{page_num} - {PAGE_COUNT}", $ font, 10, array (0.5,0.5,0.5));

thank you very much!

@ynthn ynthn closed this as completed May 30, 2013
@bsweeney
Copy link
Member

There's definitely something buggy here. I'm not sure what the trigger is, but it looks like anything that causes the no-page content to flow to a new page breaks the render. We should keep this issue open until we've had a chance to look into it further.

@tempe-goreng
Copy link

Hi,

Is there a solution for this issue? I have a similar problem when multiple pages inside page-break-inside:avoid;

basically my code is like the following.

<?php
for ($x=0; $x<=5; $x++) {
?>
<div style="page-break-inside:avoid;">

<div class="title">title...</div>

<div class="text">
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
text...text...text...<br>text...text...text...<br>text...text...text...<br><br>text...text...text...<br>
aaaaaa...<br>aaaaaa...<br>aaaaaa...<br><br>aaaaaa...<br>
</div>

</div>
<?php } ?>

Also, is there a way for dompdf to not render the part that exceed the section that exceeds the page break? For example if the aaaaaa... part is suppose to show on page 2, then we do not generated pdf for that. Only for the page that is contained on page 1.

Thanks

@polga
Copy link

polga commented Sep 26, 2014

I'm seeing the same problem as tempe-goreng.

Perhaps there is workaround to this problem, at least in my case – if I knew where the next block of text was going to be written (say a y-coordinate), I could programmatically determine if I wanted to add a page break before or not. Maybe there is a way to do this with DOMPDF? Not sure what the others' use cases are, and this should probably be fixed, but maybe this would solve the problem in the interim.

Thanks!

@sinothoma
Copy link

Hello All,
I am used the following html code,I got several blank pages and content is not displaying properly in the table.

<html>
  <head>
    <title>Sample "Hello, World" Application</title>
  </head>
  <style type="text/css">
                        #footer {
                          position: fixed;
                          left: 0;
                          right: 0;
                          color: #0000;
                        }
                        #footer {
                          bottom: 0;
                        }
                        #footer table {
                            width: 100%;
                            border-collapse: collapse;
                            border: none;
                        }
                        #footer td {
                          padding: 0;
                            width: 50%;
                        }
                        .page-number {
                          text-align: center;
                        }


                        </style>
<body>

<table width="550" border="1" cellpadding="0" cellspacing="0" style="font-family:Arial, Helvetica, sans-serif; font-size:11px; margin-top:0;border-bottom:0.5px;border-top:0.5px; page-break-inside: auto;">
                                <tr style="border-bottom:solid 1px #000;">
                                   <td height="15" width="10%" valign="top" style="padding-top:2px;">&nbsp;&nbsp;</td>
                                   <td width="10%" valign="top" style="padding-top:2px;">&nbsp;&nbsp;</td>
                                   <td width="20%" valign="top" style="padding-left:5px; padding-top:2px;"></td>
                                   <td width="60%"  valign="top" style="padding-left:5px; padding-top:2px;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem IpsumAldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum</td>
                                 </tr> 
                                 </table>
 </body>
</html>                              

@bsweeney
Copy link
Member

bsweeney commented Feb 6, 2015

@sinothoma you're probably running into issue #98.

@ArvidEnbom
Copy link

I have this issue as well. Whenever I use page-break-inside:avoid on an element that is larger than one page, the entire element is squished into the top left corner, and I get all sorts of other issues.

asd

Right now I'm forced to comment out the page-break-inside:avoid and just have the element continue on the next page, since there's no way to solve it.

@rick31
Copy link

rick31 commented Mar 13, 2019

have you found a solution to this problem ?

@bsweeney
Copy link
Member

bsweeney commented May 9, 2019

Looks like the particular issue outlined here has been addressed (tested in 0.8.3).

@rick31 if you have a sample that doesn't work in the latest release of Dompdf feel free to follow up.

@bsweeney bsweeney closed this as completed May 9, 2019
@parmarvishal21
Copy link

Hello All,
I am used the following html code,I got several blank pages and content is not displaying properly in the table.

<html>
  <head>
    <title>Sample "Hello, World" Application</title>
  </head>
  <style type="text/css">
                        #footer {
                          position: fixed;
                          left: 0;
                          right: 0;
                          color: #0000;
                        }
                        #footer {
                          bottom: 0;
                        }
                        #footer table {
                            width: 100%;
                            border-collapse: collapse;
                            border: none;
                        }
                        #footer td {
                          padding: 0;
                            width: 50%;
                        }
                        .page-number {
                          text-align: center;
                        }


                        </style>
<body>

<table width="550" border="1" cellpadding="0" cellspacing="0" style="font-family:Arial, Helvetica, sans-serif; font-size:11px; margin-top:0;border-bottom:0.5px;border-top:0.5px; page-break-inside: auto;">
                                <tr style="border-bottom:solid 1px #000;">
                                   <td height="15" width="10%" valign="top" style="padding-top:2px;">&nbsp;&nbsp;</td>
                                   <td width="10%" valign="top" style="padding-top:2px;">&nbsp;&nbsp;</td>
                                   <td width="20%" valign="top" style="padding-left:5px; padding-top:2px;"></td>
                                   <td width="60%"  valign="top" style="padding-left:5px; padding-top:2px;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum. Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem IpsumAldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
                                   when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 
                                   but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
                                   Lorem Ipsum passages, and more recently with desktop publishing software like 
                                   Aldus PageMaker including versions of Lorem Ipsum</td>
                                 </tr> 
                                 </table>
 </body>
</html>                              

@sinothoma Have you found a solution to this problem ?

@bsweeney
Copy link
Member

@parmarvishal21 Dompdf won't be able to handle that particular layout very well. The current code base does not support breaking an individual table cell/row across pages. The results you're getting are because Dompdf is trying to ensure that large table cell starts on a single page.

Follow #98 for updates on this issue.

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

8 participants