• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 453
  • Last Modified:

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

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
rtod2
Asked:
rtod2
  • 3
  • 2
2 Solutions
 
Dave BaldwinFixer of ProblemsCommented:
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
 
rtod2Author Commented:
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
 
Dave BaldwinFixer of ProblemsCommented:
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
rtod2Author Commented:
Thank you sir.  Not sure how to do that.  I'm looking for specific steps on how I accomplish my objective.
0
 
Jason C. LevineNo oneCommented:
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
 
rtod2Author Commented:
Not what I was looking for.  Thanks though.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now