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

Victor Zhu CAN
Tera Contributor

We've been using Jonathan's pdf viewer from shared app in fuji KM V3 for over a year now. It's been one of the success factor made our KM program popular.


We recently upgraded our instance to Helsinki, and this pdf viewer stopped working. After some digging, I'd like to share our workaround just brings this legacy back alive again in Helsinki:



After the Helsinki upgrade,   a new OOB UI macro with exactly the same name as "kb_view_common_body" was added.


In our case, we have two "kb_view_common_body" in active.



1. Deactivate the old "kb_view_common_body" by looking up the update versions, you should see the one has a footprint from "Update Set: FP - Knowledge PDF Inline - Local update". Just go ahead to deactivate it.



2. Bring up the new OOB UI macro "kb_view_common_body".   Insert the following line right above "</div>" (line 11)


<g:inline template="kb_view_custom"/>



Save/update the UI macro. Your pdf viewer should be back alive in Helsinki. Hope it helps.


This didn't work for me, but I just reqlized that I am now in Kingston.

Here's what I did:

 

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<j:if test="${showPillBox}">
<g:inline template="kb_view_common_header_toolbar" />
</j:if>

<div class="kb-view-content-wrapper">
<g:inline template="kb_view_notification" />
<j:if test="${versioningInfo.isInstalled}">
<g:inline template="kb_view_version_warning"/>
<g:inline template="kb_view_custom"/>
</j:if>
<g:inline template="kb_view_common_header_banner_image" />
<j:if test="${versioningInfo.isEnabled &amp;&amp; versioningInfo.showHistory}">
<g:inline template="kb_view_version_history"/>
</j:if>
<g:inline template="kb_view_common_content"/>
</div>
<g:inline template="kb_view_common_footer"/>
</j:jelly>

jduchock
Kilo Contributor

For some reason, the link to the share where this was available is now no longer available.

If anyone has the old update set kit handy and wouldn't mind sharing it, please let me know as i would like to have this again 🙂

 

Thanks

John

Hey Duchock, 

 

This should be the file you're looking for. 

 

Enjoy!

Britt

dennismagnuson
Kilo Expert

I did an update to the old download and posted here:

PDF Viewing in-line in Knowledge Article in Portal

Dennis