offline mode for showPDF