PDF Widget in website X5 doesn't seem to work
Author: George Robertson
Visited 924,
Followers 2,
Shared 0
When I use the PDF widget to point to a pdf file, it fails to find the file. I know the URL is correct, because when I type it into a browser, it finds it OK. Here is the HTML generated by the widget:
<!-- Documents.PDF File: START -->
<iframe src="lethampark.co.uk/Library/Identity_Theft.pdf" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100%; height:350px;" allowTransparency="true"></iframe>
<!-- Documents.PDF File: END -->
If I type the above URL into a browser, it works OK
lethampark.co.uk/Library/Identity_Theft.pdf
Any help would be much appreciated.
George
Posted on the
Hello George,
In the link you added to the file the http:// in front is missing.
The correct could should be:
<!-- Documents.PDF File: START -->
<iframe src="http://lethampark.co.uk/Library/Identity_Theft.pdf" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100%; height:350px;" allowTransparency="true"></iframe>
<!-- Documents.PDF File: END -->
If you require any further information, please feel free to write back.
Author
Hi Claudio,
Yes, after much trial and error, I discovered the same thing. So the program does not work like a browser, where you can omit the http://www
I also discovered that to direct the PDF widget to the correct file, you need to be careful that the file name contains no spaces and that the path name and file name is case sensitive. This may be because I am using web hosting by Zen Internet in the UK, and they use a Linux based hosting system
Hello George,
This is not an issue of the program but a standard imposed for HTML where the absolute links, starting as example with www.website.com, needs to have http:// before otherwise the browsers understands it as an relative link, which could be a subfolder on your webserver.
About the space and case sensitive, it depends on the server settings, and usually it's recommended to avoid spaces and uses only small case to avoid this issue.
Please feel free to write back if you need more information.