Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-page PDF #18

Open
erier opened this issue Mar 1, 2017 · 3 comments
Open

Multi-page PDF #18

erier opened this issue Mar 1, 2017 · 3 comments

Comments

@erier
Copy link

erier commented Mar 1, 2017

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
Copy link

kmilovm commented Aug 22, 2017

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
Copy link

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
Copy link

kmilovm commented Aug 24, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants