You are not logged in.

#1 2008-12-15 02:45:30

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Page Count?

Has anybody heard of a "page count" program that works similar to wc? I like writing my stuff in a text editor, but sometimes it's good to know how many pages, as printed, I've turned out. Currently I just paste into OO.org now and then, but it's obviously not optimal. Something that could produce a page count from some general information like the paper size, margins, font size, and line spacing would be a godsend.

Offline

#2 2008-12-15 02:56:17

Hrod beraht
Member
Registered: 2008-09-30
Posts: 186

Re: Page Count?

How about just using OO.o Writer? It will save in plain-text (.txt)

Bob

Offline

#3 2008-12-15 06:50:19

wirenik
Member
Registered: 2008-08-22
Posts: 134

Re: Page Count?

pauldonnelly wrote:

Has anybody heard of a "page count" program that works similar to wc? I like writing my stuff in a text editor, but sometimes it's good to know how many pages, as printed, I've turned out. Currently I just paste into OO.org now and then, but it's obviously not optimal. Something that could produce a page count from some general information like the paper size, margins, font size, and line spacing would be a godsend.

You could always figure out the average number of words per page in your standard printout, then use wc and some quick arithmetic...maybe even type up a quick shell script to get it done, or something. big_smile


moljac024: No one really knows what happens inside /dev/null... it could be a gateway to another universe....
dunc: If it is, the people who live there must be getting pretty annoyed by now with all the junk we send them.

Offline

#4 2008-12-15 08:11:03

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: Page Count?

Hrod beraht wrote:

How about just using OO.o Writer? It will save in plain-text (.txt)

That would require using OO.o Writer for an extended period of time.

wirenik wrote:

You could always figure out the average number of words per page in your standard printout, then use wc and some quick arithmetic...maybe even type up a quick shell script to get it done, or something. big_smile

Yeah. It would be fixed to a particular font, page size, and margins though. It might not be too hard to write a program that calculated the actual size based on the font and your text.

Offline

#5 2008-12-15 08:37:05

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Page Count?

You would need to know the line height, line spacing, width of each character in the font with the current size, page size, page margins, and word-break policy... assuming that there is no additional text formatting (headers, footnotes, bold text, etc).

It's obviously doable, but I suspect it will be a PITA to implement an accurate script.

Does OO.o Writer (or some other editor) have any command-line options that could help? What about writing a script to load your text into a LaTeX file then convert it to dvi/pdf and check that?

Last edited by Xyne (2008-12-15 08:37:33)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2008-12-15 18:14:09

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: Page Count?

Xyne wrote:

What about writing a script to load your text into a LaTeX file then convert it to dvi/pdf and check that?

Yeah, that's the easiest thing I've thought of. Not sure how long such a thing would take to run though.

Offline

#7 2008-12-15 21:45:55

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Page Count?

print to a postscript or pdf files, then count the pages in there? http://wiki.archlinux.org/index.php/CUP … al_Printer

Offline

Board footer

Powered by FluxBB