TheCompiler
TheCompiler

Reputation: 308

Google Embedded PDF Zoom Parameter

I want to embed a PDF in chrome such that that the document fills the available horizontal space of the plugin. (i.e. Minimal gray plugin background at the sides of the document). Is there a way to pass a parameter when I embed the PDF that can specify the zoom level I want the document to open at?

Couldn't find anything recent on this topic. I found this but it's a couple years old and Google changed their PDF viewer recently.

Upvotes: 3

Views: 4382

Answers (1)

Pavel Agarkov
Pavel Agarkov

Reputation: 3783

Now it is possible.
You can provide plugin options via url.
To set document zoom to fit window width you need:

http://example.com/sample.pdf#view=fith

where fith - stands for fit horizontally

Upvotes: 3

Related Questions