Solved

Make page open pdf file without adding .pdf to the end of the URL.

Posted on 2012-04-11
6
426 Views
Last Modified: 2012-06-27
I want to create a page via the "New Page" option in the backend of Wordpress site that has the URL of the new page (example: wpsite.com/newpage), but opens a file.pdf without further adding to the URL path?

Assistance is greatly appreciated. If you could create a free jing video of the procedure (www.techsmith.com/jing), then that would be even better.

Assistance is greatly appreciated.
file.pdf
0
Comment
Question by:rtod2
  • 3
  • 2
6 Comments
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 250 total points
ID: 37836283
Are you aware that browsers only open a PDF in the browser if the user has a working PDF plugin like the Adobe PDF plugin?  If they don't have a PDF reader and/or don't have a plugin, it won't open in the browser.  It will open the download dialog instead.
0
 

Author Comment

by:rtod2
ID: 37836297
Yes, I am aware. I regret that you answered with that 'instead of' vs 'in addition to' an actual solution. EE does not allow me to request attention until after a long period of time has passed. This means that this question will likely go stale for several days until it is answered with a real answer.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 37836519
Interesting response.  My comments don't prevent anyone else from adding theirs.  

I'll expand on what I was saying.  It's the plugin in the browser on the user's computer that would open a PDF.  The two ways of telling the browser to use the plugin are the '.pdf' extension and the 'Content-type: application/pdf' header.  Here http://stackoverflow.com/questions/4750252/open-pdf-in-browser-with-php is some code to open the file in PHP on the server and set the headers and send the data.  You can try that and see if it will do what you want.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:rtod2
ID: 37837982
Thank you sir.  Not sure how to do that.  I'm looking for specific steps on how I accomplish my objective.
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 250 total points
ID: 37840960
Better yet...

Load the PDF to Scribd and embed the result in your WordPress page.

>> If you could create a free jing video of the procedure (www.techsmith.com/jing

No, sorry.

>> This means that this question will likely go stale for several days until it is answered with a real answer.

Guess you're in luck then.
0
 

Author Closing Comment

by:rtod2
ID: 37841374
Not what I was looking for.  Thanks though.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Did you use a default hosting installation of wordpress with the intention of it being your actual site?  Maybe you’ve installed it as a Blog to your current site and recently converted it to be the main site and do away with the old .htm pages.  An…
How to create your own WordPress Theme Before I begin with the theme design tutorial, I would like to give you the basics of what is required to make a WordPress Theme. The most basic WordPress theme only requires 2 files: a style.css file and an…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now