Page 1 of 1

How to set a specific zoom rate for pdf content in a popup

Posted: Fri Jun 29, 2007 6:24 am
by hoangvu.che
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


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:

[syntax="javascript"]
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 [s]pls[/s] please show me how to handle this?

Thanks


feyd | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

[quote="[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1"][b]11.[/b] Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.

Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.[/quote]