Jspdf: Splitting huge canvas into multiple pages

Created on 24 Jan 2014  路  4Comments  路  Source: MrRio/jsPDF

I was wondering if this can be done with jsPDF.

I have a canvas that is twice the size of the paper size and I would like the images drawn inside this canvas to be printed in multiple PDF pages. I am using the canvas.toDataURL method to output the content of the canvas.

Is there a way to do this with jsPDF? When I add a page with addPage(), it just seems to render a blank page instead of the portions of the canvas content. Perhaps I'm not understanding how to do this right.

Thanks for your help and advice.

Support Request

All 4 comments

I found the answer to my questions. Yes, it can be done with jsPDF! I just have to save my image in parts in a temporary canvas and send it to jsPDF each time. Sorry to bother you!

@palmoni I'm having the same problem. Would you be willing to share your solution?

+1 @palmoni @jtownsend99 if someone can write the solution it would be great :-) Thanks !

seems like multiple pages with jsPDF is a myth =/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

centurianii picture centurianii  路  4Comments

mackersD picture mackersD  路  4Comments

Pinank picture Pinank  路  3Comments

andmaltes picture andmaltes  路  4Comments

mellisa0109 picture mellisa0109  路  3Comments