The code is for web pages not PDFs. Not possible.
of course I don't ask exaclty that magnify effect, I've post it for example.
Anyway I undersand there isn't possibility to have magnifier in pdf at all, right?
Why to you want to recreate the loupe tool or the pan & zoom feature?
You can change the zoom level when the user hovers above or clicks the image, or you could use a hidden field that contains the image at a higher magnification and then show it.
I try to find this solution because I must create a catalog with about 500 images and your solution involves a huge manual work that I'd rather avoid!
Thank you all for the support