Skip to content

How do you agree that the HTML content starts from the next page? Or paging? #149

Closed
@baihuibo

Description

@baihuibo

example html:

<html>
...
<body>
   <div>page1</div>
   <div>page2</div>
   <div>page3</div>
   <div>page4</div>
</body>
</html>

The output PDF should have 4 pages, each corresponding to the div.

So what should I do?

Activity

Jugen

Jugen commented on Nov 14, 2017

@Jugen

Use either: <div style="page-break-after: always"> or <div style="page-break-before: always">

<html>
...
<body>
   <div>page1</div>
   <div style="page-break-before: always">page2</div>
   <div style="page-break-before: always">page3</div>
   <div style="page-break-before: always">page4</div>
</body>
</html>
baihuibo

baihuibo commented on Nov 14, 2017

@baihuibo
Author

Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @danfickle@Jugen@baihuibo

        Issue actions

          How do you agree that the HTML content starts from the next page? Or paging? · Issue #149 · danfickle/openhtmltopdf