Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parameter $page_to_appear is zero based. The get_page_count method returns the number of pages starting with 1. The if statement does not trigger an error if 1 is provided on a document with 1 page. Reducing the count by 1 solves the issue.
- Loading branch information