show pdf in post on wordpress

There are people who are struggling for showing PDF file in there wordpress post. Please use following steps for show pdf in post wordpress.

show pdf in post wordpress

1) Go to media -> Add New, upload a file. Once file is uploaded, you will get File URL. Copy that file URL. (Let me call it MY_PDF_URL)

This will be a complete URL, with http://yourdomain.com in it..
2) Now, go to add new post and switch to html editor. Place this code where you want to show the pdf file….

[viral-lock message=”Solution code is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]

<embed src="MY_PDF_URL" width="600" height="400">

This will work smoothly. OR you can use following code as well.


<iframe src="http://docs.google.com/gview?url=https://purabtech.in/wp-content/uploads/yourpdf.pdf&embedded=true" style="width:880px; height:1200px;" frameborder="0">

[/viral-lock]

There are also nice wordpress plugins for showing the PDF in wordpress posts.

Embed PDF

Will embed a PDF file using Google Docs Viewer Simply include the URL for a PDF document on it’s own line, or wrapped in the embed tag like

Click to access file.pdf

and the plugin will embed the PDF into the page using the Google Docs Viewer embed code. The url must end with .pdf

Supported attributes in the embed tag are class id title height and width

GroupDocs Word, Excel, Powerpoint, Image and PDF Annotate

GroupDocs Annotation lets you embed several types of files into your WordPress pages using the GroupDocs Viewer – allowing inline viewing and annotation of the following file types, with no Flash or PDF browser plug-ins required:

  • Adobe Acrobat (PDF)
  • Microsoft Word (DOC/DOCX)
  • Microsoft Excel (XLS/XLSX)
  • Microsoft PowerPoint (PPT/PPTX)

GroupDocs Annotation lets you view and comment on documents online. Its document annotation features makes it a powerful tool for collaboration. You and your colleagues can collaborate on a document, at the same time, to improve communication and speed up document reviews. GroupDocs Annotation lets you work with text-based documents as well as images. You can collaborate on layouts, drawings and designs just as effectively as on articles, stories and corporate documents. In short GroupDocs Annotation lets you annotate on many file formats including PDF’s, Word documents, Excel documents, Powerpoint documents and many other available formats.

show pdf in post wordpress
show pdf in post wordpress

 

for showing flash intro in sites and flash with wordpress website, we have written article. You might need for your website.