Online Chat
 Call Us: 
1-877-744-1221
Browse Submit a Ticket
 
Advanced Search
Tools
Rss Categories

Embed PDF file to an article

Author: Edward Hardin Reference Number: AA-00542 Views: 11514 Last Updated: 04/15/2013 02:13 PM 0 Rating/ Voters

There are several ways to integrate PDF files into your KB.

  1. The simplest way is to attach them to articles. End-users will be able to download the PDF files.
    KMP makes search index for PDF files, so they will appear in search results along with the articles.





    Pros: easy method, files are searchable, easy to read PDF (since you can use the whole screen for this)
    Cons: to view a PDF file you need to download it

  2. Embed with Google Docs tool.
    Just insert the following code to an article source with replacement of the highlighted text with the URL to your PDF. You can also customize width, height and borders of the widget. You don't have to sign up for Google Docs, just upload it to your website, and call it from your page: 
    <iframe src="http://docs.google.com/gview?url=http://web-site-scripts.com/downloads/KnowledgeBase-Manager-Pro-Datasheet.pdf&embedded=true" style="width:718px; height:700px;" frameborder="0"></iframe>
    The highlighted link is the link to the PDF file.

    Pros: nice viewing widget, embedded directly to a webpage
    Cons: not searchable via KMP search function
  3. It is also possible to use <embed>, <object>, or <iframe> HTML tags to embed PDF files, but these methods are strongly not recommended, because they are not cross-browser and most of your clients won't be able to view a document embedded in this way, they rely on availability of PDF plugin in user browser, and sometimes lead to browser crashes.
Combinations of different methods

Since methods #1 and #2 have both cons and pros, you can get maximum benefit if you use both methods in conjunction: attach your PDF file to an article, and also embed it using Google Docs widget. In this case you would get searchable document that can be viewed right on the web page.



Attachments
sample.pdf 0.9 Mb Download File