hearsid / ng-html-to-pdf-save

Save HTML as pdf file on the browser with angularjs .
28 stars 35 forks source link

Multi-page PDF #18

Open erier opened 7 years ago

erier commented 7 years ago

I have a fairly large HTML block - enough to cover multiple PDF pages.

When implementing ng-html-to-pdf-save, the PDF only saves one page - therefore the HTML block gets cut off.

Is there a way to allow multi-page PDFs?

kmilovm commented 7 years ago

just replace the following line on saveHtmlToPdf.js onePageCanvas.setAttribute('height', 980); for this onePageCanvas.setAttribute('height', $(window).height()); and you will get all the pages needed :)

webdeveloperneeraj commented 7 years ago

I have changed in saveHtmlToPdf.js file but i haven't get div data in pdf. i am getting partial data on pdf page is there any way to show all data of block in pdf.

kmilovm commented 7 years ago

Make sure that all your content belongs to the div pdf-save-content="someid"