Add PDF to pres example, and error dialog