Embedding a pdf to self hosted wordpress blog

January 22, 2009 at 6:13 am Leave a comment

I was wondering how a pdf file can be attached to my self hosted wordpress blog. Couldn’t find the solution. PDF Upload goes half way and then returns IO Error.

Browsed through lots of forums and found an alternative, not the exact solution. The easiest way is to embed a pdf, here is how:

Upload your pdf to ftp say /blog/wp-content/uploads/2009/01 folder. Say your pdf file name is yourpdf.pdf

The complete path would thus look like: /blog/wp-content/uploads/2009/01/yourpdf.pdf

Now, go to the post where you want to embed the pdf object. In the same post swich your view to HTML and paste the following code:

<embed src=”http://www.yoursite.com/blog//wp-content/uploads/2009/01/yourpdf.pdf&#8221; width=”400″ height=”300″> </embed>

You can change the height and width to suit to your interface requirements.

If anyone has come across a solution to attach a pdf, pl. let me know.


Entry filed under: Blog, Software, Technology, Web 2.0, Wordpress. Tags: , .

From FeedBurner to Google Migration Steve’s email to Microsoft Employees

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Blog Stats

  • 7,150 hits

Top Clicks

  • None

%d bloggers like this: