how to change each pdf page to bytes
===

Is there a method to change each page to bytes? I need c or c++ code. Because I want to encrypt each pdf page, and I can encrypt bytes data, also I want to know when I encrypt each page, is it still a pdf file, and just each page is Garbage characters(unreadable codes, messy code).