- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 11:36 PM
is it possible to attach pdf to article body of knowledge articles without formatting?
Please advice
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2024 01:09 AM
Hi @Ramu8 ,
Of course we can convert the .PDFs/PPT's to .DOCX, then import those documents using the OOB functionality, but the formatting is never perfect.
Here is a solution where we can attach .PDFs/PPT's as article body without formatting.
Step1 : Update the OOB Script include: HTMLSanitizerConfig
Step2: Create a knowledge article and attach required pdf to it.
Step3: Goto ‘sys_attachment’ table and copy the sys_id of the required pdf.
Step4: Update the source code by pasting the sys_id which you copied.
Step5: Save and Publish the Article.
Your Article will be displayed with perfect alignment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2024 12:41 AM
Hi @Ramu8 ,
Attaching a PDF directly to the Article Body of a Knowledge Article isn't supported as a file attachment. However, you can Attach the PDF to the Knowledge Article and Provide a Link
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2024 01:09 AM
Hi @Ramu8 ,
Of course we can convert the .PDFs/PPT's to .DOCX, then import those documents using the OOB functionality, but the formatting is never perfect.
Here is a solution where we can attach .PDFs/PPT's as article body without formatting.
Step1 : Update the OOB Script include: HTMLSanitizerConfig
Step2: Create a knowledge article and attach required pdf to it.
Step3: Goto ‘sys_attachment’ table and copy the sys_id of the required pdf.
Step4: Update the source code by pasting the sys_id which you copied.
Step5: Save and Publish the Article.
Your Article will be displayed with perfect alignment.