16.6 Previewing BLOB Column PDF Files Inline
To preview a PDF file stored in a BLOB column, use an
iframe.
This HTML tag lets you include one page's contents as part of another page. To simplify setup, create a template component that lets developers just set the URL of the file to preview. Combine this with a page that downloads the PDF file inline. To finish the job, adjust your application's Embed in Frames browser security setting to allow embedding a frame from the same domain.
- Creating PDF Viewer Template Component
Use a Template Component to simplify viewing PDF files inline. - Serving an Inline PDF from a BLOB Column
Use a page to serve inline PDF data. - Using PDF Viewer in Job Referrals Page
Use a PDF Viewer template component to display a PDF file inline in a page. - Allowing Embedding from Same Domain
Allow same-origin frames so the PDF Viewer can preview inline PDFs served by your app.
Parent topic: Uploading, Viewing, and Downloading Files