<img> type PDF & more
errement - August 21, 2008 - 22:46
| Project: | FancyZoom |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | by design |
Jump to:
Description
I wonder why it can't use PDFs!!
I tried to change the first function prepZooms() on ../js/src/FancyZoom.js file to (included the PDF with all types):
function(i) { var h = $(this).attr("href"); return (h && h.search(/(.*)\.(jpg|jpeg|gif|png|bmp|tif|tiff|pdf)/gi) !== -1 && $(this).attr("rel") !== "nozoom"); }Also changed same on ../js/FancyZoom.min:
jpg|jpeg|gif|bmp|tif|tiff|pdf
But haven't fixed what i wanted!!
How could i get it working, allowing pdf files gotten read by FancyZoom?
Also wanted to know how to use it with .flv, .html, (movies, videos, documents & …)
Thanq!!

#1
#2
PDFs are too complex for javascript to manage, let alone FancyZoom. There is no facility to look at the size of a PDF. PDFs are handled by browser plugins. You'll need to look elsewhere, or customize the script in such a way as to use the maximum area and embed the file in an iframe.