Compile and render pdf when 'Show PDF View' button is clicked.