-
Notifications
You must be signed in to change notification settings - Fork 458
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
How to make this plugin printing more than one page? #106
Comments
It should print it just fine as long as there's no css restricting the page height - please create a sample simplified jsFiddle showcasing this issue for us to help you better
Thanks!
…---- On Tue, 08 Oct 2019 21:50:22 +0530 notifications@github.com wrote ----
Hello, I'm stuck on printing long HTML, which is need more than one page.
How i can do that? I tried to print long HTML, but the result it's get cut.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi, thanks for the reply, the print html is like this: https://jsfiddle.net/8e0yun6k/ but in here it's working fine. i think you're right, the problem is because of there is css that restrict it's height. i'm using framework7 popup and i put the HTML print template into it. have you ever use framework7 before? |
No, perhaps try posting on StackOverflow?
You may need to use the browser console inspector to identify the erring css and override it in the print css
…---- On Tue, 08 Oct 2019 22:15:27 +0530 notifications@github.com wrote ----
Hi, thanks for the reply,
the print html is like this: https://jsfiddle.net/8e0yun6k/ but in here it's working fine.
i think you're right, the problem is because of there is css that restrict it's height.
i'm using framework7 popup and i put the HTML print template into it.
have you ever use framework7 before?
how to make this template override the restriction?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
ah, i fixed it with globalStyles to false. but is there any way to setup margin on each of print? |
Use print css - or append/prepend appropriate css margins
…---- On Tue, 08 Oct 2019 22:34:31 +0530 notifications@github.com wrote ----
ah, i fixed it with globalStyles to false.
but is there any way to setup margin on each of print?
let say, i have 2 print template, one for receipt print and one for standard print, is there any option to set the margin only for standard print ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
like this one? <style id="custom-style-print"> @page { margin: 0cm 0cm 0cm 0cm; } </style>$('#print-registrasi-container').print({append: '#custom-style-print'}); |
Sure, that could work but you may be better off using one of these options: mediaPrint
stylesheet
|
Hello, I'm stuck on printing long HTML, which is need more than one page.
How i can do that? I tried to print long HTML, but the result it's get cut.
The text was updated successfully, but these errors were encountered: