Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get No. of pages to print on web with javascript

How can I detect the number of printing page will be on a form using JavaScript?

I need to get the number of pages that a form would be so I can stick a watermark per page to be printed.

Thanks.

like image 247
Amra Avatar asked Nov 30 '22 19:11

Amra


1 Answers

I'd recommend that you read this article by A List Apart

@page front-matter :left {
  @bottom-left {
    content: counter(page, lower-roman);
  }
}

(this uses CSS3)

like image 190
marcgg Avatar answered Dec 05 '22 06:12

marcgg