parallax / jsPDF

Client-side JavaScript PDF generation for everyone.
https://parall.ax/products/jspdf
MIT License
29.34k stars 4.68k forks source link

Split image through jsPdf and htmlCanvas #675

Closed Mukesh23singh closed 6 years ago

Mukesh23singh commented 8 years ago

We are creating pdf with the help of jsPDF and HTML2Canvas but when adding Big image to the bottom, We are getting some issue.

Is there any way to split an image with help of jquery and javascript or with jsPDF and javascript.

alouiseq commented 7 years ago

@Mukesh23singh I have the same issue. Did you ever find a solution?

Mukesh23singh commented 7 years ago

@alouiseq we used to calculate the page height after inserting image. if it exceed the height of page then we add new page and insert image to it.