1. A method for detection of page numbers in a document comprising: identifying a plurality of text fragments associated with a plurality of pages of a document; from the identified text fragments, identifying at least one sequence, each identified sequence comprising a plurality of terms, each term derived from a text fragment selected from the plurality text fragments, the terms of a sequence complying with at least one predefined numbering scheme which defines a form and an incremental state of the terms in a sequence; computing a subset of the identified sequences which cover at least some of the pages of the document; and construing of at least some of the terms of the subset of the identified sequences as page numbers of pages of the document.