4

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.

Community
  • 1
  • 1
TheCompiler
  • 310
  • 2
  • 11

1 Answers1

3

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

Pavel Agarkov
  • 3,633
  • 22
  • 18