- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2019 09:49 AM
Still waiting on some way to natively display .PDF files within a knowledge article. I know there used to be an app on Share that would handle this, but I'm not finding it anymore (and I think it got deprecated). Currently, I'm having my user base convert the .PDFs to .DOCX, then import those documents using the OOB functionality, but the formatting is never perfect. I suspect the same challenges will exist if I have them convert to HTML.
Does anyone have a good solution for this?
Solved! Go to Solution.
- Labels:
-
Knowledge Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2019 11:44 PM
You can use ServiceNow Document Viewer plugin to display PDF in articles.
1. Whitelist iframe tag and src, height, width attributes by updating HTMLSanitizerConfig.
2. Enable ServiceNow Document Viewer plugin. I think this requires additional license.
3. Attach PDF file to your article. Use source code button to open HTML Source code of the article and add iframe tag to display PDF in your article. The sysparm_sys_id parameter is the sys_id of your attachment.
4. Publish your article.
Article will be displayed as shown below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2020 04:04 AM
This works brilliantly - I've done it today in Orlando. And I'm not seeing issues with users viewing it.
Thank you so much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2020 04:06 AM
This works brilliantly - I've done it today in Orlando. And I'm not seeing issues with users viewing it.
Thank you so much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2021 10:31 PM
We are going to have same configuration for more that 500 knowledge article , to get view of PDF.
I have concern about performance issue, is there any impact on service portal performance at time opening PDF file knowledge article .
Please do revert if you have any idea about this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2021 05:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2021 04:09 AM
Hi Rajesh,
Thanks for the suggestion. I have followed the same and unfortunately whenever I attach a PDF to the KB article I created and edit the source code and save it, It is gone.
I am not able to view the pdf after I save the article, however I do see the preview on the "Article body" if I do not make any actions (Save/Publish)
Could you please help how to get this sorted?
ServiceNow Consultant
United Kingdom