Use $page->filesManager to get the paths and urls to the PDF

Makes module compatible with pageFileSecure feature.