Display PDF file in articles

You can display PDFs inside your articles using the Google Docs embed viewer. This allows you to embed your PDFs inside articles similar to how you can embed YouTube videos using an embed code. 

Embedding PDFs is often easier for both users and readers. Users don't have to convert the PDFs to web format, and readers can view the PDFs without having to download them. KnowledgeOwl also indexes the content of uploaded PDFs for search so your readers can find articles in search even if the text is inside a PDF.

To embed a PDF in an article using Google Doc viewer...

  1. Upload the PDF to KnowledgeOwl to get the URL. You can upload files under Files > Library, or you can upload the file directly into the article. Both will give you the link.
  2. Click on Code View (Source) in the WYSIWYG editor to get to the HTML and paste the following code where you want the PDF to appear.
    <iframe src="https://docs.google.com/gview?url=https://app.knowledgeowl.com/app/image/id/539b6043fe775a8348000003/n/Example-Article.pdf&embedded=true" style="width:100%; height:750px;"></iframe>
  3. Replace the bold URL with the URL of your PDF and save.

Here's what a PDF looks like embedded in the Google Doc Viewer.