The code places the PDF Viewer in a partial razor view. I am using Zurb Foundation to display a modal dialog. The PDF viewer displays on the modal dialog. I am using the OnRender to change the PDF viewer to fit to width. What I am seeing is the first time that the PDF file is rendered, the PDF file is smaller than subsequent renders while the modal dialog is open.
For example, on the first render of the dialog, I see the following( see attachment FirstRender.png).
While the modal dialog is displayed, I change to another zoom selection and back to fit to width. This render does appear to fit to width (see attachment SecondRender.png). Repeating the switch between the selections and back to fit to width yields the same result where fit to width seems to work (see attachment SecondRender.png).
Is there some way I can get the first render to fit to width like the subsequent renders?