I think the problem is that pdf doesn't support the slicing, only HTML does. PDF is Portable Document Format. It's intended to be able to view the document on line as an actual document (you can scroll through it, or you can go full screen and each page will then display individually). When you load a PDF from a website, it will almost always open in a separate window, or it may download to your computer (it depends on the browser and the user's settings). It does not actually display within the code that runs the website.
PDFs are also intended to be printable, unless set up with protection to prevent that.