fixed autodownload problem for pdfs

Use pdf-frame for showing pdfs