Click to See Complete Forum and Search --> : PDF file that refuses to open


domuk
10-10-2003, 04:50 PM
Hi all,

I am going out of my mind :eek: with a PDF file that refuses to open on my website.

It is not the code, as i have other PDF documents that work and it use to work.

I do not know if it is to do with my temp. internet files in windows XP or the if ISP is un reliable in transferring. I (for some reason cannot use FTP and have to use there file transfer system (which does not always work :mad:)
The website works a dream on my PC, but I get an error message when i try and download 1 PDF document.

"unrecognised token 16.112c05 was found"

I am opening the PDF doc with a target _blank and was considering saving the file instead (but I do not know how to do it, so advice on that would be useful too)


Please Please help,

Thanks in advance,

Dom...

Aronya1
10-10-2003, 05:31 PM
1st assumption: you've replaced the file with another, known good copy (it opens when accessed from your hard drive).

Can you post the code you're using to link to the file?

What do you mean you were considering saving the file? If you right-click the link, can you save the file?

domuk
10-10-2003, 07:48 PM
Thanks Aronya for your quick response,

I have replaced the file with another one of the same name. I then renamed it, i then re generated the pdf and renamed it again, and it still did not work.


The code is:

<a href="../../files/A4_2.pdf" target="_blank">A4 _2


When i said that i wanted to save the file, i was thinking of prompting the user if they wanted to open or save it (after they had clicked on the link).

I did think that it may be accessing my hard drive. I have deleted all my temp internet files (but nor my cookies). Could it access from the stored location on my C drive that holds the working web page?

When i right click on the file and save it to my pc and then try and open it, there is still same the error message.:(

Hope this helps..

Dom..

Aronya1
10-10-2003, 11:23 PM
Hi Dom,
A few questions/suggestions:
Originally posted by domuk
I have replaced the file with another one of the same name. I then renamed it, i then re generated the pdf and renamed it again, and it still did not work.
The file you used to replace the one in question; I assume it's on your hard drive, right? Can you open it without problem? If not, there's your problem. If you can, then just upload the file from your hard drive to the server (what you described above is a little confusing).


The code is:

<a href="../../files/A4_2.pdf" target="_blank">A4 _2
How correct is this? "../../" Remove one of the "../"
Anthing different happen if you remove the "target=" portion?



When i said that i wanted to save the file, i was thinking of prompting the user if they wanted to open or save it (after they had clicked on the link)..
I honestly don't know how this is done. Is it a Windows/Internet standard that automatically happens, or do you program for it?


I did think that it may be accessing my hard drive. I have deleted all my temp internet files (but nor my cookies). Could it access from the stored location on my C drive that holds the working web page?
It's not accessing your hard drive from the Internet.



When i right click on the file and save it to my pc and then try and open it, there is still same the error message.:(
If the file is corrupt in the first place, this would be expected.

Hope this helps..
Let us know what happens

domuk
10-11-2003, 01:46 PM
Tried 4 times without it working and on the 5th time it worked!

The code and file was the same therefore it must have been some corruption in the transmission. I have had lots of this type of thing happen with this host (however it is free).

I may move the site to someone that lets me use FTP as apposed to their error prone programs. Does anyone know of a good free host (small site aprox. 5Mb) Would like PHP and a cgi bin if possible. could put up with the adverts but would like to get rid (if it was cheep).

Also where is the best place to buy a XXXXX.co.uk address and web space?

Your advice is always welcome.

Regards,


Dom.