Need help to flatten only certain pages of the document

So here's what I'm doing...

I have a 3 page pdf form that is configured to run a script javascript when you fill out the form and click a button "submit". The java that I have written is:

If (this.getField("Item_Needing_ActionRow1").value is "not found any element of punchlist")

this.submitForm ({cURL: "mailto:[email protected]?"}) subject = Completed FAT: "+ this.getField("Project_Number").value, cSubmitAs: 'PDF'}); "

on the other

this.submitForm ({cURL: "mailto:[email protected]?"}) subject = Completed FAT - contains Punchlist items: "+ this.getField("Project_Number").value, cSubmitAs: 'PDF'}); "

When the user clicks on the button I want the form to flatten pages 1 and 2, but not page 3. I know that the script this.flattenPages (); will flatten all pages, but I thought you could just flatten specific pages. I got to this link file = JS_API_AcroJS.88.466.html & http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/w whelp.htm? context = Acrobat9_HTMLHelp but I am not sure if that's what I need or not.

This script is what I want, except that here again, all pages that are flattened.

If (this.getField("Item_Needing_ActionRow1").value is "not found any element of punchlist")

this.submitForm ({cURL: "mailto:[email protected]?"}) subject = Completed FAT: "+ this.getField("Project_Number").value, cSubmitAs: 'PDF' + this.flattenPages () ;}); "

on the other

this.submitForm ({cURL: "mailto:[email protected]?"}) subject = Completed FAT - contains Punchlist items: "+ this.getField("Project_Number").value, cSubmitAs: 'PDF' + this.flattenPages () ;}); "

Any thoughts?

Appreciate the help!

According to the documentation, you simply specify the start and end as parameters pages (where the first page is 0)

for example, in your case flattenPages (0.1)

Note This will NOT work in Adobe Reader.

Tags: Acrobat

Similar Questions

  • XP on certain pages of the site scrolling is jerky

    Since then, he works to get a software to run (using Microsoft support technicians) on certain pages of the site Web of scrolling is jerky.  Is it possible to fix this?

    * original title - which would cause a jerky scrolling? *

    Hello

    1 when was the last time it was working fine?

    2. on what websites face the question?

    I suggest that you reset the browser settings Internet explorer by default and check if it helps.

    For more information, see the article.

    How to reset Internet Explorer settings

    http://support.Microsoft.com/kb/923737

    Important: Reset Internet explore its default configuration. This step will disable also any add-ons, plug-ins or toolbars that are installed. Although this solution is fast, it also means that, if you want to use one of these modules in the future, they must be reinstalled.

  • I need help to write a script that detects the first instance of a paragraph style and then change

    I need help to write a script that detects the first instance of a paragraph style and then he goes to a different paragraph style.  I don't necessarily need someone to write all this, by the biggest problem is to find how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thank you!

    Hello

    then try this with your active doc:

    ....................

    myDoc var = app.activeDocument;

    mStyle var = myDoc.paragraphStyles.item ("PS_NameToFind"); change the name to paraStyle

    var mStyle_1 = myDoc.paragraphStyles.item ("PS_NameToChange"); change the name to paraStyle

    var mFrames = myDoc.pages.everyItem ().textFrames.everyItem () .getElements ();

    app.findTextPreferences = null;

    app.findTextPreferences.appliedParagraphStyle = mStyle;

    for (var k = 0; k)< mframes.length;="">

    {

    currFound = mFrames [k] .findText ();

    If (currFound.length > 0)

    currFound [0] .paragraphs [0] .appliedParagraphStyle = mStyle_1;

    }

    app.findTextPreferences = null;

    ................

    Rgds

  • F2 and entry does not on certain pages of the site, except if the field selected

    F2 and entry does not not to go backward or forward on certain pages of the site unless field selected. It is on an intranet site after reload PC with Windows XP, other old Windows XP PC work.

    Including the Firefox Firefox 10.0, or 11.0 9.0 upgrade fixed this problem with the program code of the intranet for keys F2 and Enter to forward and back a page in the application of the intranet site.

  • the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    Hello

    It seems that you want to restore the files removed from the memory card.

    I will definitely help you with this.

    I would say you can search the Internet for data recovery software by using your favorite search engine.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    It will be useful. If you have any other questions, feel free to let us know. We will be happy to help you.

    Thank you.

  • I've updated to Adobe Pro and when I try to use ADOBE Acrobat Pro DC to extract certain pages in the right part of the screen it apears a box more information, I press it and it takes me to the adobe page to buy the same package that Im using again and I

    I've updated to Adobe Pro and when I try to use ADOBE Acrobat Pro DC to extract certain pages in the right part of the screen it apears

    When this happens, check the TITLE bar (the top of the document). What should I know about the name of the product - Acrobat Reader or Acrobat Pro (or something else)?

  • When I export a PDF from Indesign CS6 (PDF1A), the first page of the document is blank.  Why?

    When I export a PDF from Indesign CS6 (PDF1A), the first page of the document is blank.  Why?

    Do not fix PDF 1A errors?

    Here is my screenshot of indesign and acrobat.  The first page is empty, the second page is not.  Why only the first page?

    Any help is very appreciated!  Thanks in advance!

    Screen shot 2012-12-10 at 11.42.29 AM.png

    Adobe strongly recommends use of PDF/X-4, which retains direct management transparency and color all the way to the INVESTIGATION period.

    PDF/X-1a is indeed antiquated for any content that uses anything other than CMYK + spot color or transparency.

    All modern PDF workflow software supports PDF/X-4. If you are printing to a PostScript RIP, Acrobat Pro (version X and XI) can print PDF/X-4 of tears (or printers) pretty well.

    -Dov

  • Dreamweaver beginner 2015 CC [how you define the page of the document with the same dimensions?]

    Maybe this is a stupid question.  How do you define the page of the document to exactly what you design.  I need to create an ad by e-mail to the 800px 650px.

    There are no stupid questions, answers all simply stupid. I hope that this will not be one of these responses.

    The short answer is that you don't set limits to a document, such as e-mails, Web sites or other. An email to read on an iPhone will have completely different dimensions for a reading on a computer screen. Mesaages read in Outlook will behave different to those read in a text format.

    Unless you know your audience and the device they are using, you must keep the liquid paper. For more information, see here http://webdesign.tutsplus.com/articles/creating-a-simple-responsive-html-email--webdesign-12978

  • How can I get my Indesign script to apply to all pages in the document?

    My (java) script below apply only to the first page of the document. How can I get to apply to all pages in my document? What Miss me? Thank you.

    script:

    myDocument = app.activeDocument

    with (myDocument.pages.item (0) .marginPreferences) {}

    columnCount = 1;

    columnGutter can be a number or a measurement string.

    columnGutter = "0";

    low = '0 '.

    When document.documentPreferences.facingPages == true,

    "left" means inside; means 'right' on the outside.

    left = '0 '.

    right = "0".

    Top = '0 '.

    inside = "0".

    }

    Hello

    You can browse all the pages.marginPreferences:

    var
      myDocument = app.activeDocument,
      allPagesMaPref = myDocument.pages.everyItem().marginPreferences,
      curPageMaPref;
    
    while ( curPageMaPref = allPagesMaPref.pop() )
      with (curPageMaPref) {
      columnCount = 1;
      //columnGutter can be a number or a measurement string.
      columnGutter = "0";
      bottom = "0"
      //When document.documentPreferences.facingPages == true,
      //"left" means inside; "right" means outside.
      left = "40"
      right = "0"
      top = "0"
      inside = "0"
      }
    

    Jarek

  • When I versteckte UN of a page of the document, it parts of four is scanned en! Comment to solve the probleme.sur windows 7 pc and printer epson sx 105

    When I versteckte UN of a page of the document, it is scanned in 4 parties.comment solve this problem. PC windows 7 epson sx105 printer

    Hello

    You asked your question in the English version of the Microsoft Community. Please could you click on the globe icon to the world (change region) at the bottom left of the screen and then choose your preferred language. Now ask you question once again.

    If you can't find a suitable language, please go here:

    http://support.Microsoft.com/common/international.aspx

    for other international support options.

    Thank you.

  • How can I get the electronic signature on the same page as the document.

    Whenever I have send a document for Adobe Acrobat DC using the sign and send the signature always returns on a separate page.  Can this be fixed so the signature put on the signature line of the document, or at least at the bottom of the last page of the document?

    Hi lotus4270,

    Would like to inform you that, if the document has a field, the user can sign with the material. If there is no field, then it will appear at the bottom & if the page size is large then in this case it will appear in the separate page at the end.

    Kind regards

    Christian

  • Keep old links and add new links to the title page of the document

    I was given an interactive pdf to update. The work on the title page insrtucts the Viewer to click on a highlighted product to a product page in the document... The revised document that ancient works of art and the links will remain in the same place, but other products have been added that will be tied to additional product pages. So I have to change the basic art, is it possible in Acrobat to replace the old work base with new art without distrubing the former basic links?

    Links are a form of markup. Create the page PDF of the work. Open the old PDF (or better a copy), then replace pages allows you to replace the basic document page. The markup should not be affected.

  • Certain pages of the site jump left to others (desktop ONLY)

    If you use the 'HOME' button as a guide for alignment - the pages "Do I need help" and 'Remarks Ian' move has left a few pixels - align all other pages. (I checked there is no text boxes extra outside pages etc.) Please - how to fix? I'm only using a master page file. Help! Thank you http://www.ianlaurencekerrcounselling.com.au

    I put two screenshots in Photoshop & took a snapshot, you can see how he jumps to the left:

    Screen Shot 2014-09-09 at 5.12.39 PM.png

    It's because of the scroll bar.

    The rest of the pages hold it vertically in your browser window without having to scroll vertically. However, the page "Do I need help" is a bit too long in height to fit your browser window, so a vertical scroll bar appears on the right side of your screen, which pushes all the content on slightly to the left.

    Normally, this can't be helped and is common with all websites. There are a few things you can do about it, however.

    One way is to go on the page/site properties and change the vertical scroll bar to see the 'Always' instead of 'automatic '.

    The other way would be to reduce the content to adapt without having to scroll through all. However, keep in mind that everyone has different resolutions and sizes of visible browser, there are probably still some percentage of people who will always see a scroll bar with all your web pages.

  • Cannot open certain Pages of the Apex in IFrame - Help!

    Hi all
    I have an IFrame in an HTML area. And I could see apex pages of an another worspace (TraineesWorkspace), but I couldn't tie one of my own workspace pages (SampleWorkspace). It shows "this content cannot be displayed in a frame. Is there a setting I need to change? Please help me with this.

    Under the components of demand, shared, change the definition, the Security tab, browser security:

    Integrating in frameworks:

    Deny: The page cannot be displayed in a frame, regardless of the site to try to do.
    Allow same origin: the page can only be displayed in a frame on the same origin as the page itself.
    Allow: The page can be displayed in any image.

  • Need help to view a Web page with IE8 &amp; 9

    I hope someone can help.  I've set up a Web site and I do not see the bottom half of the page on IE8 or IE9.  Do not know why.  I can see it in Firefox.  Someone would be able to look at and let me know what I need to do in order to contrast?  I'm new and I have no idea why.  I had another page which is similar and it has worked well in IE9.

    The site is

    www.g-fitzproductions.com

    This is the home page only.  The section after the flash is not displayed.  Thanks to all those who can help you.

    Sandy Portzel

    The problem is caused by a conditional comments of IE on line 39.  The CC has not been closed.

    Try to change this:

    to do this:

    Nancy O.

Maybe you are looking for