I now encounter a problem. Maybe you can help.
When I execute the javascript command to open a pdf file in Chrome, the first time a pdf is opened it auto-fits the content to the width of the window. When I execute the command again on the same webpage to open another pdf, this pdf is not auto-fit to the window width. I get a very small image of the pdf in de Fancybox window. See image attached.
This problem only occurs in Chrome when I execute Fancybox direct from javascript. When I do the same in Firefox, every pdf is auto-fit to the size of the Fancybox window. The problem also does not occur in Chrome when several pdfs are opened using normal fancybox links on the webpage.
Is there a way to force the pdf content inside a Fancybox window to always fit to the width of that Fancybox window?
Regards.