[JS CS5.5] Browse and view pages

I want to be able to browse and view the pages in a document.

Pretty simple, it's just does not know how to view the page.

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;

If (app.documents.length! = 0) {}

If (app.activeDocument.pages.length! = 0) {}

myPages = app.activeDocument.pages

for (myCounter = 0; myCounter < myPages.length; myCounter ++) {}

myPage = myPages [myCounter];

now how can I display the page and fit to the screen?

$.sleep (1000)

}

}

Thank you.

doc.layoutWindows [0] .activePage = doc.pages [0];

with respect to zoom, I use this function of substances or Kasyan or Peter (I don't remember)

Zoom in on the object

function zoomObject (theObj) {}

var theObjLength = 0;

If (theObj.hasOwnProperty ("on base")) {}

theObj = .parentTextFrames theObj.characters [0] .getElements () [0] [0];

}

objBounds = theObj.geometricBounds;

var ObjHeight = objBounds [2] - objBounds [0];

var ObjWidth = objBounds [3] - objBounds [1];

myWindow = app.activeWindow var;

pageBounds var = myWindow.activePage.bounds;

var PgeHeight = pageBounds [2] - pageBounds [0];

var PgeWidth = pageBounds [3] - pageBounds [1];

var hRatio = PgeHeight/ObjHeight;

var wRatio = PgeWidth/ObjWidth;

var zoomRatio = Math.min (hRatio, wRatio);

myWindow.zoom (ZoomOptions.fitPage);

myWindow.zoomPercentage = myWindow.zoomPercentage*2;// * zoomRatio;

}

Best,

Loïc

http://www.loicaigon.com

Tags: InDesign

