@atjnjk - in this release I made a performance optimisation which Kovid had suggested a while ago (his comment was a generalisation to do with using a particular part of calibre he had changed). I applied that to this plugin - but until you made the comment I stupidly didn't realise that using the optimisation directly affected the character counts.
I'll sort out a new version, but first I want to put in an optimisation for pdfs that will read the information directly from the pdf rather than trying to calculate it using any of the algorithms. A pdf is the only book format that truly does have a "page". I think it is desirable that in the situation of only having a pdf format available (and wanting to count pages in it) that this plugin avoids the potentially large performance penalty of converting to epub and estimating counts based on that, and gives you the *actual* page count instead.
|