Free Support Forum -

Calculate lines- words or inches

Hi there:

Does Aspose.word calculate how many lines, words or inches for the current doc file?



Hi Alan,

Thank you for considering Aspose.

At the moment Aspose.Word simply return document properties stored in the document file by MS Word when saving. However, we are going to add a method to recalculate document statistics such as number of characters, words and so on. The number of lines will be available to recalculate only after we finish implementation of the pagination engine (it’s in beta state currently). I’m unsure what measurement you mean by “inches”, please elaborate this point.

Thanks for posting back.

>>I’m unsure what measurement you mean by “inches”,

Means the height of word doc.

By the way can I insert image into word doc using Aspose.word.


Height of the whole document will be possible to calculate after the pagination engine has been implemented.

Inserting images into a Word document is surely possible, see the DocumentBuilder.InsertImage method.

How long will take to get it(calculation) done?


If you mean an estimated timeframe for implementing the pagination engine, this is a few months.

Good to know.


Could you please keep me posted when you get it done?


Sure, we will certainly notify you.

Hi Alan,

We have released Aspose.Word 3.1.

  • Added Document.UpdateWordCount that calculates number of characters, words and paragraphs in a document and stores the values in the corresponding Document.BuiltInDocumentProperties.

    Thanks for letting me know.

    For my application, I still need to measure the number of lines and inches. I will wait until you get it done.