How can I view a PDF inside a KB article?

Cory Miller
Giga Expert

I would like to use the ton of PDF documents as KB articles without having to download and open the PDF separately.

 

PDF player inside KB or

 

Convert the PDF to ??

45 REPLIES 45

Hello JD,


In case you have not already found this, you can add it to the kb_view_common_body macro, within the div content area, and it will be placed between the header and footer of the article.



<div class="kb-view-content-wrapper">


  <g:inline template="kb_view_notification" />


  <g:inline template="kb_view_common_header_banner_image" />


  <g:inline template="kb_view_common_content"/>


  <g:inline template="kb_view_custom"/>


  </div>



Best regards,
David


Hi David,



Does the PDF Viewer work for you? IF yes, can you please let me know what all do i need to do to get it working. I am in a fix and have been brainstorming a lot but still have not yet come up with a solution. Please help if you can.




Thanks,



Abhishek


Hello,


It does work for me on Fuji.   After downloading the update set from the Share site, update the kb_view_common_body macro as I mentioned so that the PDF viewer area is in the right position on the KB article.   After you have attached a PDF to the KB record, there will be a PDF List field that lists any PDF attachments that have been stored on that record.   Select the PDF from the list and save the change.   This should be all that is needed to get it to work.



Hope it helps!



Best regards,
David





abhishekbasu
Kilo Expert

I want the solution to this. I have tried all the steps mentioned here yet the PDF attachments does not get displayed. The only option i get is downloading the file. Please help me out, how can I view it as a PDF without having to download it. I am running on Fuji instance.


Make sure your "glide.ui.attachment.force_download_all_mime_types" sysproperty is set to false