I have a simple question for you gurus: I’m posting my resume online to geocities and I just need to find out how to tag the HTML to post it. Can someone help me with this? I just want the simple pdf file on the site, nothing else.
You link to it the same way you link to any other file.
<a href="/path/to/my/resume.pdf">This is my resume. (It's a PDF file.)</a>
thanks Freido, but how can I post it without the text? You click on the link and go straight to the page…
Your question does not make sense.
HTML is primarily concerned with organizing text and images on a screen. It treats a PDF like it treats any non-text, non-image file; if the visitor to your page has a browser plug-in for PDFs, the browser will (probably) display the PDF on his screen. otherwise, the browser will download the PDF to his computer, and he can open it there.
If you want to convert the PDF to HTML, there is no standardized way to do it directly. If you want to do something else, please explain it in greater detail, and we’ll try to help you.
If you want to do something else, please explain it in greater detail, and we’ll try to help you.
Thanks for the reply. I have a geocities account and a single PDF file. If you go to this site: http://www.copyright.gov/legislation/dmca.pdf
…(as a random example), there is nothing on that page but a PDF file. This is what I want for my site.
Freido’s response was to put in a tag so that when you visit the site you click on a hyperlink to get to the PDF. I don’t want a hyperlink, just the PDF file.
I still don’t understand the distinction you’re trying to make. You just posted a link to a PDF file. If that’s what you want, then just give someone a link to the PDF file.
I think he wants http://his.url.com to directly load the PDF. As far as I know, won’t happen. You’ll either have to provide a link to visitors on some HTML page viz. index.html in your Geocities account. If you don’t want to do that, convert the PDF to HTML (google for convertors) and name it index.html.
Without WHAT text?
If you mean a link like this www.google.com, where the visible words are the URL, you do that like this:
<a href="http://www.google.com">www.google.com</a>
In other words, you provide text that’s the same as the URL you’re linking to. You always have to provide some text or else there’s no link to click. It’s simply a common webuser’s convention to provide human readable text that looks like the actual URL.
The browser displays whatever text is between the end of the tag and the tag. And if the user clicks on that text the browser goes to whatever is in the href="…" part. So there’s nothing to prevent a bad guy from doing something like this:
<a href="www.EvilSiteforHackers.com/TakeoverYourPC.html">www.google.com</a>
The link looks like it goes to Google but it really goes to EvilSiteforHackers.com.
You can even so the same thing here on the SDMB with the [ url ] tag: www.google.com
If you want a link to send to someone, over email or whatever, then you can just do it like this:
http://www.mysite.com/myresume.pdf
This will cause their browser to fetch that file, and launch Acrobat Reader to display it.
If your question is how to make so that you can give someone the simple url http://www.mysite.com/ and then have that display your PDF, this can be done with a redirect. If you don’t have access to HTTP headers, you can put in a default web page (index.html usually) that has HTTP-equiv headers to redirect to the PDF file. However, I wouldn’t recommend this because it’s so nonstandard that you’d be confusing your visitors.
I think what he wants is for the PDF to load when someone goes to his site. In which case, you would need a redirect. Some simple JSP could do it very easily and there are abundant tutorials on the web as to how to do it.
However, I would strongly reccomend against redirecting to a PDF. Some people dont have Acrobat installed for whatever reasons and it would be hard to figure out what went wrong.
Not necessarily. CurtC’s method works.
The program does not convert PDF to HTML. What it does is to create PNG images of each page, which you can then use on a website.
Looks like a rather expensive way (in terms of disk space) to do things.
There are two ways to achieve what I believe you are trying to.
The first is to change the webserver settings to allow resume.pdf to be the default page. As you sya you are using a Geocities account this will not be possible.
The second, as Shalmanese mentioned, is to use a redirect. As it is a Geocities account you will probably have to use javascript. Put your pdf in the root of your geocities directory and edit the index page to have the following text
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!--
window.location="resume.pdf";
// -->
</script>
</head>
<body/>
</html>
Fez
If, for some reason, you are unable/unwanting to use JavaScript, there are two other alternatives.
In your index.html you can use the following:
- (inside the <body></body> portion of your page
<iframe src=“resume.pdf” height=“100%” width=“100%” name=“resume”></iframe>
- (inside the <head></head> portion of your page
<META http-equiv=“refresh” content=“3;URL=resume.pdf”>
In both cases, resume.pdf is the name/location of your resume in pdf format. If the pdf file is uploaded to your GeoCities account, just the name of the file should do.