web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to display PDF document in an IFRAME or HTML Web Resource

(0) ShareShare
ReportReport
Posted on by

Hello All - Any suggestions on how to display an existing PDF document (present in notes attachment) in CRM Online (Either in an IFrame or HTML Web Resource?)

Thanks,

Shaik

*This post is locked for comments

  • Verified answer
    Aiden Kaskela Profile Picture
    on at
    RE: How to display PDF document in an IFRAME or HTML Web Resource

    Hi Shaik,

    You can do this but it'll be a little bit of work. Check out these two posts:

    stackoverflow.com/.../html-embedded-pdf-iframe

    stackoverflow.com/.../open-pdf-in-iframe-passing-byte-data

    In your web resource, you'll need javascript to query for the pdf note, and if you get one, convert the documentbody from a string to a byte[] then write that to the page.

    Hope this helps! I'd appreciate if you'd mark this as Answering your question.

    Thanks,

     Aiden

  • Verified answer
    Tim Dutcher Profile Picture
    on at
    RE: How to display PDF document in an IFRAME or HTML Web Resource

    Take a look at this project: https://pdfobject.com/

    It looks like it deals with different browsers effectively.

    For the URL to the PDF, I would consider streaming the pdf to Azure blob storage or other location and provide that URL. As far as I know, CRM attachments are not addressable, so your PDF will need to reside elsewhere to get to it via URL.

  • Community Member Profile Picture
    on at
    RE: How to display PDF document in an IFRAME or HTML Web Resource

    Were you able to achieve this?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans