Added 2 patches for views_pdf