I want to control the pages that is to be print by following options: 1. Print All Pages 2. Print Current Page 3. Print selected pages (like 3,4,6-9 etc)
By using window.print() all the pages gets selected by default. How can i pass the required pages for printing, so that window.print() have those pages only. I need to use JavaScript for this purpose.
Hi I made an some code sample based on my comment https://jsfiddle.net/hg9cn7hs/
in this example div with class second-page
will be ignored in print, you need to add just the custom logic for your scenario.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With