# Way to calculate number of "printing pages" from txt or htm

**URL:** <https://www.ruby-forum.com/t/way-to-calculate-number-of-printing-pages-from-txt-or-htm/184326>\
**Category:** Ruby\
**Created:** [March 1, 2010, 12:51am UTC](https://www.ruby-forum.com/t/way-to-calculate-number-of-printing-pages-from-txt-or-htm/184326 "2010-03-01T00:51:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aneeley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/48db29/32.png) [@aneeley](https://www.ruby-forum.com/u/aneeley)\
**Post date:** [March 1, 2010, 12:51am UTC](https://www.ruby-forum.com/t/way-to-calculate-number-of-printing-pages-from-txt-or-htm/184326/1 "2010-03-01T00:51:01Z")

</div>

Hello Ruby friends!

Could anyone suggest a way to calculate how many pages a txt or htm  
would take if I were to print them?

Any help will be much appreciated.

Regards,

Adam
