Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calculate number of pages which will print using Javascript window.print

Tags:

javascript

My Client requirement is to show to make a customized page print using window.print method of js. major Issues are

How I can check how many pages are creating of letter size page when content is populated dynamically?

If content is choping at the end of page it may automatically transfer content to next page. Now is it possible to check whether content will chop or not at the end of page when data in populated dynamically depending upon number of entries filled?

like image 299
Uzair Avatar asked Feb 05 '13 14:02

Uzair


1 Answers

Unfortunately you can't calculate the number of pages that are going to be printed, but you can force content to a new page using page breaks.

like image 198
Rodrigo5244 Avatar answered Oct 04 '22 03:10

Rodrigo5244