Hi!

I'm having trouble getting PDF files viewed in a Shadowbox iFrame. I've checked the pdf checkbox in admin/settings/shadowbox, but no luck.

I've tested in the newest versions of Firefox and Safari.

Comments

DrupalNovice’s picture

Version: 6.x-3.x-dev » 6.x-2.1
psynaptic’s picture

PDF support depends on a browser plugin being available. It's not really recommended as I think only Safari comes with one built-in.

psynaptic’s picture

Status: Active » Closed (fixed)

Closing to clear the queue. Feel free to reopen if you're still working on this.

pyrello’s picture

Category: task » support
Status: Closed (fixed) » Active

Okay, I am having a little bit of trouble figuring something out. I can have the shadowbox open a PDF without issue. When I go to view source I see that instead of being just an iframe, it is actually an iframe with an embed in it. I can't, for the life of me, figure out where the embed gets created from. The reason it is important is because I would like to restrict the toolbars that are shown to the user and make the PDF display at 100% width, which I believe can be achieved by passing in a query string to the embedded PDF src.

Any help would be appreciated.

psynaptic’s picture

Status: Active » Closed (fixed)

PDF support in browsers uses a browser plugin. I think the only thing you can do is send a width/height to Shadowbox via the JSON parameters.

Roze-1’s picture

Please some one give a solution for my query !
How to open PDF using Shadowbox , should i have to use iframe or is there any other way to open pdf from shadowbox ?
It would be helpful if someone enlighten me with this.

alexx90’s picture

I'm too looking for a solution for this open pdf on shadowbox