Incorrect structure was found in the PDF message

I have a folder level javascript that creates a custom menu item which when clicked inserts a page at the end of the open document.
Sometimes when executed, a dialog box appears that says "An incorrect structure was found in the PDF file" but the page is inserted anyway.
We work with a lot of documents that have been scanned as a PDF. However, as I said it only occurs with some documents....
Is it just the way they have been scanned? Or is there an error in my script? Or perhaps another explanation?
Could I suppress that particular alert since the page is inserted anyway?
---edit----
I have just checked the script with Acrobat 7.0 and although I don't get the 'Incorrect structure was found in the PDF' message the javascript debugger appears with this message in the console:'Exception in line 19 of function anonymous, script folder-level:App:InsertSummaryPage.js' but once again the page is still inserted anyway.
Here is the javascript I am using to insert a page:
trustedNewDoc = app.trustedFunction(function ()
app.beginPriv(); // Explicitly raise privilege
this.insertPages({nPage:this.numPages-1, cPath:"/C/Program Files/Adobe/Acrobat 7.0/Acrobat/Javascripts/SummaryPage.pdf"});
app.endPriv();
app.addMenuItem({cName:"Insert Summary Page", cParent:"Tools", cExec:"trustedNewDoc()"});
Thanks

Larry – I did what you said and got the form to comply. I combined all the pages and suffered as the software bombed about every third or fourth move I made. For some reason, the form fields work like they should, but the text never goes into the order you want it to. I was having to move the text to the bottom and it would bomb every time I did. I would launch the software again and it would work for about 5 or 6 moves, but every time I moved the text to its proper place in the order, it bombs the program.
But your suggestion was the correct one.
I did get the message that some of the names were the same and I’ve had that happen before. I’ve gotten better at my naming convention. I’m hooked up to a network here and some times when they are doing whatever they do behind the scenes, I’ve had the software not cooperate or not perform optimally.
Our forms here were all built long ago, and the nature of them is to cram as much info onto a page as you can. It’s not uncommon to have 150 – 200 items per page. This makes compliance a real effort.
Thanks again for all your help.
Rob

Similar Messages

  • InsertPage RaiseError: An incorrect structure was found in the PDF file

    Hi,
    I am trying to build a button script that will create a new document, copy (insert) from the first page of the open document, save it, then close it.  I believe the part where it gets tricky -- and possibly not doable -- is that the original (source) document uses a template; full of form fields to possibly be spawned off as new pages. 
    Given the above, ideally the user of the form can click on the "save new page" button: it creates anj Inserted copy of the first form page, cleared of content if any has been entered, and not including any other pages that may have been spawned. 
    With the code I am using, it currently creates the copy of the page and it inserts it as the zeroeth page (ahead of a blank page I intend to add code later to delete) and saves it.  However, there are a couple of problems that come up with this.  First is the error code that opens in the debugger:
    RaiseError: An incorrect structure was found in the PDF file
    Doc.insertPages:29:AcroForm:Save New Form:Annot1:MouseUp:Action1
    ===> An incorrect structure was found in the PDF file
    Despite the error it does still save the page (form copy) as mentioned above.  However, if you try to start working with it, it lets you know that there are no form fields on the document (even though they are all there and seemingly functional).   When I look to edit the fields, it will then ask you if you want to try to recognize the fields.  If I click on "yes", it says it was unable to, but then the form opens up with all of the field names perfectly matching the original.  If I click on "no" it just opens the page with all of the fields perfectly matching again.  So I feel like I am close to being able to do this!
    I am using the following code to produce my results:
    (In the JavaScript "app" folder, I have the following trusted functions:)
    myTrustedMenu = app.trustedFunction(function(name)
        app.beginPriv();
        app.execMenuItem(name);
        app.endPriv();
    myTrustedSaveAs = app.trustedFunction(function(doc, namePath)
        app.beginPriv();
        doc.saveAs(namePath);
        app.endPriv();
    myTrustedNewDoc = app.trustedFunction(function()
        app.beginPriv();
        var doc = app.newDoc();
        app.endPriv();
        return doc;
    myTrustedInsertPage = app.trustedFunction(function(doc, namePath)
        app.beginPriv();
        doc.insertPages ({
            nPage: -1,
            cPath: namePath,
            nStart: 0
        app.endPriv();
    (On the "Save New Form" button, the following code is activated:)
    // First split document path into an array
    var aPathComps = this.path.split("/");
    // Get File Name off end of array
    var myFileName = aPathComps.pop();
    var pathway = aPathComps.join("/");
    var myDoc = myTrustedNewDoc();
    myTrustedSaveAs(myDoc, pathway + "/test.pdf");
    myTrustedInsertPage(myDoc, this.path);
    //myDoc.resetForm();
    //myDoc.closeDoc(true);
    I apologize for the long post and I appreciate anyone who takes the time to look into this issue for me.
    Thanks,
    Mike

    MikeIs2C wrote:
    You nailed it TSN!  Deleting the tags did the trick.  Thank you so much for your help!  Just an FYI for any of you fellow "noobs" that might be referencing this discussion, to open the "Tabs" view (in Adobe Acrobat Pro XI in my case) go to View > Show/Hide > Navigation Panels > Tags.  I looked all over the place for that until I found a document that mentioned how to open it.
    Thanks for pointing out specifically how to get here. Thanks to the all for this post!
    I also encountered this error, "An incorrect structure was found in the PDF file" from my published MadCap Flare user guide. I am attempting to find a way to build a bridge between Flare and Google documents for corporate-wide collaboration. Thus far, it's a crazy challenge finding a way to produce gdocs from Flare output. Neither product makes this easy. The closest I can get is by publishing the Flare doc as a PDF... but then I must break that document down into 2mb chucks...which led me to this problem, after attempting to use the Adobe Acrobat splitting tool.
    Question:
    What is the root cause of these bad tags. There are a LOT of them! Is this a fault in the way MadCap Flare creates a PDF document?
    Yes, deleting some of the tags will allow me to finally split a PDF document. Unfortunately, this error occurs in all my published PDF documents, thus preventing me from automating (scripting) this split and then conversion to Google Docs!
    Thank you

  • Copy and pasting a page in an existing document? Copy and paste functions are greyed out? Also tried extracting the page to copy but am alerted that an incorrect structure was found in the PDF file?

    copy and pasting a page in an existing document? Copy and paste functions are greyed out? Also tried extracting the page to copy but am alerted that an incorrect structure was found in the PDF file?

    What do you mean by "copy and paste a page"? What tool have you selected? Or are you just assuming you can select stuff and copy/paste as in Word?

  • Solution to "An incorrect structure was found in the PDF file"

    I was trying to extract a page from a PDF file in Acrobat Pro 8.1.2 using Javascript, and got this error ("Incorrect Structure was found").
    For future reference, here's what I did to restore the ability to extract/delete pages:
    Go to the View -> Navigation Panels -> Tags. The panel showed that my PDF file had two Document tag "trees". Select the option to "Highlight content". Then, when you select a tag, the corresponding page items get a light blue border. It turned out that one of the two tag sets didn't highlight anything, so I deleted it (leaving one Document tag tree). Then I saved the file, and was able to extract pages after that.
    So that's how I fixed it in this particular file. Hope this helps.
    Darryl

    Funny, I see this error in many spots but nobody from Adobe is addressing it where I can see. The tag idea was interesting (and tedious) but still not working. Looks like I won't make the deadline. Thanks for a whole lot of nothing Adobe...

  • An Incorrect Structure is Found in the pdf File

    After creating a form from a Word document, I am not able to use the extract feature.  When I try to extract pages, I get the error message "an incorrect structure is found in the pdf file".  Is there a way to fix this?  I have tried creating the form multiple times and this problem persists.  Thank you!

    Hi,
    We are not able to reproduce the issue at our end. Which version of Acrobat are you using? Is this a generic problem?
    If possible, can you please share a file with us so that we can analyze the issue further?
    Thanks!

  • Cannot add video - "Error 2002: a bad public atom was found in the movie"

    Okay, I've searched around and cannot find anything that works, this is driving me crazy! I converted a file from .avi to .mp4 and am now trying to add it to iTunes so that I can put it on my iPod Touch. When I try to add the file, whether by dragging and dropping the file into itunes or going through the File menu, nothing happens - no error messages, no notifications, nothing. If I try to open the file in Quicktime I get the "Error 2002: a bad public atom was found in the movie" message.
    I've tried editing the tags with Tagger, tried the AoA MP4 patch, tried moving the file to a flash drive and adding from there, tried running iTunes in XP compatibility mode... all with no effect. Please, is there anyone that knows how to fix this?

    Hello,
    This doesn't really solve the problem, but why don't you ask your colleague to resave or export test.3gp?
    The new file will probably work. (vs troubleshooting your Windows PC can take ages, to no avail)

  • 'An invalid public movie atom was found in the movie' Error Message

    I was just tidying up all the music in iTunes and came across an album that half the songs are unplayable... I get no action with iTunes. I tried opening one of them with Quicktime and I get the following message:
    An invalid public movie atom was found in the movie
    I wonder if there might be a fix. I have the original CD at home but I am traveling and won't be back for a few months...
    Thanks!

    I tried to play video clips on from lynda.com and the Q appears but only the audio plays.I am new to Mac and have no idea what to do. The same clips play on my windows pc just fine and that is version 7.3.

  • My videos are defaulted to Quicktine and I have downloaded the latest QT player but all my movie clips now cannot be played and I get this error message Error-2002 a bad public movie atom was found in the movie.

    I have used quicktime player downloads for movie clips made for equipment inspections.  However in 2011 I encountered a problem when trying to view previously made movie clips that are in the quicktime player format but they won't play giving the messgae : Error-202 a bad movie atom was found in the movie,
    I have downloaded the latest Quicktime player but the problem still remains.  However late in 2011 when this problem was encountered I downloaded the the latest QT player download and then could play the movie clips but now the problem is back.
    How do I fix this problem.
    Regards
    Richard

    Hello,
    This doesn't really solve the problem, but why don't you ask your colleague to resave or export test.3gp?
    The new file will probably work. (vs troubleshooting your Windows PC can take ages, to no avail)

  • An invalid XML character (Unicode: 0x0) was found in the prolog of the docu

    Hi folks,
    I'm using the SAX parser to parse a small xml file. If I use that file in IE, there its parsing correctly and displaying the xml in the tree structure.
    But in my Java code its throwing
    org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x0) was found in the prolog of the document.
    The xml parsing code of my program is
    XMLReader parser = XMLReaderFactory.createXMLReader(
    "org.apache.xerces.parsers.SAXParser");
    HelpPartHandler hp = new HelpPartHandler();
    parser.setContentHandler(hp);
    RandomAccessFile raf = new RandomAccessFile("sample.xml","r");
    byte Contents[] = new byte[(int)raf.length()];
    StringReader sr = new StringReader(new String(Contents));
    InputSource is = new InputSource(sr);
    parser.parse(is);
    The xml file is
    <?xml version="1.0"?>
    <ROOT>
    <NODE> Java </NODE>
    </ROOT>
    Please let me know the mistakes what I have done. Looking for the reply.
    Thanks in Advance
    Prabu

    The message seems clear to me. Your document contains a null character, which is not valid in an XML document. Take it out of the document, and change whatever produced the document to not put it there. (I hope you don't consider Microsoft software to be standards-compliant.)

  • More than one X.509 certificate was found with the specified parameters

    Greetings All,
    We are getting an error in our application event logs every minute or so and it seems to be causing search queries to fail. Same error is appearing in the ULS logs.
    System
    Provider
    Name]
    System.ServiceModel
    4.0.0.0
    EventID
    3
    Qualifiers]
    49154
    Level
    2
    Task
    5
    Keywords
    0x80000000000000
    TimeCreated
    SystemTime]
    2014-06-25T02:30:12.000000000Z
    EventRecordID
    92894
    Channel
    Application
    Computer
    Security
    UserID]
    EventData
    System.ServiceModel.ServiceHostingEnvironment+HostingManager/63835064
    System.ServiceModel.ServiceActivationException:
    The service '/0c98374520dc4b748d92a1e51b365dce/SearchService.svc' cannot be
    activated due to an exception during compilation. The exception message is: More
    than one X.509 certificate was found with the specified parameters.. --->
    System.ArgumentException: More than one X.509 certificate was found with the
    specified parameters. at
    Microsoft.SharePoint.Utilities.CertificateManager.GetCertificate(String
    storeName, StoreLocation storeLocation, X509FindType findType, Object findValue)
    at
    Microsoft.SharePoint.Administration.SPIisWebServiceSettings.get_LocalSslCertificate()
    at Microsoft.SharePoint.SPServiceHostOperations.Configure(ServiceHostBase
    serviceHost, SPServiceAuthenticationMode authenticationMode) at
    Microsoft.Office.Server.Search.Administration.SearchServiceHostFactory.CreateServiceHost(String
    constructorString, Uri[] baseAddresses) at
    System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String
    normalizedVirtualPath, EventTraceActivity eventTraceActivity) at
    System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo
    serviceActivationInfo, EventTraceActivity eventTraceActivity) at
    System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String
    normalizedVirtualPath, EventTraceActivity eventTraceActivity) --- End of inner
    exception stack trace --- at
    System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String
    normalizedVirtualPath, EventTraceActivity eventTraceActivity) at
    System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String
    relativeVirtualPath, EventTraceActivity
    eventTraceActivity)
    w3wp
    6328
    Doesn't appear to affect the component health status or the crawling process, only the return of search results.
    Sorry, something went wrong.
    Search has encountered a problem that prevents results from being returned.  If the issue persists, please contact your administrator.
    I checked the certificates snapin, didn't see anything out of the ordinary but I have a feeling it goes deeper than that.
    Where can I remove this duplicate certificate? Thanks!

    Open IIS and check server certificates
    Check if there is any certificate applied to Security token service
    Did you used any certificate for web application in site
    Check binding of all web application in IIS
    Try to browse
    servername/0c98374520dc4b748d92a1e51b365dce/SearchService.svc from all servers, check the certificate details
    If this helped you resolve your issue, please mark it Answered

  • Exporting Slide Show- Invalid media was found in the movie

    I have been trying all day to send a photo album to Itunes to put on my Ipod. Every time I try I eventually get the message that Invalid Media Data was found in the movie. What does this mean and how to I fix this.

    I am having the same problem. I am exporting a slide show (450 pics) and after A LONG TIME (probably double the previous time it took in the previous iPhoto), I get an error message that says 'Invalid Media Data was found in the Movie'. I also thought it might be protected mp3s (I have music with the slideshow) and I found one 'possible' problem song file, but after I corrected it, I get the same error.
    I have noticed that iPhoto 09 gives an import error for some types of .jpeg files (in particular those imported after scanning using the Image Capture program). I also noticed as I was editing the slide show that there are 5-6 pictures that come up black when you flip thru them in the viewer/editor. They show up in the scan, but do not in the viewer.
    I have run the slideshow in 'play' mode several times without issue. I urgently need this file for tomorrow. If anyone has any suggestions on workarounds today, I would appreciate it.
    Mark

  • Com.sap.aii.utilxi.misc.api.BaseRuntimeException:An invalid XML character (Unicode: 0x1f) was found in the element content of the document

    Hi,
    I'm getting the below runtime exception during IDOC- SOAP message mapping in Integration engine.
    "Runtime exception occurred during application mapping com/sap/xi/tf/<<<\\Message mapping object name\\>>>; com.sap.aii.utilxi.misc.api.BaseRuntimeException:An invalid XML character (Unicode: 0x1f) was found in the element content of the document"
    I have no clue why this exception occurs. Could anyone say the reason of the exception?
    Thanks!
    Regards,
    Gopi

    Hi Gopinath
    Check this thread
    An invalid XML character (Unicode: 0x1d) was found in the element
    Kind regards
    Javi

  • Error -2002: a bad public movie atom was found in the movie

    I have a Nikon Coolpix L10 (about 2 years old) that records video in the .mov format.
    Most of the time when I play the videos on my computer I used to get a bad flicker and the video would often freeze. When I used a video editing program I found that for every two frames of video there was a black frame.
    So I thought maybe Quicktime wasn't 100% compatible with the file type or version. So after some deliberation I got Quicktime Pro and I have the newest version 7.6.5. The flicker is gone but the video still freezes.
    So I tried exporting to MP4 or AVI or anything and I keep getting
    "Error -2002: a bad public movie atom was found in the movie"
    It wont allow me to export the video to a different format.
    Sometimes when I cancel the export Windows pops up a screen that it's searching for a reason that the Export Controller stopped working.

    Thank you very much for the help. I tried copying and pasting the video file that is a .mov file to my zip drive and then I tried to an .avi file. The reason for doing this is so I can edit it with microsofts windows movie maker. After I had it on the zip drive and tried to export it so I could change the file it still defaults to the error 2002 message saying there is a bad public movie atom. I have done a bunch (5) other movies from the camera and they all worked and then the last one would not. So I assume there is a random factor that happens such as file size or something in the recording that causes the random atom attack. Maybe the difference is not being a mp4. It would be great if there was a definitiion of what bad public atom was and what it meant. Computers and technology is great.
    I did another search and found that a person commented on zipping the file. Well I tried to zip it from the external drive I have to my desktop and it would not work. Then I ziped the file again. Saved to a external drive then unziped it to the same external drive. From that file I then did the file export and it went fine. So the moral of the story is if the video you took is important keep searching and trying and thanks for everyones help. Why is it the vendor of the product does not post solutions? Anyway now I can go on making movies and editing them. It must be a file corruption issue so that by moving the 1's and 0's around it fixes it's self. Is it a bug with the camera recording or is a bug with quick time?

  • An internal error was found in the SAP lock management system when opening

    Hello SDN Experts ,
    When i am trying to open any t-ocde in my productive system
    it is displaying an error message "An internal error was found in the SAP lock management system " , not only for me but also for all the users .
    Could please tell me what colud be the problem and solution for this??
    it's very urgent .....
    Thanks in Advance !
    Siva reddy

    Hi,
    Check in SM12 if tht particular Tcode is being locked by some other person.
    Else contact your basis team. There may be some auth issues.
    Regards,
    Lalit

  • Org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x80) was found in the CDATA section

              Hi,
              I,'m using c.tld tag libraries from Yakarta in order to use c:if functions.
              When I use non-unicode characters in my JSP pages, it crashes:
              java.io.IOException: javax.servlet.jsp.JspException: The taglib validator rejected
              the page: "org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x80)
              was found in the CDATA section., "
                   at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:124)
                   at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
                   at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:353)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:211)
                   at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:149)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:521)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:351)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
                   at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445)
                   at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
              How can I force it to use ISO-8859-1? All my tries haven't work. What should I
              do? The c.tld libraries and jars are taken from JDK 1.4.1_02
              

    Hi Stefan,
       This is my source xml in moni..
    xmlns:prx="urn:sap.com:proxy:ECP:/1SAI/TAS5BFDF495190544E4B506:701:2008/06/06">
      <SiteId>0080</SiteId>
      <UCC>42027519 91029010015</UCC>
    My interface is SAP(Proxy) to Database(Synchronous).
       SAP (PROXY) --> PI --> DATABASE ( Synchronous Communication )
    Let me know if u need any information from my side...
    Thanks for ur help...
    Thanks,
    Siva..

