ng-html-to-pdf-save icon indicating copy to clipboard operation
ng-html-to-pdf-save copied to clipboard

Multi-page PDF

Open erier opened this issue 7 years ago • 3 comments

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?

erier avatar Mar 01 '17 21:03 erier

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 :)

kmilovm avatar Aug 22 '17 17:08 kmilovm

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.

webdeveloperneeraj avatar Aug 24 '17 12:08 webdeveloperneeraj

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

kmilovm avatar Aug 24 '17 12:08 kmilovm