This.closeDoc crashes Acrobat X

I recently upgraded from Acrobat Pro 8 to Version 10.  In the previous version I was able to use
     this.closeDoc(true);
just fine.  In the new version, it crashes every time, indicating "Adobe Acrobat has encountered a problem and needs to close."  This is running either from a toolbar button defined in a folder level javascript or from a document level javascript (both have the same result).  It will also crash when I use
     app.activeDocs[index].closeDoc(true);
as a workaround.  The problem appears to be that it won't allow you to close the active document.  I've noticed that it works fine when run from the console, however.
I've scoured the web and no one seems to have a solution to this.  Do you have any suggestions?  Is this a new security restriction?  Is it a bug in the current version?
Thanks.  Any advice you can give in this matter would be helpful.

Closing documents has always been flaky, because there may be later events waiting to be delivered to a document which is about to go away. If you are triggering anything from a mouse down, try it from a mouse up.

Similar Messages

  • Calling AVDocClose with more than one PDF open crashes Acrobat

    That pretty much sums it up. If I have a single PDF open and I call AVDocClose everything works great. If I have more than one PDF open it crashes Acrobat and takes down all of the open documents. Any ideas as to what might be happening and how to get around it? I'm seeing it in both Acrobat 8 and Acrobat 9.

    Okay, that sounds ike it could be something to look at. I'm certainly not an expert in using the SDK so maybe you can help me identify the potential issue. This is the code I'm using with some comments to help you understand what I'm doing. I just added the ASFileSysReleasePath references after reading your post but apparently I'm still missing something. The issue occurs in the code path where I'm working with local documents.
    ACCB1 void ACCB2 MyPluginCommand_Save(void *clientData)
    initializeVariables();
    if(myAVDoc==NULL)
    // if no doc is loaded, display a message.
    AVAlertNote("There is no PDF document loaded in Acrobat.");
    else
    //Here are a couple of functions that are just used to set up some file paths for both windows and acrobat
    string docName = getDocName();
    string path = buildAcroPath(docName);
    ASPathName upPath = ASFileSysCreatePathFromCString(NULL,path.c_str());
    //call doc exists to see if we have a local doc or one that is in control of my DMS - doesn't use any Acrobat SDK functions
    bool ndExists = ndDocExists(filename);
    if(!ndExists) //if the file is not from the DMS
    //save this file to a temporary location - this is what actually gets sent to the DMS
    PDDocSave(pdDoc, PDSaveFull | PDSaveCopy | PDSaveCollectGarbage , upPath, ASGetDefaultFileSys(), NULL, NULL);
    //send the document to the DMS and get the status of the operation back - doesn't use any Acrobat SDK functions
    int ndStatus = ndImport(path);
    checkNDStatus(ndStatus);
    else
    //This is a document from the DMS. Just do a regular file save
    PDDocSave(pdDoc, PDSaveFull | PDSaveCollectGarbage , pathName, ASGetDefaultFileSys(), NULL, NULL);
    ASFileSysReleasePath(ASGetDefaultFileSys(), upPath);
    ASFileSysReleasePath(ASGetDefaultFileSys(), pathName);
    AVDocClose(myAVDoc, false);
    return;

  • I am having problems combining 2 pdf's together. When I do it crashes Acrobat XI. The files are fairly large about 20Mb each if that helps. Others have been able to combine them without issue. Any Ideas?

    I am having problems combining 2 pdf's together. When I do it crashes Acrobat XI. The files are fairly large about 20Mb each if that helps. Others have been able to combine them without issue. Any Ideas?

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Template generating script crashes acrobat x application

    Hi,
    I am fairly new to acrobat scripting. I have been beating my head against the wall on this one and have come to ask the collective. The following script works if numberPages is set to 1 (one new page is generated based on the template). When I change numberPages to 2 or more, the application crashes. Any suggestions?
    This is on acrobat x, windows 7
    Thanks,
    Roland
    var mypath = "Template1.pdf";
    numberPages = 1;
    this.insertPages({cPath: mypath, nPage: -1});
    t = this.createTemplate({cName:"signoff", nPage:0 });
    t.hidden = true;
    // spawns number of pages
    for (i = 0; i < numberPages; i++){
      t.spawn(i, true, false);

    Looks like I finally figured it out. It was something quite silly. Apparently, hiding the template before spawning it is a bad idea (at least under certain circumstances...when there are comments in the source file and a form in the template file). This script seems to work just fine so far:
    var mypath = "Template1.pdf";
    numberPages = 6;
    this.insertPages({cPath: mypath, nPage: -1});
    t = this.createTemplate({cName:"signoff", nPage:0 });
    // spawns number of pages
    for (i = 0; i < numberPages; i++){
      t.spawn(i, true, false);
    t.hidden = true;

  • Need Help With The 'this.closeDoc' Command

    Is there a way to save (or is there a work around available) that can be used to save data in a pdf when using the ‘this.closeDoc()’ command? The 'disclosed' property of the called PDF (in this case: PFSL-18. 06.96.pdf) is set to 'true'.
    What I want to do with the code below is to prompt the user to (YES) Save and Close the pdf, or (NO) Reset (clear) the form, before saving and closing the pdf. Currently, on YES, the pdf closes but does not save data, and on NO does not reset and save the cleared pdf before closing. I’m assuming the Doc.saveAs command should be inserted just above the lines ‘this.closeDoc….’ but am not sure how it should be written.
    var cMsg = "Do you want to save changes to ‘PFSL-18, 06.96.pdf’ before closing?";
    var nRtn = app.alert(cMsg,1,3,"PFSL-18");
    //Yes
    if(nRtn==4)
    this.closeDoc("../Mutual Fund Forms/PFSL-18, 06.96.pdf", this);
    else
    //No
    this.resetForm();
    this.closeDoc("../Mutual Fund Forms/PFSL-18, 06.96.pdf", this);

    From the Acrobat JS API Reference:
    Parameters  
     bNoSave 
    (optional) A Boolean value indicating whether to close the document without saving:● If false (the default), the user is prompted to save the document if it has been modified.
    ● If true, the document is closed without prompting the user and without saving, even if the document has been modified. Be careful in using this feature because it can cause data loss without user approval.
    There is only parameter for the 'closeDoc' method.
    The Acrobat JS API Reference is a free download from the Acrobat Developer area of their web site

  • Acrobat 9 Pro: Message "An error exists on this page. Acrobat may not display page correctly.

    Hi everyone,
    I posted this in September: "Over the past week, I have received pdfs from 2 different graphic design contractors that do not open correctly in Acrobat 9 Pro. There is an error in the document and when I scroll to the page where the error is, I get: "An error exists on this page. Acrobat may not display the page correctly. Please contact the person hwo created the PDF document to correct the problem." I did this, and the contractor remade the pdf 3 times, and I still couldn't open it. This contractor is already using CS5. For the problem today, I haven't asked for it to be remade yet--decided to see if I could find out if anyone else is having the same problem. The second contractor is using CS4. The only thing that I have done differently at my end over the past week is upgrade CS4 to CS5. I already had Acrobat Pro 9 so I didn't update it when I updated my CS5 products. Should I have upgraded Acrobat 9 anyway? Somehow, it doesn't feel right that this is the problem. Any info on this would be appreciated."
    I got one response from that posting, suggesting that the pdf was corrupted over email. That wasn't the problem.
    What I didn't say above is that whenever I got an error message upon opening the pdf and clicked OK, I got another message: "Insufficient data for an image." I found that one or all of the images in the pdf were missing. Upon further investigation, the contractor and I found that sometimes the error message pointed to a specific font used--that being a Helvetica Bold font. Once we substituted it with a Helvetica Neue LT Std Adobe Opentype font, we no longer had an issue.
    However, the problem rose it's ugly head today--what, 6 months later! I'm talking about 2 different pdfs this time.
    For PDF#1, I got this error message about the font: "Cannot extract the embedded font 'JNAGNS+HelveticaNeueLTStd-Bd'. Some characters may not display or print correctly."  When I click OK, I get another: "Insufficient data for an image." The images don't show up in the pdf. What I don't understand about this pdf is that this is one of those that was fixed in September. The only changes made in the document was to paragraph text--none to the text in the images. When I opened the revised pdf today, I am getting the same message again. This makes no sense.
    I returned to my September blog to see if any further advice had been posted, but nada--not even anything from Adobe about it. I goggled until I found where someone suggested running a "Report PDF syntax issues" analysis in Preflight. I did that and even though the analysis showed the pdf passed, I checked the fonts in the list and saw that the one pointed to in the error message showed that a long list of glyphs were missing on both pages of the pdf. I have asked my contractor to replace her font with a new one, in case it has gotten corrupted. Haven't a new pdf to open yet.
    Then when I opened PDF#2, I got the message: "An error exists on this page. Acrobat may not display the page correctly. Please contact the person hwo created the PDF document to correct the problem." When I ran the "Report PDF syntax issues" analysis in Preflight, I found got this warning: "Invalid operand(s) for operator (1 match on 1 page)". I clicked through and under "Page Description Errors/Invalid operand(s) for operator", it identifies Operator Name, Stream State, Operators Read, and Traversal Path. Under "Trigger Values" is says "Invalid operand(s) for operator: is true". None of this means a thing to me so I can't figure out what the problem is.
    Let me say this: Both the contractor and I are using CS5 and Acrobat Pro 9, on Lion. If it helps, the contractor also sent one of the problem pdfs back in September to my boss who is running Acrobat Pro 9 on Windows 7 and she got the same messages.
    Does anyone out there have a suggestion for us? PLEASE HELP!!!!

    Thanks to all for posting suggestions. As it turned out, the contractor who was having a problem reinstalled Acrobat 9. She works from home and is emailing the pdfs to me. Things were running smoothly until this past week, when the problem started again. Whenever I get a pdf that won't open properly or print, I asked her to zip it and it is no longer a problem. Last week, I had the same problem start with a contractor in Florida and she also zips the pdf when there is a problem. Now I am thinking the problem might be at my end. I wonder if something is happening to them when they come through our firewall at work. I asked IT about it before but they didn't have a clue what the problem might be. Right now, zipping is the answer...who knows how long that will continue to work.

  • Error Message: There was an error opening this document. Acrobat cannot open this file because a task is still active in Acrobat.

    I've tried Command Q to close;  Tried Adobe Reader Tool Bar but closing is grayed out;  I'ved held the power button for hard close, but everytime I try to open a .pdf I get this message: 
    There was an error opening this document. Acrobat cannot open this file because a task is still active in Acrobat.
    I'm not extremely technical, but I can follow directions if someone can help!
    Thanks

    Looks like it got stuck.
    You can switch to another program or the Finder (click on desktop) and Apple menu > Force Quit > Adobe
    You can press and hold the power button, it's a emergency force shutdown which you can boot normally and it should be fine.

  • Print Problem - PDF is OK on Windows 7, but OK on Windows XP with "Acrobat Reader An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem."

    I have received a PDF which prints fine in Windows 7 but with Windows XP I get "Acrobat Reader An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem." and a blank piece of paper passes through the printer. I appreciate that Windows XP is no longer supported but I would like to think that the solution to this problem is not too difficult!
    I have tried Acrobat 9, 10 and 11.
    Any advice (apart from use Windows 7! ) would be most welcome.
    Many thanks.

    If you use the same Adobe Reader versions with the same PDF on Windows 7 and XP, then I would expect the outcome to be the same.
    Is this a local or online PDF?
    If local, is the file really exactly the same?
    If online, in what browser?

  • Adobe X PDF files converted to jpg, edited and converted back to PDF have ragged, unclear text.  I didn't have this problem with Acrobat 9 standard.  What is the remedy for this.  If this is the best I can expect, I won't be able to use X standard.

    Adobe X PDF files converted to jpg, edited and converted back to PDF have ragged, unclear text.  I didn't have this problem with Acrobat 9 standard.  What is the remedy for this.  If this is the best I can expect, I won't be able to use X standard.

    I can't imagine any worse workflow than converting to JPEG to edit text, then back to PDF. Text in a PDF is a vector thing, smooth at all resolutions. And JPEG is made for photos. EVERY conversion to JPEG and back loses quality but how much loss there is will vary.
    If you must go to an image format, try PNG.

  • Acrobat 9 Pro: Message "An error exists on this page. Acrobat may not display page correctly. Please

    Over the past week, I have received pdfs from 2 different graphic design contractors that do not open correctly in Acrobat 9 Pro. There is an error in the document and when I scroll to the page where the error is, I get: An error exists on this page. Acrobat may not display the page correctly. Please contact the person hwo created the PDF document to correct the problem." I did this, and the contractor remade the pdf 3 times, and I still couldn't open it. This contractor is already using CS5. For the problem today, I haven't asked for it to be remade yet--decided to see if I could find out if anyone else is having the same problem. The second contractor is using CS4. The only thing that I have done differently at my end over the past week is upgrade CS4 to CS5. I already had Acrobat Pro 9 so I didn't update it when I updated my CS5 products. Should I have upgraded Acrobat 9 anyway? Somehow, it doesn't feel right that this is the problem. Any info on this would be appreciated.

    Thanks for the quick reply. Would zipping the pdf protect it through email...like I said, this is the first time I've had this problem and I've been getting pdfs though email for years.

  • Error in Acrobat 8: An error exists on this page. Acrobat may not display the page correctly...?

    Hi,
    We perform the e-signing on any PDF using our custom e-signature plug-in. Once that's done, when we try re-opening the PDF in Acrobat version 8.0.0.0, we get the following error:-
    "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem"
    Please note that this error occurs intermittently and is NOT observed in Acrobat 7 or 9.  Also, when a plain PDF is opened (i.e. a PDF without any signature on it) then there is NO error.
    Could you let me know what could be the issue here? I read it in Acrobat 8.1.3 release notes that such an error was a known bug in version 8.0.0.0 (http://kb2.adobe.com/cps/407/kb407016.html), but I am not sure of its cause.
    Let me know your comments/suggestions.
    Thanks!

    I am getting the same error even in Acrobat version 8.1.3.
    Additionally, I noticed that if we click on menu ‘Advanced->Sign&Certify->Preview Document’, then we get a notification as “This document is not PDF/SigQ compliant and may display inconsistently”. On clicking  ‘View report’ on that notification, the below dialog pops up. It has errors listed as:-
    Code 4000 : Unrecognized PDF content. The document contains PDF content or custom content not supported by the current version of Acrobat.
    Code 4002: PDF content contains erros.
    However, if we sign the PDF using default adobe signature functionality and reopen that PDF, the error does NOT come and the notification also says ‘This document is PDF/SigQ compliant’.
    Can anybody please suggest what could be missing in the custom sign that we apply? Is it because of any of the missing fonts or any other resources?
    Awaiting reply!
    Regards.

  • Accessibility testing crashes Acrobat

    We're using JAWS and NVDA to test PDFs for section 508 compliance. When we exit JAWS, Windows presents a Data Execution Prevention message:"To help protect your computer, Windows has closed this program: Adobe Acrobat 9.3" With NVDA, after exiting the reader, Acrobat will occasionally close unexpectedly. Anyone else seeing this issue? The operating environment is Windows XP Pro SP3, Acrobat Pro Extended v9.3.3, JAWS v11.0.1461.400. Thanks.

    > Ask Adobe support.
    Just phoned them... They said "Not supported anymore, get the upgrade"...
    Fortunately, PDFCreator does the job as well...
    PJ

  • I've made a photo book, but ordering this iPhoto crashes and I have to reopen the program; done this several times and each time uploading the 3rd page (of 86) it crashes again. My software is up to date (9.2.1), so that is not the problem.

    I've made a photo book, but ordering this iPhoto crashes and I have to reopen the program; done this several times and each time uploading the 3rd page (of 86) it crashes again. My software is up to date (9.2.1), so that is not the problem.

    Try boot into Safe Mode and try again.

  • Custom pagemarks (.mrk files) crash Acrobat X?

    We have some custom .mrk files (installed in /Library/Application Support/Adobe/PrintSpt) for setting custom pagemarks on print proofs.
    Generally speaking, we use them in InDesign.
    Tonight, I tried using them in Acrobat X Pro (10.1.0) under Mac OS X 10.6.8, and they crash Acrobat.
    I tried the sample pagemark files from Real World InDesign, http://blatner.com/rwid/mrk.zip, and they crash Acrobat as well.
    Does anyone have an experience with custom pagemarks in Acrobat? Are they supposed to work? Or am I just fooling myself?
    Curiously, or so it seems to me, the crash is not in the AdobeAGM librayr, but rather in the main Acrobat framework:
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000600
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Application Specific Information:
    objc_msgSend() selector name: acroOSXFSGetNameForDisplay:useLaunchServicesDisplayName:
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   libobjc.A.dylib                   0x92807f8b objc_msgSend + 27
    1   com.adobe.Acrobat.framework       0x0009f595 RunAcrobat + 592178
    2   com.adobe.Acrobat.framework       0x0009f3fd RunAcrobat + 591770
    3   com.adobe.Acrobat.framework       0x01046971 AcroSecurityBailOutImpl + 12972285
    4   com.adobe.Acrobat.framework       0x010ee8b7 AcroSecurityBailOutImpl + 13660227
    5   com.adobe.Acrobat.framework       0x0104bab1 AcroSecurityBailOutImpl + 12993085
    6   com.adobe.Acrobat.framework       0x003cf122 RunAcrobatInBrowser + 202971
    7   com.adobe.Acrobat.framework       0x003cf549 RunAcrobatInBrowser + 204034
    8   com.adobe.Acrobat.framework       0x003cf8e4 RunAcrobatInBrowser + 204957
    9   com.adobe.Acrobat.framework       0x003cfa00 RunAcrobatInBrowser + 205241
    10  com.adobe.Acrobat.framework       0x006cabd1 AcroSecurityBailOutImpl + 3027805
    11  com.adobe.Acrobat.framework       0x0060cca4 AcroSecurityBailOutImpl + 2249776
    12  com.adobe.Acrobat.framework       0x0090a433 AcroSecurityBailOutImpl + 5385151
    13  com.adobe.Acrobat.framework       0x0064f156 AcroSecurityBailOutImpl + 2521314
    14  com.adobe.Acrobat.framework       0x0064f29c AcroSecurityBailOutImpl + 2521640
    15  com.adobe.Acrobat.framework       0x00b97744 AcroSecurityBailOutImpl + 8060624
    16  com.adobe.Acrobat.framework       0x00b97468 AcroSecurityBailOutImpl + 8059892
    17  com.adobe.Acrobat.framework       0x0037abd6 RunAcrobat + 3587955
    18  com.apple.AppKit                  0x951c3a26 -[NSApplication sendAction:to:from:] + 112
    19  com.apple.AppKit                  0x9544dbe0 -[NSCarbonMenuImpl performMenuAction:withTarget:] + 326
    20  com.apple.AppKit                  0x952becf4 -[NSMenu _performKeyEquivalentWithDelegate:] + 354
    21  com.apple.AppKit                  0x952bedd0 -[NSMenu _performKeyEquivalentWithDelegate:] + 574
    22  com.apple.AppKit                  0x952be887 -[NSMenu performKeyEquivalent:] + 78
    23  com.adobe.Acrobat.framework       0x0037b4b0 RunAcrobat + 3590221
    24  com.apple.AppKit                  0x952bd117 -[NSApplication _handleKeyEquivalent:] + 581
    25  com.apple.AppKit                  0x951b2fe6 -[NSApplication sendEvent:] + 4858
    26  com.apple.AppKit                  0x95147253 -[NSApplication run] + 917
    27  com.adobe.Acrobat.framework       0x00010725 RunAcrobat + 6850
    28  com.adobe.Acrobat.framework       0x0000ed9f RunAcrobat + 316
    29  com.adobe.Acrobat.Pro             0x00001e92 main + 94
    30  com.adobe.Acrobat.Pro             0x00001e16 start + 54
    My next step is to try extracting the built-in .mrk files and seeing how they differ from mine, but I thought it would be good to ask first before I went ahead and did that.
    Thanks!
    (The purpose of our custom .mrk files, btw, is to print Page Information within the imageable area, so we can print the date/time of printing on our in-house 11x17 proofs of 11x17 pages before we go to press.)

    Hi All,
    I am posting here in elkalamar's discussion because it is on topic for a related question that is not getting response from my own discussion thread.  I hope someone can help.
    I am using Indesign CS 5.5 on Windows 7 operating system.
    I have converted a book (pdf print) to an interactive pdf.  Almost every page has an mp3 that plays on page load and ALMOST all of it is working like a charm, except:
    there are two files (also mp3's, file size not necessarily larger than any of the other mp3s) that play in Indesign's preview panel and that also play in my iTunes media player, as well as if I export the document as an .swf.  But these two mp3s DO NOT play (or are playing with no sound somehow) in Interactive PDF export.
    If I leave the 'media player' grey box enlarged instead of hiding it, I know that the mp3 IS appearing, but no sound or not playing.  Other buttons on the same page and throughout the rest of the document work just fine.
    Any idea what could be going on with these two mp3s?
    Thanks,

  • "Unable to view this file because Acrobat was not found."

    I Downloaded Adobe Creative Suite 6.  I created an Interactive PDF Form and then tried to export the form to PDF. I get the following error.  "Unable to view this file because Acrobat was not found."
    What do i need to do to get this to work?

    In the Export dialog, try turning off the box that says View PDF after Exporting. It may be on by default.

Maybe you are looking for

  • Nik Software Plugin loading time?

    Is it me or does any of the Nik Software Plugins for Aperture take forever to load? I have a fast Macbook Pro and I have waited up to 5 minutes sometimes for Color EFex Pro to load. It just says preparing image for editing. Anyone know if there is a

  • IPad mail app freezing, need help

    I've experienced my Mail app freezing twice in last two weeks in the middle of writing a mesage. I can't save it as a draft nor can send it, can't move to another folder. But if I leave the Mail app and go to gmail app it works. Anyone knows what's h

  • How do I add a contact to Apple Mail?

    This seems like it should be a simple thing to do but I've struggled with it for a long time. I am asked to ADD an e-dress to my contact list, in order for it to not be seen as spam. However the sender of that message was NOT the pertinent e-dress. T

  • INSIGNIA 55 LCD TV

    Hello, I am a Reward Zone Premier Silver Member and I purchase ALL my electronics at Best Buy, I recently purchased this 55 inch LCD Insignia this July 28, 2012, about a month and a half ago I noticed something on the left side of the screen, white g

  • Best storage for efficent retrieval

    I'm working on a project where we develop an access-application which uses share price data for approximately 10 years and over 1000 shares (this is just to indicate the size). The most critical part is the retrieval of data which need to be as fast