Remove button from pdf after saving

Hello, in my PDF form, I have a button. This button has the following script that I got via this forum, great!
for (var i=0; i<this.numFields; i++) { 
    var f = this.getField(this.getNthFieldName(i)); 
    if (f==null) continue; 
    f.readonly = true; 
app.execMenuItem("SaveAs")
So what it actually does, is to make all form fields "non editable"and show a save as button after that so users can save the filled in PDF.
But since after saving the PDF is read only, how can I make it in this way that the "button save as" with the script above, is not showing anymore in the generated PDF. This is a read only PDF now, so this button is no longer of use to show and also not to print.
How do I do this in acrobat pro.
Thank you all!

Add this at the end of the code:
event.target.display = display.hidden;

Similar Messages

  • Remove 'Buttons' from INFOVIEW toolbar

    How would I go about removing buttons from the Infoview Toolbar (Send, New etc...)
    Thanks

    Hello Daniel,
    some of these Buttons can be removed by permissions in the CMC. The others have to be removed by coding the InfoView .jsp Files.
    Check the following SAP Notes:
    1286494
    1286496
    1197103
    1283449
    Regards
    -Seb.

  • Remove buttons from CAD Supervisor toolbar

    UCCE 9
    CAD 9
    I know we can remove Agent buttons from CDA -> CAD-Agent work flow -> User Interface section.
    How to remove buttons from CAD Supervisor toolbar please? Like Recording. If not possible, is it possible to Disable / Grey out a button. I am looking to remove / disable VoIP Monitoring and Record buttons please?
    Thanks,
    Kartik Bhatia

    Can you try this:
    Go to CAD Admin web page
    Services Configuration-> Remove VoIP/Recording & Playback Services
    Make sure that there are no IP addresses of any servers in the Recording & Playback Service menu. If there are some, select them and press ‘Remove’ button to remove them.
    Please make sure that you close CSD, CAD completely and login back to see the changes. I haven’t tried this before but I think this would disable the recording buttons in CSD. I don’t know whether it needs CAD services restarts(all).
    -Sunil

  • Remove button from Ribbon in a specific toolbar

    Hi,
    I have created a custom list using feature. the list contains 7 content types inheriting from another custom content type. I have set the toolbar type for different views to "None".
    I want to remove the attach file option from Actions group in Ribbon. I tried the solution given in
    http://sharepoint.stackexchange.com/questions/32606/remove-button-from-ribbon-in-a-specific-toolbar
    by specifying custom action with
     the Registration type "ContentType" and registration Id "Content Type Id" for all the content types.
    <CustomAction
    Id="RemoveUploadButton"
    Location="CommandUI.Ribbon"
    RegistrationType="ContentType"
    RegistrationId="{firstcontenttypeid}">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition
    Location="Ribbon.ListItem.Actions" />
    </CommandUIDefinitions>
    </CommandUIExtension>
    </CustomAction>
    <CustomAction
    Id="RemoveUploadButton"
    Location="CommandUI.Ribbon"
    RegistrationType="ContentType"
    RegistrationId="{secondcontenttypeid}">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition
    Location="Ribbon.ListItem.Actions" />
    </CommandUIDefinitions>
    </CommandUIExtension>
    </CustomAction>
    but still the attach file option is appearing in ribbon under item tab. When I set the toolbar type to "Standard" attach file option disappear.
    Please help. TIA
    -Harry

    Hi,
    I tried to reproduced your issue like this: Create a custom Item Content Type, apply it to a custom list. Then I create a custom action for this custom Content Type with the
    code you provided.
    The outcome is: When I set the Toolbar Type as “Full Toolbar” or “Show Toolbar”, the “Attach File” button disappear as expected, when I set the Toolbar Type as “Summary Toolbar”
    or “No Toolbar”, the “Attach File” button appears again.
    Anyway, I will try to work on it or involve someone familiar with this topic to further look at this issue.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • Bug Report:  "View PDF After Saving" Does Not Work When Saving as Photoshop PDF

    The saved PDF file is not opening in Acrobat after saving a file as a Photoshop PDF. I noticed it happening a few times in earlier beta testing, but today it happened again.
    I have Adobe Acrobat Pro 10.1.2 installed on MacPro with Lion OS 10.7.3. Photoshop public beta m415.  System info can be provided if needed.
    The file I was trying to save was about 8 MB. Once it failed to open after save, I tried varied PDF settings and save locations. Also tried several different files. All were saved properly as PDF files, but would not continue to open in Acrobat as previous versions have done. The files open properly when you click on the file names in saved location.
    3153152
    3153152

    I'm happy I could help and feel a bit proud to have found a real bug. The simplest work around is just clicking on the file list once it's done...that's certainly not a problem.
    Larry
    =====================================
    Larry Guyer
    A la Carte Digital Studios
    Archetype Digital Imaging Alliance
    P.O. Box 4365
    Foster City, CA 94404-0365
    650-348-2525   office
    323-372-1669   fax
    650-444-7100   cell
    www.alacartedigital.com
    www.archetypeimaging.com

  • Acrobat 8 standard  - Removing pictures from PDF files

    I hope this is an easy one to answer but I'm having troubles removing pictures from a PDF file and I need some help, can anyone answer please?

    If standard has the Object touchup tool, you can select them and then delete them. I suspect that this may have the same problem as the redact tool as mentioned by graffiti.

  • Remove button from accordion widget

    Ok, I know this HAS to be simple and right in front of my face - But, I can't for the life of me find where to remove a button from the accordion widget of Captivate v6.  The default comes with 4 accordion buttons but I only need 3.  How do I get rid of the fourth???
    Thanks in advance.

    Select a button and you'll see a minus sign appearing, click it and the button will be removed.
    Lilybiri

  • Problem when removing elements from table after apply sort

    Hi,
    I have big problem with <af:table> and sorting.
    When I removed objects from a table without sorting, there is no problem but when I removed
    items from the table after sorting, the remain items are not correct.
    For example, i have in my table these items :
    Item AA
    Item CC
    Item ZZ
    Item BB
    Item AA
    Item BB
    Item CC
    Item ZZ
    I sort the table and i select the following Items : Item BB a Item CC
    The remains item is only Item AA, Item ZZ disappear.
    If i resort the table, the missing Item zz appear again in the table.
    Here is my jspx :
    <af:table var="row" rowBandingInterval="1" width="1050" rows="5"
    rowSelection="multiple"
    value="#{pageFlowScope.editNotificationBackingBean.ingredients}"
    binding="#{pageFlowScope.editNotificationBackingBean.ingredientsTable}"
    autoHeightRows="10" id="t2">
    <af:clientListener method="goEditRow" type="dblClick"/>
    <af:serverListener type="doubleClickOnRow" method="#{pageFlowScope.editNotificationBackingBean.handleRequestIngredientsSelectBtn_action}"/>
    <af:column headerText="#{bundle.col_fr_name}" width="240"
    sortable="true" sortProperty="name.FR_Description" id="c1">
    <af:outputText value="#{row.name.texts['fr'].value}" id="ot1"/>
    </af:column>
    In my backing bean i call this method to remove selected elements :
    public void unselectBtn_action(ActionEvent actionEvent) {
    RowKeySet rowKeySet = selectIngredientsTable.getSelectedRowKeys();
    int i = 0;
    Iterator it = rowKeySet.iterator();
    while (it.hasNext()) {
         Integer index = (Integer)it.next() - i;
    selectIngredientsTable.setRowKey(index);
    CompositionIngredient compositionIngredient =
    (CompositionIngredient)selectIngredientsTable.getRowData();
    notification.getProductDetail().getCompositionIngredients().remove(compositionIngredient);
    i++;
    selectIngredientsTable.getSelectedRowKeys().clear();
    AdfFacesContext.getCurrentInstance().addPartialTarget(selectIngredientsTable);
    Thanks in advance.

    I have made a mistake, i don't paste the right <af:table> from my jspx.
    Here is the correct one :
    <af:table var="row" rowBandingInterval="1" width="1050"
    rowSelection="multiple" id="tableSelectedIngredients"
    value="#{pageFlowScope.editNotificationBackingBean.notification.productDetail.compositionIngredients}"
    binding="#{pageFlowScope.editNotificationBackingBean.selectIngredientsTable}"
    partialTriggers="::tab_ingredients_list_expressed_per">
    <af:column sortable="true" headerText="#{bundle.col_name}" id="c5" width="180"
    sortProperty="ingredient.name.FR_Description">
    <af:outputText value="#{row.ingredient.name.texts['fr'].value}"
    id="ot18"/>
    </af:column>
    ...

  • How to remove Button from Flex Mobile app actionbar with AS3?

    How exactly would i remove a Button from the actionBar "actionContent" in a flex mobile app?
    I tried these:
        this.stage.removeChild(menu_btn);
        this.removeChild(menu_btn);
        stage.removeChild(menu_btn);
        this.stage.removeElement(menu_btn);
        this.removeElement(menu_btn);
        stage.removeElement(menu_btn);
    I'm not having any luck with those. Im guessing where it is located in the actioncontent isn't considered the stage. Any ideas?
        <s:actionContent>
                            <s:CalloutButton id="menu_btn" icon="@Embed('assets/images/menu/menu_btn.png')" visible="false">
                                      <s:VGroup>
                                      <s:Button id="btn_one" label="Button" />
                                      </s:VGroup>
                            </s:CalloutButton>
                  </s:actionContent>
    The actionContent is setup like that, I know like with most mxml stuff I could give it an ID to reference it but im not sure how how to give the action content an id number `<s:actionContent id="testID">` does not work. So how can i access this to remove it? making it invisible isn't cutting it i need to actually remove it.

    Does this do what you are looking for?
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
        <s:actionContent>
            <s:Button id="excess" label="excess" />
            <s:Button label="remove" click="this.navigator.actionBar.actionGroup.removeElement(excess);" />
        </s:actionContent>
    </s:View>

  • Remove Button from WEB UI

    Dear Experts,
    We need to remove Buttons of Individual and Group from WEB UI in Accoutn creation screen. However we couldn't find the relevant context node and view about it.
    what should we do? do you have any idea?
    thanks in advance?
    Mehmet

    The simple method to do this is the following:
    Enhance the component BP_HEAD_SEARCH
    Enhance the view BP_HEAD_SEARCH/MainSearchResult
    Now you will need to redefine the method
    DO_PREPARE_OUTPUT in the class CL_BP_HEAD__MAINSEARCHRES_IMPL.  If you look at the existing code they define the buttons that are display via appending entries into a "button" table.  You need to delete the button from the gt_button table.
    Your method redefined would look like:
    CALL METHOD super->do_prepare_output.
    if gt_button[] is not initial.
      delete gt_button where on_click eq 'CREATEIND'.
      delete gt_button where on_click eq 'CREATEGROUP'.
    endif.
    Take care,
    Stephen

  • Removing Buttons from Button Group

    Hi
    I am new to WAD 2004s, and am in the process of customising templates.
    I would like to remove some buttons from the button group, but so far the only way I can do this is to go in the XHTML and remove the code segments from there. Surely I should be able to do this from the layout view?
    Cheers,
    Andrew

    Hi,
    As Deepu says, in general everything is possible in the properties (you have to switch to "web item parameters" tab -> you will see all parameters for the web item.
    Regards, Karol Kalisz
    SAP NetWeaver BI Development

  • Remove Mail from mailbox after accepting mail by another guy

    I have an requirement in such way that if one employee accpets the mail, mail should get removed from mail box of other employee.
    Mail are the MS-Outlook mails and all employee are group together in one address book.
    In second scenario, if employee sent one mail (For ex. Leave application) it goes to two high level. If first level try to approve it at time it should prompt error message that second level approval is pending.
    Please let me know is it possible through ABAP or workflow?
    Thanks in stack

    Hi Nilesh,
    <i>at first I don't really have very good news for you:</i>
    Removing mails from Outlook is a microsoft feature and does only work when developing an appropriate application for this one. Removing mail items also prerequesites that an Outlook template/form is used and it is not a "mail" object anyways.
    Solving the problem this way would possibly exceed any one's project's budget.
    <i>The better news is:</i>
    What you might think about is the Outlook-Connector for SAP which comes with the Frontend-CD that opens up in a separate "inbox", which refreshes from the SAP's workitem inbox. If a certain workitem disappears it will also disappear (after the refresh time) from the outlook's inbox as well.
    As I have said in one of my posts before I'm still not sure if that interface product is still activly supported by the SAP. Furthermore I have experienced certain curious effects that came up, e.g. that read-notifications from the last years have been sent once again. Also consider more network traffic etc.
    For the second scenario you where asking, you should think about opening a new thread and a bit of more detailed information about what you are asking exactly.
    Best wishes,
    Florin

  • Help! Trying to remove text from an already saved image

    I accidently saved an image with my watermark & now the image is locked & also saved as a jpeg image.  I can't remove the text without stamping it out or just starting over.  Does anyone know how to remove text from an image that has already been saved?

    You could have saved it before closing the image. As long as the image is open in Editor, we can always go back to the original position and get back the original file.
    In case you have closed, check if you have saved it as a version set. If your file name contains "edited-1" something, you have the file preserved.
    Otherwise, if you have replaced the file without having any copy of it anywhere else, you cannot revert the changes.

  • Remove buttons from Marketing Calendar

    Hi All,
    Is there any way to remove buttons like NEW/COPY/DELETE from marketing calendar screen? Please suggest.
    Regards,
    Nikhil

    You can check if there is a BADI for that.
    If not then you have to enhance that component and remove the buttons in custom code.
    How to enhance refer this ->http://wiki.sdn.sap.com/wiki/display/CRM/HowToEnhanceaWebUIComponentinSAP+CRM
    Regards,
    Alwyn

  • Remove music from iPhone after enabling iCloud/match

    After enabling iCloud and iTunes Match, then after having some songs downloaded on my iPhone, I want to cycle some out and pull new ones down. However, I do not see how I can remove music from my iPhone. If I delete the playlist, the entire playlist is wiped from my master iTunes library, which removes it from all devices that use iCloud/Match.
    How do I selectively control what stays on my iPhone?
    Thanks,
    Derek

    If that is on, I highly recommend looking at th KB article: http://support.apple.com/kb/TS4054
    Specifically:
    Make sure iTunes Match is turned on.
    Please see this article for information about turning on or adding a computer or device to iTunes Match.
    If iTunes Match is already enabled on your computer or device, try turning iTunes Match off and then on again.
    On your Computer choose Store > Turn Off iTunes Match, then Store > Turn On iTunes Match.
    On your iOS device tap Settings > Music > iTunes Match Off, then Settings > Music > iTunes Match On.
    And sadly, you apparently can delete a song from Match from your phone.
    I am sorry, but no, you can't. If that were true, you would no longer see the song in your music library on your computer, and it would most likely be gone forever. The only way to remove an item from iTunes Match:
    To delete an item from iCloud in iTunes
    From a computer with iTunes Match enabled, open iTunes 10.5.1 or later on your computer. You can download the latest version of iTunes here.
    Click Music on the left side of iTunes.
    Select the item you would like to delete. Right-click the item and then choose Delete.
    You will be asked to confirm this action.
    If the item you want to delete exists in iTunes on your computer as well as in iCloud, click the checkbox to also delete the item from iCloud.
    Match is a train wreck. They need to make it work simply and intuitively.
    I don't disagree with you on this.

Maybe you are looking for

  • Unable to charge ipod shuffle

    I am unable to charge my ipod shuffle. It will not show in itunes or on my computer.

  • MIRO : Moving average price for material is negative

    Hi, i post an invoice but the system gives me this message : "Moving average price for material is negative: 120462 M411" i tried to change the average price (MR21) but really it is not a solution. is there any other solution to post this invoice? Re

  • Submit issue about RMPU_SEL_SCREEN

    hi the report RMPU_SEL_SCREEN  have two tcode MF60 AND MF63. sy-tcode = 'MF60'. submit RMPU_SEL_SCREEN USING SELECTION-SET variant AND RETRUN. i debug it when go in submit ,the sy-tcode will be set SE38. how to set TCODE to submit! thank you !

  • Two whole weeks not a single issue, problem, crash...

    My N97 has locked up, crashed, flattened its battery in a few minutes, not found itself in GPS, locked its self out, crashed with ovi, run out of memory constantly, switched on the camera etc for one and a half years.  But for two weeks my phone has

  • Images In Motion Are Blurry

    Anyone know why images I am importing into Motion from Photoshop would be blurry? I am importing them at 100% so not sure what the issue is, or will they look fine on a Plasma?