Altered method of compiling pdfs because of cancan