Document Page Counter

Overview

The plugin returns the number of pages in PDF document, slides in presentation and sheets in excel file. This custom function can be used anywhere in the Appian expression editor by providing the document ID of the document.

Key Features & Functionality

The plugin contains functions, as follows:

  1. getnumberofpages() - Returns the number of pages in the given PDF.
  2. getnumberofsheets() - Returns the number of sheets in the given Excel.
  3. getnumberofslides() - Returns the number of slides in the given PPT.
  4. getnumberofpagesindocument() - Returns the number of pages in DOCX or DOC(Works only for the documents created using Microsoft Word)
Anonymous
Parents
  • Hello... I am currently using v1.1.3 on Appian 22.2.  We noticed that whenever we check PDFs with getnumberofpages(), the files are not deleted off of our server.  The documents are deleted from Appian Designer, but they remain on the server itself.  They are locked by Java and cannot be deleted.  Is it possible to include some garbage collection in the code so documents are not held up by Java whenever this function gets used?

Comment
  • Hello... I am currently using v1.1.3 on Appian 22.2.  We noticed that whenever we check PDFs with getnumberofpages(), the files are not deleted off of our server.  The documents are deleted from Appian Designer, but they remain on the server itself.  They are locked by Java and cannot be deleted.  Is it possible to include some garbage collection in the code so documents are not held up by Java whenever this function gets used?

Children
No Data