Can a PDF file be displayed on a dashboard page?

  • 38
  • 1
  • Question
  • Updated 4 weeks ago
  • In Progress
Is it possible to display a PDF file on the dashboard page?  The PDF is stored as an attachment in one the application tables.
Photo of JimLieder

JimLieder

  • 188 Points 100 badge 2x thumb

Posted 4 weeks ago

  • 38
  • 1
Did you try embedding it as an image within a rich text field on the dashboard?
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 28,004 Points 20k badge 2x thumb
This isn't really a great idea as pdf documents are typically a full 8.5" x 11" page and simply don't embed well. Nevertheless you can create a HTML code page referencing your pdf URL and embed it as a web page widget using markup similar to this:
<object data="https://eforms.state.gov/Forms/ds11.PDF"; type="application/pdf" style="width:100%;height:1600;">>
    <iframe src="https://docs.google.com/viewer?url=https://eforms.state.gov/Forms/ds11.PDF&embedded=true"&g...;
</object>
But you will probably have problems with the double scroll bars and need JavaScript to resize the <iframe> to match the size of the contents.