Specify the zoom rate of a pdf file opened in a popup
Posted: Fri Jun 29, 2007 6:20 am
I would like to display a pop up containing a pdf content after user clicks on a link.
Therefore, my javascript snippet is as follows:
It works out. However, I would like to display the pdf content at a specific zoom rate i.e. 70%, 80%...
Could someone pls show me how to handle this?
Thanks
Therefore, my javascript snippet is as follows:
Code: Select all
function showWindowPDF(FileName,name,width,height)
{
var objWindow;
//objWindow = window.open('pdf/'+sFolder+'/'+FileName,name,"menubar=no,scrollbars=yes,width="+width +",height="+height)
objWindow = window.open('pdf/'+FileName,name,"menubar=no,scrollbars=yes,width=800,height=600");
if(objWindow)
objWindow.focus();
}Could someone pls show me how to handle this?
Thanks