Embedding a viewable pdf in a knowledge article

Chuck_P
Tera Contributor

We want to be to present the content of a pdf in the knowledge base article. We put in the iframe source code to present the pdf. It works in draft mode. When we submit the article, it loses one line of iframe code: the src line with the url address that references the attachment. Basically, we are experiencing what this guy on youtube experienced and couldn't solve https://youtu.be/wGZ_ADn87wU?si=nXs4jIFf_WC0xB4Y.  Thanks for the help.

There is a hack you can use to embed PDF in Service now KB article, otherwise it will just download the PDF each time you want to view it which can be quite annoying.
2 REPLIES 2

HK_GAC
Tera Contributor

We are having the same issue, it is working on our TEST instance, but not on our PROD instance.  I have compared various HTML settings mentioned across the forum and nothing is set differently.  We would appreciate some assistance as well.  

Leo83
Tera Contributor

Let me know if this helps:
Go to your HTML_WHITELIST and do the following: (HTMLSanitizerConfig - script include)

Leo83_0-1724954371433.png