is it possible to attach pdf to article body of knowledge articles without formatting?

Ramu8
Tera Expert

is it possible to attach pdf to article body of knowledge articles without formatting?

 

Please advice

1 ACCEPTED SOLUTION

Balakrishna_ABK
Tera Guru

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.

View solution in original post

2 REPLIES 2

Runjay Patel
Giga Sage

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

-------------------------------------------------------------------------

Balakrishna_ABK
Tera Guru

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.