Flatten Page JavaScript Debugger problem

I found a common solution online about flattening comments into a PDF:
1) Press CTRL+J to open Debugger window
2) Delete anything out of the console window
3) Type this.flattenPage()
4) Leave the cursor in the line and press CTRL+ENTER
I tried this on two computers, each running Windows XP Pro SP3 with Acrobat Professional 9.1.1 It worked on one but not the other. The one that did not work gave this error message:
this.flatten is not a function
1:Console:Exec
undefined
Any ideas why it would work on one and not the other?

this.flatten is not a function
1:Console:Exec
undefined
The name of the function is flattenPages. Did you type a space after flatten?

Similar Messages

  • Using the JavaScript Debugger with Adobe Reader X (10.1.0) ?

    Hello all,
    Quite new to JavaScript in Acrobat I am trying to write a 4 page Form with CenoPDF and check/debug it with Adobe Reader X (10.1.0) on a Windows 7 (32bit, usually no Admin rights) PC. I realise Acrobat Professional would be a more appropriate tool, but for the moment I hope to get away with Reader.
    Following this instruction I managed to get the Javascript Debugger running with Reader X, but there is a serious issue:
    The Debugger window often crashes - and with it the whole Reader - after clicking around on a few controls (triangles in the Scripts window or others). First the font changes, then letters disappear, controls disappear and soon after the whole user interface freezes (see the two screenshots below).
    Questions:
    Do others also have problems with crashing Debuggers?
    Is there a known solution or work around to this problem?
    Many thanks for your help or some info, BobDuke

    I am having the same problem.  Win 7 or Win XP doesn't matter the problems seems to be with Adobe 10.1.0.  Works ok with Word, but not adobe reader.  Doesn't un-collate if the box is checked.  Tried to unchecked then recheck.  Use to work but now it doesn't.

  • Is there a way to flatten pages in Acrobat XI

    Is there a way to Flatten pages in Acrobat Standard XI.  In Standard 9 I used a script called flatten.js and it worked fine.  I read it will not work with XI. Any alternatives?

    Gilad,
    Thanks for the reply, but I still can't seem to get this to work. Let me expand on what I was doing previously and maybe you can tell me what I am doing wrong now. Previously in Adobe Pro X when we had documents that we needed to sent to a client, we ran the Flatten Form Fields and Comments action script. This worked wonderfully until we upgraded to XI, now it appears to be broken as we can still edit the text using the "Content Editing" option from Tools even though it was suppose to be Flattened.
    I have tried many other options: Flatten Comments and Annontations action script, another JS script that I found for Flattening (but it was old from 2008), and also tried doing the Javascript Debugger method and using the this.flattenPages(); command which returneds undefined when I press Ctrl + Enter. All of these the result in that I can continue to edit the text after the script/command is ran.
    Am I missing something on how to lock down the PDFs now in XI or maybe I have a setting wrong that is blocking Javascript? I am hoping I am just making a mistake somewhere and the origional functionality we used in X is not gone.
    Thank you for your time regarding this matter.

  • Adobe Acrobat 9.405 crashes whenever I use javascript debugger.

    I can open the console, and I can write javascript and i can run it.  I can't set breakpoints or step through any of my script though.  I can run javascript in the console.  Anytime i try to use the debugger buttons or step through the javascript, acrobat stops working and a windows dialog box pops up indicating that "the program stopped working correctly" and that it will have to close it.  I've reinstalled Acrobat and I've updated it and installed windows updates.  I'm still getting the same issues.  Anyone seen this before?  Here's all my specs:
    Windows 7
    Acrobat JavaScript Debugger Functions Version 9.0
    Acrobat EScript Built-in Functions Version 9.0
    Acrobat Annotations / Collaboration Built-in Functions Version 9.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 9.0
    Acrobat SOAP 9.0
    app.viewerVersion
    9.405
    app.viewerType
    Exchange-Pro

    I love what Adobe is doing for PDF, but I have paid a grand for a program which doesn't yet fully work on my machine.  I would really like to see an explanation as to why it isn't fully compatible with my computer  I am personally advocating PDF as an integrated solve-all resource to construction-related issues, because I realize it can be.  But it isn't yet.  If I can find a solution to my console/debugger problem, then I'm convinced that design/construction entities will benefit.  That means more money for Adobe. 

  • Acrobat 9 on Mac: Cannot enable javascript debugger

    I've tried setting Javascript preferences as follows:
    Enable Acrobat Javascript
    Enable menu items JavaScript execution privileges
    Enable global object security policy
    Enable Javascript debugger after Acrobat is restarted
    Enable interactive console
    Use Acrobat Javascript Editor
    I then restarted Acrobat, and invoked the JavaScript debugger, which starts up with a notice at the bottom: "The JavaScript Debugger is not enabled. You can enable it in the JavaScript preferences."
    I get this same result in MacOS 10.5.8/Acrobat 9.5.4, and MacOS 10.7.5/Acrobat 9.0.0
    What do I have to do to enable the JS debugger?
    Rick

    I tried this method (both) but nothing work. My last retry comes with a failure message:
    And here is the error summary:
    Exit Code: 7
    Please see specific errors below for troubleshooting. For example, ERROR: DW013 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 6 error(s)
    ERROR: -------------------- BEGIN - Initialization Failures - BEGIN --------------------
    ERROR: Fatal error initializing from proxy files.
    ERROR: The following proxy files could not be loaded
    ERROR: /tmp/9C1C0B46-93AB-4102-A004-7190EC5DF0E8/proxy.xml
    ERROR: -------------------- END - Initialization Failures - END --------------------
    ERROR: DW013: Cannot initialize payload session
    It seems like the problem of my OS X (I know my system is buggy all the way). Looking for method to fix it.

  • Javascript security problem in IE/Netscape

    I am facing with the javascript security problem in IE/Netscape. I have solved this problem partially, but there are more issues involved.
    Here's the scenario:
    There is an HTML page on client's hard disk (main.htm) containing two frames:
    frame 1 contains a page that lies that is deployed from my server, say
    src="http://127.0.0.1:8080/MyApplication.htm"
    frame 2 contains a page that lies on the client's server, say
    src="http://www.clientside.com/clientPage.htm"
    My page in frame 1 wants to access the URL of the page in frame 2 (through a button click, say ). This is done in MyApplication.htm through javascript as:
    window.parent.frame2.location.href;
    Now when the above line is executed, i get the following error:
    In IE(5.0): "permission denied"
    In Netscape(4.7): "access disallowed from scripts at http://127.0.0.1:8080/MyApplication.htm to documents at another domain."
    (which is understandable)
    I have partially solved the above problem in Netscape, by granting access permissions to MyApplication.htm (page on my server) to access the
    "http://www.clientside.com/clientPage.htm" page at client's domain.
    This is done as follows:
    1. First enable code base principals in client's Netscape by adding the following line in prefs.js file of Netscape
    "user_pref("signed.applets.codebase_principal_support", true);"
    2. Secondly i must add the following line in java script of "MyApplication.htm"
    "netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserAccess");"
    Now when the client clicks the button on my frame he'll get a netscape window asking him to grant permissions to MyApplication.htm.
    After granting permission, MyApplication.htm can retrieve the URL of clientPage.htm (even if he browses to another url)
    As you can see this problem is solved partially, but i want that the page "main.htm" (which is now on the client's hard disk),
    must be deployed at client's server (in which case not even the above technique works).........what should i do? any alternates or other solution?
    Secondly i want this to work with IE too, (which should according to their documentation, but does not and is therfore a big IE bug-as mentioned on the net)
    Any sort of help in this case would greatly appreciated.
    Thanks
    Faisal Moin Khan

    i believe you are posting in the wrong forum.
    This forum is foro XML web services.

  • Server Error: The Page Javascript.js has been modified...

    I don't know why all of a sudden I am getting this error when I try to publish my website thru Frontpage.
    Server Error: The Page Javascript.js has been modified by (unknown) user...
    Anyway I can correct it?
    Thanks...

    I don't know why all of a sudden I am getting this
    error when I try to publish my website thru
    Frontpage. You are in the wrong place.
    This forum is for supporting Java developers.
    You have a problem with FrontPage. FrontPage is not a Java application and nobody here wrote it.
    Please contact your ISP and/or FrontPage support (ha ha) for assistance with your issue.

  • Pages 08 fonts- problems with Arial, Times New Roman - how do I repair them?

    Pages 08 fonts- problems with Arial, Times New Roman - how do I repair them?
    Using 10.6.8 on MacBook Pro
    Mikeaaa

    I am running Snow Leopard. Transferring the same texts to TextEdit has no problems, so this is a Pages problem, I think.  Corruption of Times New Roman and Arial fonts, I suspect, but where? and what do I do about it? I just need to be pointed to a source of advice, I think.
    Thanks
    Mikeaaa

  • Pages 09 installation problem on Marvericks

    I am trying to get Pages 09 to work on a new Mac Pro running OS X 10.9.2
    The new Mac Pro has a clean install (no migration from the old machine) and I am installing iWorks from the original DVD and then updating to version 4.3 (1048) using the installer from Apple's support site. Restarted the machine after the install before launching Pages.
    My problems:
    1. When I try to open a document using File -> Open File... (from within Pages 09) and select a pages document that was copied from my old machine (and never opened in Pages 5) I get only an error dialog with the message "The document "document_name.pages" couldn't be opened." without any indication what might be wrong. I checked the fonts and trashed the preferences and those are not the culprits.
    2. I cannot even create a new document in Pages 09. After File -> New I am presented with an empty template chooser (the whole area is completely black). Clicking on the Choose button anyway results in Pages hanging and I have to force quit the app.
    This is highly frustrating because I have some important documents that get mangled quite badly when I open (a copy of) them in Pages 5. I really would like to get this working on the new Mac Pro.
    I would highly appreciate if anyone had a similar experience and found a solution (or any other ideas I should try).

    Bill
    You have 2 versions of Pages on your Mac.
    Pages 5.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions. You need to select the file and right click > Open with or open the documents from within the correct App.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed almost 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Peter

  • Activating the javascript debugger in Safari on Windows 7

    I apologize if this has already been answered but I have spent 2 hours trying to find out detailed instructions on how to turn on the javascript debugger in Safari for Windows 7 (specifically). From what I have read there is a debugger menu which I must activate by placing this code:
    <key>IncludeDebugMenu</key>
    <true/>
    into the Preferences.plist file. This file did not exist so I created it with notepad, renamed it and saved it with the code included. I do not see any new menu option.
    In addition to that I have read that there is a third party Javascript debugger that I can install after accomplishing the first task of showing the debugging menu. Please reply with useful, complete, detailed links explaining how to do this. Thanks

    ... Are we talking about a different sort of Javascript debugger than the ones you get to through your "Develop" menu?
    If not, to bring up your Develop menu, in Safari go "Edit > Preferences", click "Advanced" and check "Show develop menu in menu bar".

  • Web Part Page check in problem

    I created a simple web part page that contains a web page viewer web part.  I filled out all available fields during creation.  It was stored in the default Shared Documents folder.  I can link to the web part page with no problems.  However, others can't because it is check out to me.  When I try to check it in, I get the "You must fill out all required properties before checking in this document" error.  When I click "Edit Properties", everything is filled out.  I noticed that if I click "View Properties", a "Title" field is visible.  How can I fill this out???  It wasn't available during creation and I have no idea how to fill it out because it doesn't show up after clicking "Edit Properties.  This seems really buggy.

    I currently have this problem running wss3.0 in a portal I have created. Two existing document libraries contain web part pages which do not require check in/check out. However in the last day or two, every new page created is automatically checked out to myself, but I cannot check the item back in. I have the following show up:
    "You must fill out all required properties before checking in this document."
    I have followed the procedures above to add the web part as an extra content type to the list, and hiding the title column so its not needed, but i still receive this error message. It only seems to be happening on this particular portal, and not others. The fact exisitng pages in the document library do not require items to be checked out makes it very frustrating trying to resolve. Ive searched TechNet but cant find any more details. I've even tried to force check in using Sharepoint Designer but this also does not work.
    Does anyone have any ideas? Every new document library i create contains checked out items for this portal now, so others cannot view.
    thanks,

  • Does Firefox 4 support remote Javascript debugger?

    I have used ChromeDevTools Eclipse plugin and V8 debugger protocol for remote Javascript debugging with Chrome browser.
    Does Firefox 4 support remote Javascript debugger?
    If then, is there a client tool like ChromeDevTools plugin?
    Thanks in advance.

    Symantec have made an update for their add-ons to work in Firefox 4, but they only listed them as compatible with Firefox 4.0, they need to update them to let them work in Firefox 4.0.1. For details see http://community.norton.com/t5/Norton-Internet-Security-Norton/Norton-product-compatibility-with-Firefox-Updates/m-p/443808

  • AJAX - javascript debugger

    So I'm working on building numerous AJAX applications for
    various clients when I remember the javascript debugger in
    dreamweaver. But oops it's not there..... so back to MX 2004 not
    there either.... so back to MX cannot find it. So into the archive
    and I install 4 and there it is. Can we have it back please!
    peter
    p.s. stressed with using the venkman debugger ( the last time
    I used one so complex was when I was using ICE on hardware)

    Yea that happens to me sometimes also... the only way around I can suggest you is open the form on adobe acrobat pro, there the debugger should show up...
    or you can use the try catch statement
    http://blogs.adobe.com/formfeed/2009/03/handling_javascript_exceptions.html

  • Javascript debugger don't work

    I love the webdevelopment tool in firefox, but my javascript debugger don't work :(
    I only can pause / unpause javascript but all other buttons have no function.
    Must I activate something in about:config or is my computer too old? (The tilt function is not supported by my graphic card)
    Thanks for answers.

    fifo85 wrote:
    > Hi,
    >
    > I have just tried the following code putting the script
    header to execute it
    > on the client side:
    > <script>
    > if(ParentValue == String("Y"))
    > {
    > EnableSubGroup();
    > }
    > else
    > {
    > DisableSubGroup();
    > }
    > </script>
    onload=function(){
    document.forms["SubForm"].elements["SubGroupDD"].disabled =
    !(ParentValue == "Y")
    This will disable SubGroup if "ParentValue" is not "Y"
    Mick
    >
    > I do not get the object expected error anymore
    > but the functions don't work, why is this?
    >
    > ----Function definition ------
    > <script type="text/javascript">
    > function EnableSubGroup()
    > {
    >
    document.forms["SubForm"].elements["SubGroupDD"].disabled='false';
    > }
    > function DisableSubGroup()
    > {
    >
    document.forms["SubForm"].elements["SubGroupDD"].disabled='true';
    > }
    > </script>
    >
    > Thanks
    >
    > Fifi
    >

  • Need help: Unable Flatten pages because of Security setting

    this is my code in myFunctions.js
    var myFunctions = app.trustedFunction(function()
            app.beginPriv() ;
            this.flattenPages() ;
            app.endPriv() ;
    and this code in vb
    app.myFunctions()
    but I am getting exception as Security settings are failng to flatten pages.
    any idea?

    If the PDF has any security applied, flattenPages()  will fail. This includes:
    Password, DRM or certificate-based permissions rules
    Digital signatures that certify/lock the content
    Reader-extended documents (use File > Save A Copy to remove the extension)

Maybe you are looking for

  • How can we change the properties of a seeded item in OAF !!!

    Hi All Gurus! I have a seeded item (Button 'Apply') on an Add attachement page provided by Oracle in Self Service Web Module. Oracle documentation says this: If you want changes to the Attachments table or page to commit automatically, without requir

  • Swf loads in preview but doesnt work when published

    I am a newbie to coding and flash but have made a page on my own i went to add a SWF and everyhting works fine in preview I publish the site and all i get is a black box. I cant seem to figure out where it is goin wrong. I have the scripts folder pub

  • Performance test on MVC application

    Hi All, By using Visual Studio Performance tool, how can we test ASP.Net MVC application. When we open our MVC application basically it is loading very slow Can we get the below information by using Visual Studio Performance tool. 1. How the controll

  • How can one actually see their keychain passwords?

    Is it possible to acually see your keychain passwords?

  • SCN Editor capitalization bug on iPad

    Hi All, I am constantly using iPad to post answers in SCN forums when I am traveling. It's fine to read discussions using Safari browser but when I post the answer I have very annoying bug with capitalization: not only the first letter is capitalized