Add chainable method calls and remove trailing blank pages