[~BUGFIX] reset page number after each document, fixes #141