Maybe you are looking for

  • Xorg disables keyboard and mice [solved]

    after last update I cant use the trackpoint and keyboard on my IBM T40 under x, only the touchpad works. here is my xorg.conf # File generated by xorgconfig. # Copyright 2004 The X.Org Foundation # Permission is hereby granted, free of charge, to any

  • Lookup issue for File to Idoc scenario-- Urgent Pls.

    Hi All, Iam doing File to IDoc scenario with one file --> any of 3 R/3 systems. Routing has to be done dynamically using a lookup file, based on the incoming GLN code and last character of the Order Reference number. The last character of the Order r

  • Problems Scanning with Acrobat XI Pro for Mac

    I am running Acrobat 11.0.10 on a Mac computer (Yosemite 10.10.2).  Ever since i have updated Acrobat, when i attempt to scan documents with my Epson Photo RX620 it won't scan. When i try it without image correction, it tells me "an Error occurred wh

  • How to get STP to play through my miglia harmony audio?

    Hi, Despite selecting both input and output as the harmony in STP preferences it wil only record through, and not output to, the miglia. The Miglia is a firewire audio in/out which works fine in and out with Live 5 and out with Reason 3. It's driving

  • Line Out (Lime Color) Right Side not working.

    I plugged in a 3.5m into my Line Out, I have it connected to my stero aux. My stero is working fine and everything with the sound is working right. No shortage in my wires. When I plug it into my Headphone jack it works fine but in my line out the ri