A small fix for the ignoring pagination
Added feature to sanitize the pdf content