Fixed #1235 (DeprecationWarning in utils.views.PDFView)