Skip to content

Only one page is created with html2pdf #917

@VictorSage

Description

@VictorSage

I have a long and wide html page. I would like to print it to pdf with the CSS I've applied. I tried your html2pdf function and notice the following:

1: only one page is created and cut the top left corner of my page.
2: Font is slightly different than the original page.

Any clue on how to show multiple pages and how to make the webpage fit into one page wide?

Thank you for submitting an issue to jsPDF. Please read carefully.

Are you using the latest version of jsPDF?
Yes
Have you tried using jspdf.debug.js?
Nope
Steps to reproduce
Pass a wide/long page or dom to html2pdf

Ideally a link too. Try fork this http://jsbin.com/rilace/edit?html,js,output

What I saw
Only one page is created and only shows top-left part of the page.

What I expected
Showing multiple pages and be able to fit into page width or set page width.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions