1

on my page http://brigadatest.8u.cz/webovky/vzhled.php (I am still developing it) I have a link which opens a PDF file saved on server. The problem is, that web browsers open it minimized (80%). Is there some way, how to "say" to the browsers they have to open it maximized (cca 200%)?? You can see how it works on that page, just click on the green button with name "ceník".

Erik
  • 303
  • 1
  • 3
  • 12
  • You have a hyperlink to a pdf file. When the user clicks on the link, the pdf is sent across the Internet and opened in the user's browser. This is so common, you don't have to even mention it. – Andrew Koper Sep 01 '16 at 17:12

1 Answers1

2

If you want to open a new window with the zoom set, then the solution I propose would only work for Firefox but not for Chrome nor IE.

All you have to do is to append the #zoom=100 or #view=fit to the end of the url and that would do the trick.

I researched about Chrome and IE not being able to interpret the zoom and view attributes, but only found this OP that mentions Chrome.

If you want to support the major browsers, I suggest you use an iframe, object or embed and manipulate their zoom or view attribute.

I created this working example that makes use of iframe and set its zoom to 20% and 100%.

Hope this helps.

Community
  • 1
  • 1
n0m4d
  • 832
  • 6
  • 12
  • 1
    #zoom works in firefox and chrome :) thx! I'll try that iframe tomorrow, because #zoom doesn't work in IE and microsoft edge. However if even iframe isn't do the trick for IE, i won't really care, It's IE... :D – Erik Sep 01 '16 at 18:02
  • @Erik what version of Chrome did you test? – n0m4d Sep 01 '16 at 18:08
  • Version 52.0.2743.116 m (64-bit) I downloaded it 2 days ago – Erik Sep 01 '16 at 18:10