Community

Adding number of pages to output filename before sending recognition result by e-mail

There is no standart tag to add attribute 'number of recognized pages'. Using javascript on Output settings of WorkFlow did not give result. Are any working examples? Thank you.

Was this article helpful?

0 out of 0 found this helpful

Comments

2 comments

  • Avatar
    Sushi


    Launcher,

    Do you want number of pages in a batch or number of pages in the document? There is a service field for number of pages in a batch.
    0
  • Avatar
    Lachie

    You can create a field which has the total number of pages within a document by making a rule. In the rule, you can access Context.Document.Pages.

    Here's how to get the start page. 

    int startPage = Context.Document.Pages[0].ImageSourcePageNumber + 1;

    And the End Page:

    int endPage= Context.Document.Pages[Context.Document.Pages.Count - 1].ImageSourcePageNumber + 1;
    0

Please sign in to leave a comment.