I have an embed tag like this:
<embed src="../../Content/PDF/StockReport.pdf#zoom=50" width="100%" height="100%">
the #zoom=50 is a parameter that tells the pdf reader to zoom to 50%. This works in all browsers but google chrome because chrome has a built in pdf viewer.
How can I pass this same parameter to google chrome's pdf viewer ?
Use iframe:
Example:
After checking various chrome bug reports, I can confirm that Google Chrome ignores the default functionality of Adobe PDF viewer. At the time of this answer there is no way to pass parameters (like zoom) to the Chrome PDF viewer.
It appears that a later release of Chrome may now be the answer. I had success passing
zoom
andpage
parameters through anobject
tag.Case:
Example: