insertPage RaiseError: an incorrect structure found in the PDF file

Hello

I am trying to create a button script that will create a new document, copy (insert) on the first page of the open document, save it, and then close it.  I think the part where it becomes difficult - and perhaps not feasible - is that the original document (source) using a model; plenty of form fields to be laid off as the new pages.

In view of the above, ideally, the form user can click on the 'save a new page' button: it creates anj Inserted a copy of the first page of the form, free of content though everything has been registered, and excluding all other pages that may have been created.

With the code that I use, it is currently creating the copy of the page and inserts it as the zeroeth page (in front of a blank page, I intend to add the code later to remove) and saves it.  However, there are some problems that arise with it.  First is the error code that is displayed in the debugger:

RaiseError: An incorrect structure found in the PDF file

New Doc.insertPages:29:AcroForm:Save form: Annot1:MouseUp:Action1

= > An incorrect structure found in the PDF file

Despite the error, he always saves the page (copy of the form) as mentioned above.  However, if you try to start working with him, he lets you know that there is no form field in the document (even if they are all there and apparently functional).   When I think of edit fields, it will ask if you want to try to recognize the fields.  If I click 'Yes', he said it was impossible, but then the form opens with all corresponding perfectly to the original domain names.  If I click on 'none' he just open the page with all the fields match again.  So I feel like I'm close to being able to do that!

I use the following code to produce my results:

(In the "app" of JavaScript, I have the following functions of confidence :)

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,.

Start: 0

});

app.endPriv ();

});

(On the 'Save a new form' button, the following code is activated :)

First double document path in a table

var aPathComps = this.path.split("/"); "

Get the name of the file to off the end of the array of

var myFileName = aPathComps.pop ();

var path = aPathComps.join("/");

var = myTrustedNewDoc() myDoc.

myTrustedSaveAs (myDoc, path + "' / 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 review this question for me.

Thank you

Mike

The reference to "structure" will be on the tags. Use the display of labels and remove all the tags, the problem should disappear.

Tags: Acrobat

Similar Questions

  • error message: 357 errors: more information can be found in the log file: / library/application support/contactsheetII.log before making the contact sheet in PS

    Hello

    I'm doing a Board-contact in PS and I keep coming up with this error message: 357 errors: more information can be found in the log file: applications/library

    I did one before in this way in an earlier version of the PS, but this new version is not letting me. Any suggestions on how I can go beyond this?

    Thank you very much

    Jenn

    If please close Photoshop and try and rename the Photoshop preferences file once.

    Location: preference file works, names, places | Photoshop CC 2014

  • Acrobat Pro read the content in the pdf file and turns?

    Acrobat Pro reads the content in the PDF and Fourier Transforms to xls files without need of a lot of changes or manual work?

    Acrobat X (Standard and Pro) will save tabular data in XLS or XLSX format, it can recognize the table as being a table. If the PDF file has missing or incorrect structure tags, Acrobat will try to guess the tabular presentation by the position of the text and lines on the page - this works well for basic formatting, but if the table has a complex style, spans cells etc. it can cause problems.

    Acrobat X will try to export a table in a scanned document, by applying the OCR during the stage of export - yet once this is based on the table identified visually.

    See http://www.adobe.com/products/acrobatpro/pdf-to-word-excel-converter.html and this article on how to extract an array of a larger document.

  • 33.1 FireFox will not display the PDF file from the website of the Bank after 33.1

    I asked this question in a non-support ticket so I want to give more details here. I tried to uninstall Adobe reader and reinstall and it did not help. It worked before with all the exact same addins I had before. I called the Bank and asked if they had any problems and they say no. I can go to the Firefox PDF display for this file and click Download the PDF file, then double-click it in Windows Explorer and Adobe reader appears and displays the file very well. Don't mind what to do at the moment. What happens is the Bank to load the file then Adobe reader opens with a white screen and a small circle going round and round, like a video trying to play, and it is just there for always. I never see the content of the file. In any case I hope that your have a good of a day as I am and I know that it improves. Thanks Firefox programmers for such a wonderful program.

    Update: while I was writing this I thought to go in Firefox options, then Applications, and wouldn't you know, a PDF document has been set to "Preview in Firefox. I changed that to Adobe reader and now it works fine. Suppose that there is something wrong with the code in Firefox. So I'm happy now. Hope this helps someone.

    Yes, the built-in PDF Viewer is a work in progress. Glad you found a workaround, or go to your favorite configuration, depending on how you look.

  • I click on the .pdf files and do not open or download... anyone have any ideas? MAC 10.6.8 Firefox 12.0

    I went on a site and downloaded a .pdf file. The next day I updated firefox and when I went to the same spot later in the day, I clicked the .pdf and it didn't download or open. I use firefox 12.0 and mac 10.6.8

    I found a recommendation in another thread:

    If you are using a Mac, go to the Firefox Plugins and disable the plugin Adobe Acrobat NPAPI, Version 10.1.3. This is a recent update of the plugin, and as soon as it was installed, I noticed that the PDF files would not download.

    [Location: Menu] Tools/Add-Ons/Plugins

    https://support.Mozilla.org/en-us/questions/775819

  • Cannot resize the PDF file

    Hello. I bought a new 6830 yesterday and I have a problem of scaling a PDF file to print. When I got back the PDF file, the image is reduced in the file, but prints in original format. Today, I visited the Adobe site and found a page called Acrobat PDF Help/Basic printing tasks. According to Adobe, when I open the print dialog window, I can change the page to shrink or expand by setting the size I choose in the scale box:

    Custom scale  Resizes the page by the percentage you specify.

    However, my window of dialogue has no custom scale option. I'm starting to wonder if this printer allows resizing. Any suggestions?  Thank you.

    I installed the driver, Officejet Pro 6830 and it allows resizing in Adobe Reader 11.0.10.  I suggest to update to the latest version of Adobe Reader.

  • suggest correct PDF taget IDs to call the pdf file!

    Hello I want to open the pdf file that is stored in my assets folder. I implemnted the with th http://developer.blackberry.com/native/documentation/cascades/device_platform/invocation/adobereader... refernce this link.but when I run the application it gives me no targets were found error.how to solve the error? pls help... Here is my code

    Application of InvokeRequest;
    m_invokeManager = new InvokeManager (this);

    request.setTarget ("com.rim.bb.app.adobeReader");
    request.setAction ("bb.action.OPEN");
    request.setMimeType("application/pdf");
    QString = uri
    'file:///accounts/1000/shared/documents/pdf-sample.pdf ';

    request.setUri (uri);

    answer = m_invokeManager-> invoke (request);
    QObject::connect (response, SIGNAL (finished (()), this, SLOT (myInvokeReplySlot ()));

    Thank you

    Install the latest leak of 10.3.0.11052 to the alpha of dev and you will have Adobde too.

    or just install Adobe Reader only

  • Error with deleting the PDF file opened in preview only pane on the shared network drives

    I have a problem within Windows Explorer, I file open with say dozens of PDFs I have the preview pane open so I can tell what was on the pdf file selected without fully open. After you have determined whether I need it or not, I'd go for delete the file. However, with the file selected and preview pane, you can not delete the file gives an error message saying: the file is already open and cannot be deleted.

    I found that this happens on users with Windows 8.1 and Windows 10 machines at my place of work with different versions of Adobe Reader and Acrobat. Main versions being Acrobat 9-10, drive DC 15. Also only on the product on shared network drives, local hard drives are not the issue.

    Also, I installed another PDF reader and do not have the same problem if I put it in the default PDF Viewer. Leads me to believe that the problem is with the Adobe programs and non-Windows. I want to continue to use Adobe since I have a lot of licenses of Acrobat. Turn off the preview pane is not an option for my end users, since the amount of PDF files that they go through in a day is quite high.

    Please notify.

    I'm sorry. I'm all out of suggestions. There may be others somewhere that I saw but patches are usually

    1 turn off the preview pane

    2. use shift-delete

    3. remove the drive and use another pdf reader

    Seems that MS and Adobe have a hard stop at this time. And as I mentioned earlier, we had this problem on our drives to network with other files. Even the products Ms.

  • I imported an EPS layered file in FrameMaker, but ONLY the EPS image appears in the PDF file. How to do everything to appear?

    I imported a file .eps (a barcode) in FrameMaker and found that the omitted PDF everyting but the .eps image.  How can I get FrameMaker to recognize the text and images in the file FM, as well as the image of layered .eps file in the output PDF file? To test this, I also converted the .eps file (in PhotoShop) for a TIFF, JPG and GIF, PSD and imported of each in the doc of FrameMaker and created a PDF file.

    When I imported the FM and PDFd .psd file, all of the text and images of the file FM appeared, but the bar code has low resolution.

    When I imported the TIFF records in FM and PDFd, nothing appears in the PDF file except the barcode image and the text block, to which it is linked. The bar code has low resolution.

    With a JPG image, everything appears in the PDF but the barcode has low resolution.

    With a GIF image, it appears in the PDF, but t barcode a low-resolution.

    First thing you should try is to create a PDF file of the EPS file using Acrobat only. If it does not come out as expected (in the PDF file), then you know exactly where the problem is. Create a PDF file of the EPS in Photoshop is not a good test.

    You also need to update your version of FM12 - you have a patch behind.

  • Automatically rasterize all vector drawings (less the texts) in the PDF file

    Hello

    I looked at the Adobe Acrobat documentation and also within the frequently asked questions of this forum for this specific information was not found. If I missed something, please tell me

    I have a PDF file containing a lot of vector drawing made in Illustrator. The PDF file generated from Adobe InDesign. If the PDF file is a mixture of text and vector drawings.

    I want to send this PDF document on the web, but for some legal proposed, these vector drawings should all be rasterized. For sure, I can open each. Original document to HAVE, rasterize the content, then reissue the InDesign document (so the exported PDF file's text and all raster images).

    But, as I refer to 100 pages PDF, containing, at a minimum, 150 drawings vector, it takes a lot of time to open each work in Illustrator and manually generating a rasterized copy to use in the final PDF file.

    So the question is: is it possible (in Acrobat or any plug, approx...) to open a PDF document, then automatically rasterize any vector drawings (less the texts) in a specific resolution? For example, rasterize all at 150 pixels per inch.

    With the help of Acrobat DC under Windows OS 8.1.

    Thank you very much

    Gustavo.

    You do not miss anything, there is no Acrobat tool for this.

  • Does not check a word in the pdf file. Using Windows 7

    As I have used Acrobat reader to view the PDF files for the years.  I have recently upgraded to Windows 7 from XP.  I tried to search a PDF file to a Word and it always happens with none found even if I search for a word that appears in the document, that I'm looking.  Any advice?

    Kind regards

    Dwight

    Just FYI: scanned images which contain text can be converted into text documents real using the recognition of characters (OCR) in Acrobat (but not drive).

  • Several unsuccessful attempts to open the PDF file in Windows Explorer by double-clicking

    Hello

    My system configuration: Windows 7 SP1 x 64 Adobe Reader 11.0.10.32.

    By double clicking on the PDF file or try to open with Adobe Reader IX in the menu shortcut in Windows Explorer or any other file manager, the software Adobe Reader opens only after a few attempts. At each attempt the AcroRd32.exe process arises. And after a few attempts, the file opens. As a result, I see several empty AcroRd32.exe process in the Task Manager, each have about 4000 KB of RAM and the only open file. I have to kill these empty process manually, because they are not dead before closing the window of Adobe Reader.

    I found the same problem on another PC with the same configuration.

    Best,

    Alexei

    AdbRD_Bug.gif

    Hi Alexis,.

    Could you please let me know for how long did you face this problem.

    Open the TEMP folder (press Windows + R and type %temp%) and delete all the files inside.

    This happens with any specific PDF or all PDFs?

    You can try to disable the Safe_mode opening drive then go to ' Edit > Preferences > (protection)»

    Let me know how it goes.

    Kind regards

    Ana Maria

  • Why can I still not load the pdf files even after I installed the latest version or reader?

    I received an email, and I'm trying to simply open pdf files to view.  I went through the steps in the installation program Adobe Reader, I typed in my password of the computer and was taken to a page that says "Step 3 of 3", and he wanted me to buy another Adobe app.  So I Quit Safari, leave my email.  Tried to restart my email and then even tried to save the pdf file and then tried to open it to see and I got this message:

    To view all of the content of this document, you need a later version of the PDF Viewer. You can upgrade to the latest version of Adobe Reader www.adobe.com/products/acrobat/readstep2.html

    For support, go to www.adobe.com/support/products/acrreader.html


    I went to the two sites listed and have still found no answer.  I was wondering why I can't view these pdf files?  If someone a tips or advice to help solve the problems, I would be very happy!

    Thank you for your time!

    Lbbhx1

    Assuming that you get this message in Safari, Chrome, or FireFox, then Adobe Reader installation is not complete. You could try saving the file and open it on your computer or reinstall the drive. What he was trying to sell you? Be sure to download Adobe, not someone else.

  • This will strain you! I can't download the PDF file that is stored on my site FTP with Internet Explorer

    I can't download the PDF file that is stored on my site FTP with Internet Explorer, but I can't with Chrome, Safari, FireFox etc. Error message: museutils.js Code: 0

    My page: http://creditunionone.org/applications---forms.html

    and this page as: http://petfoodpantryokc.org/get-assistance.html

    Help, please! I get 20-30 presentations of members. customers / clients claiming that they are unable to download the forms.

    adding: Pop up says: Windows Internet Explorer errors on this site it may not work properly. A security problem has occurred. museutils.js Code: 0

    URI: http://www.creditunionone.org/scripts/1.1/museutils.js?110351884

    Links to PDF files are incorrectly formatted for example. http:// contribute000011n @creditunionone.org/forms/membershipcardstaticpdf.pdf IE do not like. Remove the part highlighted links and re - post pages.

    Thank you

    Vinayak

  • Attach the pdf file to the e-mail and use text body field

    I'm looking to create a form with a button 'submit' at the bottom.  When you click the button submit, I would e-mail window to open with a predefined recipient, and the pdf file attached.  I found the code to achieve this using this.mailDoc)

    However:

    I hope also to get the text field 'Name' of my screen and use it in the body of the e-mail message.

    I found the following code in another post, which seems to work for this:

    var cClientName = this.getField("ClientName").value;

    cAddress var = this.getField("Address").value;


    cbody var = ' Customer Information: \n\n ";

    cbody += "name:"+ cClientName + "\n"; '.

    cbody += "address:"+ cAddress + '\n'; '.


    var myURL = "mailto: . " [email protected] ? subject = Customer Info & body =";

    myURL += cbody;


    app.launchURL (myURL, true);


    That will open a window of e-mail with a body that contains the data of AcroForm fields named "ClientName" and "Address".

    The problem is that this code will not work the pdf.

    How can I get the best of both worlds?

    Thank you!

    You don't need launchURL to achieve this goal. mailDoc is capable of setting of the

    subject line, body of the email, the lists of beneficiaries, etc.

    See this tutorial for a detailed explanation:

    http://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

Maybe you are looking for