Closed (works as designed)
Project:
FancyZoom
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2008 at 22:46 UTC
Updated:
15 Nov 2009 at 11:09 UTC
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!!
Comments
Comment #1
errement commentedComment #2
thinkyhead commentedPDFs 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.