Adding code to PDF View