Using a Button to extract pages and submit form.

I have a five page document.   The last page is a letter that gets emailed by itself.  Also want the account name and number to flood into the subject line.
I can get this to work if I don't extract the other four pages,  and use the built in submit form function in the button.  But can flood the value from the account name and number fields.
Function needed for Adobe Pro X and would probably use with Live Cycle in the near future.
Thanks!

OK. In that case you can use something like this as the submit button's MouseUp script:
var newDoc = this.extractPages(this.numPages-1);
newDoc.mailDoc({cTo: "[email protected]", cSubject: "Subject line"});
This code will extract the last page of the document and then attach it to a new email message with the specified address and subject line, which you can change of course.

Similar Messages

  • Extracting Pages and Error Message

    My Adobe works great. I couldn't ask for a better product. However I have received a PDF file from a customer and I need to extract pages and insert them into another PDF. When I go to extract the pages I get an error message "Adobe Acrobat 9.0 has encountered a problem and needs to close. We are sorry for the inconvenience." and them the program shuts down. It is only with this one document and I can't find much information as to why this is happening.  Any ideas?
    Thank You!

    This sounds like an issue with the sort order display in Windows Explorer. If you use the File > Open dialog in Acrobat the files should display correctly.
    If you're previewing the PDFs in Windows Explorer try clicking the Name button underneath the toolbar to change the sort order from ascending to descending, then a single click again should display them correctly.

  • Extract Pages- and the Split- not doing what I expect them to

    I have a document created in Illustrator (CS4) which has multiple artboards. I want it split into multiple documents, one art board—> one document with only that artwork. When I use the Extract PAges… and the Split… comands to generate multiple documents, I get the multiple docs (same number of docs created as pages in original doc).
    Only thing is every doc has all the artboards and all the artwork as the original doc. I could understand all the artwork being there but all the artboards also?? What's going on?
    Appreciate any pointers on this.
    Trying to write a JSX to run in AI but struggling so far. Thread for AI solution started here: AS) export single page PDFs from multi-artboards

    I don't expect mind reading but I'l settle for careful reading
    I tried to explain how pages and artboards are qualitatively different objects only to be told they are the same thing and that's all I needed to say.
    I tried to explain that opening the very same file in Illustrator showed a lot more objects than it did in Acrobat. You probably don't remember because you breezed over something that you didn't think you needed to know because you were, at each stage, a step ahead of me (slow down already!).
    From my second post:
    I can't remember if Splitting gave enumerate files or the one file but either way ALL the artwork was in the enumerate files if they got made [.…] I ended up saving as CS3 .ai files which gives a Save artboards to seperate files option and, unlike the artboard range option on Save As PDF, it actually works.
    From my third post
    An artboard is not a page as far as Acrobat and Illustrator apps are concerned. I was trying to highlight the distinctly different way the two apps handle them. I can watch a one page with just one shape document in Acrobat become a 20 artboard, 40+ objects layout in Illustrator. Same document interpreted as one Page in Acrobat and 23 artboards in AI.
    I was on this forum because even a manual Document Menu> Split… command is not doing what I expected with the AI generated 23pp PDF file. I expected the 23 individual 'artboards' and content to each make a separate file.
    Thom Parker wrote:
    I don't remember you mentioning that you re-imported the PDF files into Illustrator.  This is an important detail. You also posted to an Acrobat scripting forum and never said you were not interested in an Acrobat Script.  You also never explained the problem you were seeing.  You were never clear.
    Covered that but note Illustrator doesn't import PDF files. .ai .eps and .pdf are all native files for Illustrator and just open, sometimes with an additional dialogue to choose a page from multiple pages. It imports .dwg, .svg and that sort of thing relying on translator plugins. This is the fourth time I'm saying I should have posted in Acrobat Win or Mac not scripting, apologies I was scripting when I made OP and probably frustrated. You were more clear it's true, clearly ignoring what I was getting at in each post re artboard cf. page objects.
    You see, in a PDF file each page has it's own content stream, i.e., a stream of vector graphics operators.  Graphics can be drawn anywhere in the coordinate space, but the page view is clipped by a crop rectangle.  So graphics can exist in the stream, but never be visible to the user because they are outside the crop.  I get the impression that in Illustrator the Artboards all exist in a single coordinate space? And that the conversion to PDF places this entire coordinate space into a single content stream. Then each page would be a different crop of the same content stream.  If this is the case then I believe there are PDF optimization operations in Acrobat that would fix your problem by removing all content outside the crop. 
    Yeah I've hacked lots of PDF files in AI. They use more than one clipping rect per page from memory. Correct, the artboards are defined in a single co-ord space it would seem — artboards are discretely and independently located on the document canvas and can even overlap each other. Yes those operations might work, I never though of that, I came across an Illustrator based solution early on in this thread. There's no conversion going on in Acrobat though I think, the file stays native PDF from AI to Acrobat and back to AI. As I've noted it's the way Acrobat displays or parses the data that in effect hides all the 'off-page' objects but open the same file in AI and it's all still there. 
    You know, we can't read minds, you actually have to explain what it is you need.
    I didn't know it, but I needed to get a confirmation on the artboardRange property bug in Illustrator CS4 and/or a confirmation that artboards are not treated as page objects, and I ended up having to lecture you on something you may have no interest in, sorry if I've been a pain. This is part of bigger bug elsewhere that I've been trying to get resolved or around on and off for a month. Every turn another bug, it gets confusing and frustrating at times

  • Extract Pages- and Split- Commands

    I have a document created in Illustrator (CS4) which has multiple artboards. I want it split into multiple documents, one art board—> one document with only that artwork. When I use the Extract PAges… and the Split… comands to generate multiple documents, I get the multiple docs (same number of docs created as pages in original doc).
    Only thing is every doc has all the artboards and all the artwork as the original doc. I could understand all the artwork being there but all the artboards also?? What's going on?
    Appreciate any pointers on this.
    Trying to write a JSX to run in AI but struggling so far.

    Maybe you should invest in Acrobat...
    On Wed, Aug 20, 2014 at 11:28 AM, methebeachbum <[email protected]>

  • Add a custom button on notification page and open a oaf page after button

    Hi All,
    My Requirement is add a custom button on notification page and after button click with take some parameter from notification page like supplier_id and org_id then open a new oaf page and show supplier credit and debit balance but problem is that button is only enable to a ap invoices notification not for other type of notification.
    how to take approach/action i don't know.
    it is possible through OAF personalization/customization or it is part of work flow customization.
    Navigation path - payable->worklist->open notification and Type of notification also there
    Type should be matched with AP_Invoices type notification then custom button enable.
    Please Let me know is it possible or not. If possible how to achieve this. ...................................it's argent...plz help me
    Edited by: 815572 on Nov 25, 2010 1:15 AM

    Hi Irk,
    My notification came in given below format (in table) but my custom button only enable for Contract Approval Type not for others..........i hv attach a button on notification page (subject-Contract 21969-R17......)
    From Type Subject Sent
    Taylor, Phillip Contract Approval Contract 21969 - R17-AUG-07 06:19:27 has been approved by Taylor, Phillip 22-Aug-2007
    Taylor, Phillip OKS Contract Process Contract 21975 - R17-AUG-07 06:22:18 for AT&T Universal Card (52,500.00 USD) has been published online 19-Aug-2007
    Taylor, Phillip OKS Contract Process Contract 21969 - R17-AUG-07 06:19:27 for AT&T Universal Card (15,000.00 USD) has been published online 19-Aug-2007
    If I just put a button SHOW BALANCE just like notification button APPROVE, REJECT, REASSIGN but this button shows all types of notification and my req. is this button show only for Contract Approval type notification. how to handled this issuesss ?
    if extend the co of notification page then how to handle TYPE value from worklist page ....please write proper code if u hv any idea...........
    Thanks,

  • Using cfhttp to read a page and write its contents to a file.

    Hi,
    I am trying to get a feed of my ebay store listings to load
    into froogle. Unfortunately, ebay provides the feed as a website
    not a file and froogle (via GoogleBase) needs the file to be
    submitted as an XML file.
    Is there a way to use something like cfhttp to load up the
    page where the feed is located, scan the page and write it's
    contents into an XML file that I can then load up to GoogleBase???
    thanks for the help.

    ignore me now.... I answered my own question a short while
    ago.
    for anyone who cares....
    I used CFHTTP to get the page and then used a cffile to write
    the #cfhttp.filecontent# into the new file!

  • I used up all of my pages and then my games disappeared? anyone help?

    I used up all of my pages and then my games disappeared? anyone help?

    As already mentioned in your other post, you'll have to create folders and group the apps, then your other apps will be visible again.
    To create folders, tap on one app until it starts to shake, then move it over another app and let go. After that you can move the apps into that folder by dragging them into it.

  • Big trouble with multiple forms in a page and submit - commit buttons

    Hi
    Thank you for reading my post
    I have created a menu system based on a sample 61 at
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    so , on each page i have a form that contains my menu system , when i add second form to this page by using drag and drop , its submit / clear button works but Commit button does not change to Enable and stay disabled.
    I change the Disabled property of Commit button to true but it does not operate (does not store data into DB)
    I tried my work on a page without those menu system and it works fine.
    so i think there should be some tricks for pages that contain more than one form and has a Commit button.
    can some one clearify ?
    thanks

    Can it be a problem with my whole application ?
    I tried other applications with same condition and they workd :((
    even i made a new page in my application and put only one form into it , the commit button is turned off for ever :((
    is it possible that i touched some configuration and commit become permanently disable ?
    it will be huge pain if i need to create the project skeleton again , it has more than 20 pages and all navigations and mune system is set :>
    any clue ?
    I should say that , Jdeveloper hanged once and i kill its process, can that be the source of problem ?

  • How to get inputted value in a RTE field on custom page and submit by REST call in 'Sharepoint hosted app'.

    Hi I am facing the three questions below.
    1. How to use default RTE in custom page in Sharepoint hosted app.
     I saw the article of Rich text Editor (ribbon based) in a webpart in SharePoint 2013 and tried it. But it did not work well. I guess it needs code-behind setting, however sharepoint hosted app does not support code-behind.
    Does anybody know how to do this?
    2. In above case, I placed the below code on custom page and tried to get the field's value when submit button was clicked.
    <SharePoint:InputFormTextBox ID="rftDefaultValue"
    RichText="true"
    RichTextMode="FullHtml" runat="server"
    TextMode="MultiLine" Rows="5">
    </SharePoint:InputFormTextBox>
    In debugger, the returned value was 'undefined'.
    var note = $('#hogehoge').val();
    Is it possible to get the RTE value? If yes, please let me know how to do this.
    3. I need to submit the RTE value using REST call.
    In this
    article in MSDN, the item creation sample treats single line text field. Does anybody know the sample for RTE?

    Hi,
    According to your description, you might want to use Rich Text Editor control in your SharePoint hosted app.
    First of all, I would suggest you post one question in one thread to make it easier to be discussed, which would also help you get a quick solution.
    Though we can add this control into a SharePoint hosted app, however, as we can’t add code behind for it, plus with the potential compatibility issues in different
    browsers, I would suggest you use other JavaScript Rich Text Editor plugins instead.
    Two JavaScript Rich Text Editor plugins for your reference:
    http://quilljs.com/
    http://nicedit.com/
    If you want to submit the value of Rich Text Editor control to a SharePoint list using REST call, since the content in the Multiple Line of Text column is wrapped
    with nested HTML tags, the similar requirement would also be applied to the content to be submitted.
    Here is a code snippet about how to update a Multiple Line of Text column for your reference:
    updateListItem(_spPageContextInfo.webAbsoluteUrl, "List018", 1);
    function updateListItem(siteUrl, listName, itemId)
    var itemType = GetItemTypeForListName(listName);
    var item = {
    "__metadata": { "type": itemType },
    "MultiTextEnhanced": "<div><a href='http://bing.com/'>Bing</a><br></p></div>",
    "Title": "123"
    $.ajax({
    url: siteUrl + "/_api/web/lists/getbytitle('" + listName + "')/items(" + itemId + ")",
    method: "GET",
    headers: { "Accept": "application/json; odata=verbose" },
    success: function (data) {
    console.log(data);
    $.ajax({
    url: data.d.__metadata.uri,
    type: "POST",
    contentType: "application/json;odata=verbose",
    data: JSON.stringify(item),
    headers: {
    "Accept": "application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val(),
    "X-HTTP-Method": "MERGE",
    "If-Match": data.d.__metadata.etag
    success: function (data) {
    console.log(data);
    error: function (data) {
    console.log(data);
    error: function (data) {
    console.log(data);
    // Getting the item type for the list
    function GetItemTypeForListName(name)
    return"SP.Data." + name.charAt(0).toUpperCase() + name.slice(1) + "ListItem";
    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

  • Extracting Pages and naming file names of pdfs

    I need to be able to extract pages from a large file to create seperate pdf documents for each page. When I do this the file name for each page is for instance "Medical Records 1.pdf"; "Medical Records 2.pdf".... Medical Records 11.pdf"
    Here is the problem. When I go to review them in order the page (document) that is numbered 2 will not be after "1" but rather just before "20" and "3" is out of order and just before "30". When the number of pages is 600 plus this is a problem. This would not happen if there was a leading "0" before the "2" , "3", "30" etc. This happens with single digits and double digits as well since the page numbers are in the hundreds.
    Any ideas on how to correct this issue? Thanks in advance.

    This sounds like an issue with the sort order display in Windows Explorer. If you use the File > Open dialog in Acrobat the files should display correctly.
    If you're previewing the PDFs in Windows Explorer try clicking the Name button underneath the toolbar to change the sort order from ascending to descending, then a single click again should display them correctly.

  • Need to add button to seeded page and perform validation

    Hello All,
    My requirement to add a new button in custom page. when user click on that it should call a workflow.
    I have added a button through personalization. but for validation where should i capture this event and code.
    Can i extend controller through personalization. if not then how to get controller.java file from server.
    When i have tried to get CO from server, i got .class files only. is there any place where i can get .java files.
    I would really appreciate,if anyone can help me.
    Thanks in advance,
    sheetal mittal

    Hi Sheetal,
    You need to extend the CO and in the extended CO you need to handle you event. Using personalization you need to attach your new extended CO with the page so that your event will get handled. Hope this will help you.
    --Arvind                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can I extract pages and maintain links.

    I have a catalog index several pages long and all links to various pages in rest of catalog.
    I want to extract those pages with the links to the pages intact and insert into a modified version of same catalog. Page numbers remain exactly the same.
    When I extract the pages the link appears to be there(hand changes to finger pointer), but the action has been removed. When you click you go nowhere.
    How can I extract these pages and re-insert with links intact?

    Hi lenm,
    To extract pages, you need to use Acrobat (not Adobe Reader). As I can attest (because I do have both Reader and Acrobat installed on the same computer), it is quite easy to open files in Reader when you mean to open then in Acrobat. So, please make sure you have the right app open. (I pull this one all the time!)
    Now, if the Tools menu is missing from Acrobat, choose View > Show/Hide > Toolbar Items > Show Toolbars to make them reappear.
    Please let us know how it goes.
    Best,
    Sara

  • Adding new button to Standard Page and Launching CP when clicked

    Hi,
    I have a requirement to add a new button to a standard OAF page and when it is clicked, I need to launch a Concurrent Program. Can you please let me know any links/pointers/documents where I can get the details as how this can be accomplished.
    TIA.

    anyone?

  • Button to extract pages

    myexportFunc = app.trustedFunction(function(){
    ////Get Naming Convention
    var cRtn = app.response('Enter naming convention for section:');
    ////Save to current location. Get path of current doc
    var testing = this.path;
    var test = testing.split('/');
    var thepath = '';
        for (i = 0; test.length -2 >= i; i++)
              thepath =  thepath + test[i] + '/';
    ////Extract Pages
        for (p = 1; this.numPages >= p; p++)
    var pgno = p;
    ///pgno = pgno + 1;
                        if (pgno < 10) {
                                  var pgno = '0' + pgno;
                        } else {
                                  var pgno = pgno;
              var newname = cRtn + pgno + '.pdf';
                this.extractPages({
                             nStart: p,
                             cPath: thepath + newname
    var myDoc = app.newDoc();
              // import icon (20x20 pixels) from the file specified
              myDoc.importIcon("myIcon", "/adsROP/1 COMMON/Application Settings/Scripts/assets/Untitled-1.pdf", 0);
              // convert the icon to a stream.
              oIcon = util.iconStreamFromIcon(myDoc.getIcon("myIcon"));
              // close the doc now that we have grabbed the icon stream
              myDoc.closeDoc(true);
              // add a toolbutton
              app.addToolButton({
                        cName: "myToolButton",
                        cLabel: "Extract Pages",
                     oIcon: oIcon,
                        cExec: "myexportFunc()",
                        cTooltext: 'Extract Pages',
                        cEnable: true,
                        nPos: 0
    The button successfully is added. The function fires, etc....
    The extract pages function run alone works as is.
    I get the following error: 
    RangeError: Invalid argument value.
    Doc.extractPages:30:Doc 54d3a00myToolButton:Exec

    I get the error:
    RangeError: Invalid argument value.
    Doc.extractPages:30:Doc 54d3a00myToolButton:Exec
    I am running this from the console currently, but I did need to make the extract pages to be privileged.
    myexportFunc = app.trustedFunction(function(){
    ////Get Naming Convention
    var cRtn = app.response('Enter naming convention for section:');
    ////Save to current location. Get path of current doc
    var testing = this.path;
    var test = testing.split('/');
    var thepath = '';
        for (i = 0; test.length -2 >= i; i++)
              thepath =  thepath + test[i] + '/';
    ////Extract Pages
        for (p = 0; this.numPages >= p; p++)
    var pgno = p + 1;
                        if (pgno < 10) {
                                  var pgno = '0' + pgno;
                        } else {
                                  var pgno = pgno;
              var newname = cRtn + pgno + '.pdf';
    app.beginPriv();
                this.extractPages({
                             nStart: p,
                             cPath: thepath + newname
    app.endPriv();
    var myDoc = app.newDoc();
              // import icon (20x20 pixels) from the file specified
              myDoc.importIcon("myIcon", "/adsROP/1 COMMON/Application Settings/Scripts/assets/Untitled-1.pdf", 0);
              // convert the icon to a stream.
              oIcon = util.iconStreamFromIcon(myDoc.getIcon("myIcon"));
              // close the doc now that we have grabbed the icon stream
              myDoc.closeDoc(true);
              // add a toolbutton
              app.addToolButton({
                        cName: "myToolButton",
                        cLabel: "Extract Pages",
                     oIcon: oIcon,
                        cExec: "myexportFunc()",
                        cTooltext: 'Extract Pages',
                        cEnable: true,
                        nPos: 0
    This works. I just need to adjust the for loop to end at the last page rather than trying to go on to a page that does not exist.

  • Another "extract pages" and "split" PDF question

    I have subscribed adobe's convert to pdf and I was happy with convert function until I found out that I can't upload nor convert 59 MB of a file. Tried several methods, non of them worked. I decided to split the pdf or extract pages that I want it to be converted but guess what? There is no such function. Even if there is, it is very well hidden.
    Can someone please explain me how the heck do I extract pages or split the document in parts? Non of the online free splitters work on my file.

    Maybe you should invest in Acrobat...
    On Wed, Aug 20, 2014 at 11:28 AM, methebeachbum <[email protected]>

Maybe you are looking for

  • Singapore Ipod nano replacement program

    A number of user for ipod nano gen1 has verified our serial via US website and noticed that we are eligable for the replacement program. Please kindly infrom us on how to get the replacement done. On the side note, if this program does not carry over

  • How to perform Autosubmit  on Row selection in ADF Table

    Hi, I am using ADF Table , in which I want to enable AutoSubmit for the Table Row Selection. I want to enable some button on my screen when a row is selected in the table. I want to achive this with out using SelectionListener .. any iputs for this?

  • No range for Billing Doucments

    Hi SD experts, I want to have a seperate biiling no range for credit and debit notes.(other than invoice no range) For this i have assigned the no range 02(internal) in the billing document types of credit and debit memos (L2 and G2). though the syst

  • Some apps say "The application "    "  cannot be opened" ?????!?!?!?

    Ok, about 20% of my apps when clicked on now give this message, only since the last time I turned the phone off and then back on. What is going on? I get a blue pop up box saying this when I try to open these apps. Tried hard restart, ect nothing wor

  • MULTITHREA​DING SUPPORT

    Hi dears; i want to ask you multithreading support in NIDAQ board.Actually there are 8 threads running and they are getting data from their corresponding channels For example  thread 1 is getting from channel one thread 2 is getting from channel 2 an