Specify the zoom rate of a pdf file opened in a popup

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Locked
hoangvu.che
Forum Newbie
Posts: 19
Joined: Thu Mar 22, 2007 9:54 pm

Specify the zoom rate of a pdf file opened in a popup

Post by hoangvu.che »

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:

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();
}
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
hoangvu.che
Forum Newbie
Posts: 19
Joined: Thu Mar 22, 2007 9:54 pm

Post by hoangvu.che »

I think I have put my question in a wrong category.
Therefore, I have moved it to Client Side unsteadily.

I am sorry for inconvenience.
Locked