locked
CRM 365: set PDF-data as source in Image (in Javascript) RRS feed

  • Question

  • Hi,

    I have a ajax-call to a backend-server that returns the documentbody of an attachment.
    I want to show this as a pdf-document on the client. I get a 200-response back with data populatet for the documentbody-attribute, but the pdf isn't showing...

    Here are the code.

    regards,

    Marius H. Enerud


    • Edited by morris80 Sunday, January 22, 2017 9:45 PM
    Sunday, January 22, 2017 9:45 PM

All replies

  • I found out that PDF's won't work with IMG-tags...

    I have now tried to the following:
    Using "object"-tag instead of "img":

    This actual work for CHROME: I can see the pdf. But not for IE 11...
    In IE11 a gray box are showing were it should show the PDF. What am I missing?
    It is essensialy that it also work for IE.

    I'm closer the a solution but I'm still not there...

    regards,

    Marius H. Enerud

    Monday, January 23, 2017 3:02 PM
  • Could it be possible to use pdf.js to render PDF documents in IE11?
    Anybody having tried using pdf.js in CRM?

    regards,

    Marius

    Saturday, February 4, 2017 7:56 PM