Similar Questions

  • When I open my browser last viewed page always reappears. How can I get to stop this?

    When I open my browser last viewed page always reappears. How can I get to stop this?

    Hi DawnZahradka,

    1. what web browser is installed on the computer?
    2. don't you make changes to the computer before the show?

    If you use Internet Explorer, I suggest you try the steps from the following link:

    How to optimize Internet Explorer
    http://support.Microsoft.com/kb/936213/ro

    Note: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

  • DROID: Android browser and Wordpress pages

    When you read a Wordpress blog in the browser Android on the DROID, it seems that the page is adjusted to the width of the screen and will not zoom. I heard that the HTC Eris with multi touch can be able to zoom the Wordpress pages, although I didn't know myself. If someone can comment about the underlying technology, I would like to know why this is so. Thank you and happy Thanksgiving!

    For at least the first, there "mobile browsing" enabled. If you go at the bottom of this page, you can turn it off. In this case, the page will be displayed exactly as it would with a PC browser, and you can resize the pane.

    Well Yes, the second is the same. This is a page of active mobile site. You're not Explorer in the same way as if you were going to a non-mobile site.

    Post edited by: scamp4

  • After download, box that says 'you have chosen to open' 'gray out' after selecting the button browse and full page is frozen / crashed. PC reboot needed.

    Hi Firefox
    After I finished downloading a file, see the Mozilla download page.
    I right click on the download to open it and the box "you have chosen to open" appears in the lower right of the screen with the "radio button", already selected for "open with...
    So far, all this is perfectly normal.
    However if I click on the "Browse" button to make a choice then the title at the top of the box, closing "Cross" and the "OK" button all gone gray and are unusable.
    In addition, all the page Firefox is frozen / crashed and cannot be closed.
    I have no other option but to reboot the PC.
    I tried various suggestions I found on your forums, including the removal of cookies, disable hardware acceleration, and I uninstalled and reinstalled Firefox 12.
    I looked at your "troubleshooting information" and it does not show a graphic driver problem. However, my driver is the latest driver nVidia for my GeForce FX5200 card and it worked fine with firefox 12.

    WebGL RendererBlocked for your version of the graphics driver. Try to update your driver graphics version 257.21 or newer.
    GPU accelerated Windows0. Blocked for your version of the graphics driver. Try to update your driver graphics version 257.21 or newer.

    Here are the specs of my computer:

    MSI K8N Neo motherboard (N1996 MS-7030 VER: 1),
    an AMD Athlon (tm) 64 processor 3200 + (Socket 754)
    3 GB of RAM.
    At present, it has a NVIDIA GeForce FX 5200 graphics card.
    The system runs Windows XP Professional 32-bit with SP3 and all the drivers are up to date.

    I have used Firefox for many years and not that another browser would never use!
    I did have a problem until now. I hope you can help me.

    Kind regards
    Chris

    Follow the suggestions mentioned in the following articles:

    Check and tell if its working.

  • on facebook and screen suddenly changed very little character and fuzzy not clear, so I switched to another browser and it was OK out there

    While scrolling through my facebook page. The screen has suddenly changed in very small print and Blur / Blur is not clear. The entire page had changed the way it showed. So I tried another browser and facebook page was working fine. I went back to firefox and still had problems.

    Yes, holding the CTRL key and turning the mouse scroll wheel are another way to set the zoom of page in addition to the hotkeys Ctrl and + to increase and Ctrl and - to zoom out in and Ctrl and 0 (zero) to reset the zoom.

    See also view > Zoom (press Alt to get the menu bar)

  • FF42 - View Page Info - Media tab is missing

    I used right click and View Page Info - Media inside tab - to see pictures, backgrounds, and other media on a specific page. Now after the upgrade to FF42, this tab is missing, the only other three tabs are always available.

    It seems that there is a problem with the all-in - One Sidebar extension. There are discussions here:

    https://github.com/AddonLab/AIOs/issues/93
    https://github.com/AddonLab/AIOs/issues/94

  • How to find and view the results in flash

    Hello friends,

    I work in Flash 8 and using AS 2.0 coding.

    I work with failover-page application. Here I have an option 'search '. I'll tell you the scenario.

    Here I am loading images/pages dynamically through xml. He loading and works as a page flipping. so far, it has been done. Now if you enter some text inside the search option and press, he must search all loaded images/pages and view pages resulted.

    How this feature is indeed. How to find the jpg with a given string?

    Your help will be really appreciated.

    Kind regards

    Rajesh

    You must have a database of information related to the pages.  If the pages are only jpeg images, then they will not be able to provide you with anything in the way of useful data searchable beyond possibly titles image.  So, you will need to create a database that contains all of the information in these pages that you can have your (matching chain) diagram of function search works with to find matching information.

  • How do you define upward to view pages on a mobile browser to appear as if they were on a computer rather than mobile framework... Like facebook. I hate the mobile version, but the regular version love

    I just want to be able to view pages on my phone, as I am on my computer. Non-mobile pages on the site. Bolt browser was like on a computer. Now bolt closed due to funding.

    Install the extension false and to find 'User Agent' preferences and use the drop-down list to select "Desktop Firefox".

    https://addons.Mozilla.org/en-us/mobile/addon/phony/

  • Find and view a network file in the page of the ADF

    Hello

    I have a simple requirement where at the click of a button link in my page ADF, I need to display an html page stored in the network location (e.g. / / < host name > / folder1/folder2/demofile.htm)

    I have only the path and only a substring of the filename, so I have to search for the file in the network directory using this substring. Once I have the file name, I use af:goLink to navigate to the network path and view the file in the browser.

    Here is the piece of code from Managed bean and the jspx

    FindFilebean.java

    .

    .

    path = "" \< host name > \\folder1\\folder2".

    File f = new File (path);

    [] List of the files in the folder = f.listFiles ();

    File latestFile.

    for (file: filelist) {}

    {if (file. ToString(). Contains (fileNameSubstring)}

    If (latestFile== null |) ((latestFile! = null & & latestFile. lastModified() < file.lastModified ())) {

    latestFile= file ;}

    }

    }

    path = latestFile;

    .

    .

    FindFile.jspx

    < af:goLink text = "Print Traveler" id = "gl1".

    destination = "#{viewScope. . "{FindFilebean.path}" targetFrame = "_blank" / >

    < af:popup = "deferred" autoCancel childCreation = "disabled" id = "p1".

    It works perfectly fine when I run a local integrated server, but I get a null value pointeron access to the f.listFiles (); when it is deployed on the weblogic managed server

    I also tried the following:

    1. creates a servlet and tried to read the file using the buffered output stream and display in an inlineFrame

    2 FiledownloadActionListener to read the file and view/download it

    These two approaches work very well locally but display/download a blank page on the server.

    Please suggest what Miss me here and if there is another way to achieve this.

    JDev version: 11.1.2.4.0

    WebLogic Server version: 10.3.6.0

    Thanks in advance.

    In fact f.listFiles () should not throw NPE as the directory exist a lot and the code snippet works fine on the local server.

    But you should add check and display the appropriate message to the users in the case

    As you mentioned the managed server is not able to access the network share.

    Guidance on how I could do this job?

    That is the question to your system administrator.

    They need to map this network share to the managed server machine.

    Or if this is impossible, then you can perhaps use another approach (ftp, scp,...)

    Dario

  • First of a sudded, my firefox browser is not allowing my to click links and open pages, or open anything on the upper part of the screen.

    First of a sudded, my firefox browser is not allowing my to click links and open pages, or open anything on the upper part of the screen. For example, I go to my email and I can't click on the Inbox, send, create folders, mark as unread. It's like this on all websites? Its really annoying I can't do anything because most of the sites have login at the top of the screen and I can't connect to anything.

    This problem may be caused by the Yahoo! toolbar as scopes as well down and covers the top of the browser window, allowing links in this part of the screen not clickable.

    You can keep an eye on this thread:

  • Oppen browser and minimize fine, but Web pages are not. How to open up to the size of the browser and stay that way with the zoom all the time

    I can't get a Web page to stay in the browser with the zoom size whenever I go to a web page. With the zoom it just stay little white on both sides. How to get there the size of the browser, and stay that way have no problem with my internet explore do this on my new computer. or fire fox on my old computer.

    You can use an extension to set a page zoom and the size of the default font on web pages:

  • I just downloaded Firefox as my browser and I can not find my favorites on my home page icon

    I just downloaded Firefox as my browser and I can not find my favorites on my home page icon

    Favorite is the end of Firefox. Favorite is the term of IE. Same thing, different name.

    Information and links on Firefox Bookmarks: bookmarks

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You must update some plug-ins:

  • I have a bank I have to use Google's browser instead of safari to be able to download and view my monthly statement.  Auto-complete in safari on id and psd won't AutoFill to this browser.  What can we do to make it right?

    I have a bank I have to use Google's browser instead of safari to be able to download and view my monthly statement.  Auto-complete in safari on id and psd won't AutoFill to this browser.  What can we do to make this right?

    I have safari 9.0.2 have a MacBook Pro.  OS X El Capitan version 10.11.2 for operating system

    If they are having problems with the Safari browser, you must contact the Bank to know if their site is compatible with Safari.

    Good day.

  • Web Page color - can't change the color of the browser and tab

    original title: color of Web Page

    I can't change the light blue color for my browser and or tabs when you type in the address bar, but can change the rest of the color of the page of the color light blue need assistance so that everything is a color. Thank you.

    Hi dominicalexander,

    You can follow these links & check if it helps:

    Change the colors on your computer

    Change the colors and fonts used for webpages

    Change desktop theme

    Hope the helps of information.

  • "Browser" and "Media Net" blackBerry smartphones going to the same place - how to change the home page?

    "Browser" and "Media Net" goes to the same place - how to change the home page?

    I want to change the browser home page to be google... How can I do this?

    It just won't let me.

    Thank you

    Hi urumilton,

    Turns out that ATT had me on their business plan and not the personal (with tethering the phone and the whole software Setup was weird - including the browser... that didn't go to page net media (don't ' don't ask me how).)

    Send them a maintenance book and now it works - oddly enough!

Maybe you are looking for