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

Any ideas for page breaks? #9

Open
BoomerBrian opened this issue Jul 25, 2014 · 6 comments
Open

Any ideas for page breaks? #9

BoomerBrian opened this issue Jul 25, 2014 · 6 comments

Comments

@BoomerBrian
Copy link

Trying to figure out the best way to add page breaks. I tried adding css page breaks but that doesn't seem to work well. I also tried inserting empty tables with a given height to push content to the next page but that doesn't seem to work well either. Any ideas for solving this problem when converting using your library?

@jarrodglasgow
Copy link

Did you find a solution for this? I can't seem to find a good solution either.

@Alifar
Copy link

Alifar commented Mar 8, 2015

< br / > works for me as a page break

@wisaruthk
Copy link

I have add this code to html file

<div style="page-break-before:always;"></div>

It work well.

@simform-solutions
Copy link

simform-solutions commented May 30, 2016

I tried following but it adds one more blank page before that content. Any other solution ?

<div style="page-break-before:always;"></div>

@wisaruthk
Copy link

wisaruthk commented May 31, 2016

for more example, let add to the other element

<table id="a">...</table>
<table id="b" style="page-break-before:always;">
            <thead>
                <tr>
                    <th scope="col" colspan='6'><h2>[title]</h2></th>
                </tr>
            </thead>
            <tbody>
            </tbody>
   </table>

This code use on my work, The table "b" will start at the new page.

@simform-solutions
Copy link

simform-solutions commented Jun 1, 2016

I tried this code too but having same result. When I append following code to my body it creates additional blank page and after that its will show the [title] My objective C code is [body appendString:@"<table id=\"b\" style=\"page-break-before:always\"><thead><tr><th scope=\"col\" colspan='6'><h2>[title]</h2></th></tr></thead><tbody></tbody></table>"];

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

5 participants