I am trying to create a Token which will return the number of pages in a document.
I am using the Assign Token and Token Calculator.
They only way I can find to do it is the following.
Repeat (Until Page Count is not 0 )
Token Calculator + 1
Move Pages (Which means I need to create a new document from the original and delete pages until 0 )
Assign Token to Token Calculator
Is their an easier way to count the pages without having to delete the pages and create a new document as a method to count the number of pages in a document?
Question
Question
Document Page Count Token in Workflow
Answer
Good news! Workflow 9 makes it way easier to figure out how many pages are in a document. In fact, you can do it in one and a half activities. Use ‘Retrieve Document Text’ to grab all the generated text, and be sure to check the option for ‘For each page, create a separate value in the multi-value Text token’. Now you’ve got a token with as many values as there are pages in your document. All you need to do is count how many values there are to figure out how many pages.
To count the values, you can use that token you’ve just created with the ‘Value Count’ function applied. To use ‘Value Count’, just right-click on the name of the token, choose ‘Token Editor’, ‘Apply Function’, and add ‘Value Count’. Now, instead of returning a multi-valued token with the text of your document, you’ll return a single-valued token with the number of pages.
Replies
See the following thread for a more efficient solution: http://answers.laserfiche.com/questions/27507/Page-Count-in-Workflow#46639