Link to home
Start Free TrialLog in
Avatar of nflynn85
nflynn85

asked on

How to make a PDF accessible through IIS

I tried doing a lot of research online via google but couldn't get a straight answer. Can someone walk we me through how to make a PDF accessible/available as an HTTP address that would be served through IIS? I wasn't sure if I needed to create a new site or if I could somehow nest it in one of my current sites.

IIS Version 7.5.7600.16385
Avatar of Emmanuel Adebayo
Emmanuel Adebayo
Flag of United Kingdom of Great Britain and Northern Ireland image

You will need to configure .pdf in MIME which will which maps the application to server the pdf.
Is your site not display PDF but instead prompts to download or something like that?

All you need to do is define .pdf in the MIME Types section.

Open IIS and click on your site in the left column, then over in the menu of icons on the right under IIS you should see one called MIME Types.

Then click the Add button in the top right, and add pdf and give it a description. You may have to restart IIS to make the change kick in.
Avatar of nflynn85
nflynn85

ASKER

Is your site not display PDF but instead prompts to download or something like that?

Neither. I need to create an HTTP link for a PDF that is stored on my server.

The .pdf extension is already added to the MIME Type
You have to have a web server / site that includes the PDF as file that has a link.  The PDF by itself is not enough to create a link that will work.  It must be a file inside a web site folder.
You have to have a web server / site that includes the PDF as file that has a link.  The PDF by itself is not enough to create a link that will work.  It must be a file inside a web site folder.

Okay so if I throw that PDF into an existing web site folder in one of my sites (or create a new folder in a site),

what steps do I take to get from point A to point Z?
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Put it in the existing web site folder and create a link to it.  If it is located in http://www.mydomain.com/  then you can put the PDF in the root and make a link to http://www.mydomain.com/thatpdf.pdf .  It does Not have to show as a link in the web site, the link will be good if the file is in the right place.  I have done that many times to let the person I send the link to download a file that nobody else knows about.

So do I right click on the folder within the site that contains the PDF and select add application or add virtual directory? I don't see an option to create a link anywhere
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ahhhhhhhh. Got it.

What If I wanted it to show up as a hyperlink on a web page?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial