Skip to main content
New Participant
Jun 28, 2024 7:44 AM UTC
Question

Need to count the number of Pages in Word Document

Hi All, 

We have a requirement for counting the number of pages in a word Doc , Is there any solution for this. 

Already tried to convert to PDF and to take the count but format is getting changed and not getting the exact count.

    4 replies

    stefanhelzle0001
    Brainy
    Jun 28, 2024 9:16 AM UTC

    I am not aware of any ready made function to do this. Our of curiosity, what is the background of this requirement?

    anamf0002Author
    New Participant
    Jun 28, 2024 9:21 AM UTC

    So we have to sign at a last page of a dynamic generated Word Document to get the position where we need to sign , we need to count the number of pages in Doc.

    davidj137213
    Brainy
    Jun 28, 2024 2:41 PM UTC

    If the document was generated with Word, you can use this plugin

    community.appian.com/.../document-page-counter

    Known Participant
    Jun 30, 2024 4:32 AM UTC

    Install Document Page Counter plugin in Admin  Console

    Try using this function getnumberofpagesindocument() - Returns the number of pages in DOCX or DOC(Works only for the documents created using Microsoft Word)