Community

Use page number to determine end of multi-page document

I have a multi-page document where the only page element I can use to determine the end of the document is page number in the footer.

The format is:    PAGE: CurrentPage/LastPage   so for example PAGE: 6/6 or PAGE 12/12

I assume I need to parse out the page numbers from the label field and then compare are they equal. Not sure how to do this.

Appreciate any help.

0

Comments

6 comments

  • Avatar
    Rahul Kapoor

    Add a Static Text in your footer. In the static text, set the Search text as:

    PAGE: 1/1|PAGE: 2/2|PAGE: 3/3|PAGE: 4/4|PAGE: 5/5|PAGE: 6/6|PAGE: 7/7|PAGE: 8/8|PAGE: 9/9|PAGE: 10/10|PAGE: 11/11|PAGE: 12/12|PAGE: 13/13|PAGE: 14/14|PAGE: 15/15.................

    This way, it'll assume any of the above text as footer of your Search Element.

    0
  • Avatar
    PaulG

    Appreciate the reply, but I was hoping for something where I could script out recognizing each page number and doing a comparison. I implemented the hard coding solution and it certainly works, but some documents can go 30 or more pages. And I don't really know what the upper limit is, so a scripting solution would be a bit more elegant. TIA.

    0
  • Avatar
    prabu selvam

    Hi Paul,

    I am looking for Footer Keyword's [Ex: TotalAmount] Page Number. Footer would be available in any page of the Document. I need to capture the Page number of the Footer. Is there any way to get the Footer keyword's Page Number?

    It seems you have done some hard code solution.. Can I get the code to get the page Number of Footer keyword? And, where I need to write this code in ABBYY Flexilayout ?

     

    Thanks in Advance!

     

    0
  • Avatar
    PaulG

    Hi Prabu,

    I think you misunderstood my response. All I've done so far is hard code the possible combinations like 1/1, 2/2, 3/3, ...12/12, etc. I'm looking for a more elegant solution that will parse that data and do a compare. Sorry I can't help with your request.

    0
  • Avatar
    prabu selvam

    Thanks for your reply Paul :) 

     

     

     

     

    0
  • Avatar
    Mohammed Yunus

    Hi Paul,

              If I understood your question right, You're hoping to set the page number as a footer for your multi-page document?

    I have a question about that. Will the page number you seek to be the last page be always the same? Like, no matter how many pages a document has, I want the fifth page as my last page.

    0

Please sign in to leave a comment.