Using Bookmark Names to create Custom Stamps

Hi all,
  I am a VB programmer that is struggling with a task in JS.  I am trying to do 1 of 2 things:  I would prefer #2.
1.Create a custom stamp using the filename.
or
2.Create a custom stamp using the bookmark name (which in turn will be the filename)
I have been foooling around for a number of hours trying to get this to work out, here's what I have done so far:
I have created a stamp, the stamp has two text boxes that I need to fill from one string. The string is in the format of
"08363-G-5109-DWG-R-00001_A.pdf" with a varying number of characters before the underscore, but always the same after the underscore. In the first text box I need
08363-G-5109-DWG-R-00001 which I get with
Code:
event.value = event.source.source.documentFileName.slice(0,-6); this work great. The second box needs to contain the letter(s) that are between the "_" and the ".pdf" and everything I have tried doesn't produce a result.
I focused most of my time trying to split the filename up, figuring the same logic would be applied to the bookmarks.
The things I have tried:
[CODE]
var str = event.source.source.documentfilename;
var strt = str.lastindexof("_");
var end = str.lastindexof(".");
event.value = str.substring(strt,end);
and
var arrStr = event.source.source.documentfilename.split("_");  ' **Harcoding = "08363-G-5109-DWG-R-00001_A.pdf" works**
var arrstr2 = arrStr[1].split(".");                                             'But isn't very dynamic
event.value = arrstr2[0];
and
var str = event.source.source.documentfilename;
var arrStr = str.split("_");
var arrstr2 = arrStr[1].split(".");
event.value = arrstr2[0];
[/CODE]
Any assistance would be greatly appreciated!
Bent

GJ - The bookmark would be selected manually and the stamp would reflect the change.  The sole purpose of this is to combine and stamp hundreds of documents in the most efficient manner.
So for example:
I combine 3 docs by selecting them in Windows and right clicking and selecting combine:
08363-G-5109-DWG-R-00002_A.pdf
08363-G-5109-DWG-R-00002_B.pdf
08363-G-5109-DWG-R-00002_C.pdf
I would have 3 bookmarks automatically when the combination occurs:
08363-G-5109-DWG-R-00002_A
08363-G-5109-DWG-R-00002_B
08363-G-5109-DWG-R-00002_C
So when I select the bookmark 08363-G-5109-DWG-R-00001_A then click stamps - dynamic stamps , my two text boxes have used this bookmark to get                 Text 1                          Text 2
                                                                       08363-G-5109-DWG-R-00001     A
Then I manually select the next bookmark and select stamp and it has used the next bookmark name to create a stamp  with two text boxes now              08363-G-5109-DWG-R-00002      B
If I had to stamp them first them combine, I would have to open one, stamp, save close rinse and repeat 100 times then combine.
GK - I did have a poke around with bookmarkRoot.children, but the only result I ended up with was the word "Root" in the second box.  I couldn't seem to determine if JS automatically builds the children collection based on the number of bookmarks off the root, or if I had to programmatically build it with an array.

Similar Messages

  • Create custom stamps - where do I find this in X?

    Hello,
    Just recently upgraded from Acrobat 9 Professional to X Pro and can't find where the custom stamp command is now located.  This is something I use frequently in my work - either QC stamps or design info stamps on plan drawing pdf - where I create the stamp information in Word, convert to pdf, then pick up and use the information in Stamps (Create or Manage).
    This revision (from 9 to X) is pretty radical, compared to previous upgrades, and requires almost relearning the entire program. A huge loss of time, so hopefully once I'm up to speed it will be faster/more streamlined than previous versions.  Hopefully.
    Thanks in advance for any illumination on where to find this feature!

    Hi, Dave,
    Your note made me realize that all my custom stamps are gone after my upgrade.  Upgrades are done by the IT department, and I didn’t think to save my stamps, so I can’t check to compare. Dang. It’s not a huge deal, ultimately – creating in 9 was easy, and recreating them will give me experience in X.
    I did notice something of what you describe when creating a custom stamp for a coworker while I was still on 9; his computer already had the X upgrade, and I noticed the stamp was cut off in the Custom Stamp drop down menu in X, though it stamped correctly on the document. Because this was only one/one time I didn’t take much notice of it, but it corroborates what you describe.
    Maureen Finn
    Transportation Coordinator
    www.hdrinc.com
    CONFIDENTIALITY NOTICE:  This e-email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential, proprietary, and/or privileged information, as well as content subject to copyright and other intellectual property laws.
    If you are not the intended recipient, you may not disclose, use, copy, or distribute this e-mail message or its attachments. If you believe you have received this e-mail message in error, please contact the sender by reply e-mail, immediately delete this e-mail and destroy any copies.
    Prior to using this e-mail or any attachments for any purpose (including but not limited to design, presentation, incorporation into any other work), the intended recipient(s) must enter into a separate written agreement with sender, setting forth the scope and conditions of the recipient’s
    permitted use and addressing copyright and other intellectual property issues. Use of this e-mail or any attachments without acceptance of the foregoing is prohibited.  Any use of this e-mail or any attachments indicates recipient’s acceptance of the above statements and conditions without exception.

  • Creating Custom Stamp

    Hello all.
    I am working on Adobe Acrobat 9 Standard. I am trying to create a custom stamp of my signature. When I import my signature , it shows up perfectly (reading horizontally, like I want it), but when I go to insert the stamp , it is rotating it 90 degrees clockwise for some reason (reading top to bottom). I know I can edit the stamp and make it horizontal again (reading left to right) but that is quite a hassle considering I use the stamp 6-10 times a day. I would really like to insert the stamp and just print the page. Does anyone have any ideas how to fix this or why the stamp is rotating.
    Thank you in advance.

    I figured it out!
    was having the same issue and it cost me half the morning at work.
    when i was creating the stamp, i needed some comments and markups added and to "flatten it" i was printing it to PDF and then croping the page to the size i wanted and then importing it as a stamp. anyway, when i was printing to pdf, in the print dialogue box, in the section "Page Handling", the option "Auto-Rotate and Center" was checked, this was forcing my stamp to be centered and the page orientation to be landscape. For kicks n giggles, I unchecked it, the page orientation changed to Portrait and my stamp image went to the upper left. I cropped my result as I normally would, and upon creating the new custom stamp, it was right as rain. hope this helps!

  • Creating custom stamps in Acrobat 9

    I'd like to create some stamps that will give an approval status as well as giving the name of the reviewer and the date and time, similar to the default dynamic stamps but with different wording.
    I've managed to create a stamp and add it to the palette, however I can't get it to display the name of the reviewer or the time and date.
    Can you help?

    You have to make a dynamic stamp.
    See http://www.acrobatusers.com/tutorials/2007/custom_dynamic_stamp/ for a dynamic with with a field is not interactive. See http://www.acrobatusers.com/tutorials/2007/dynamic_stamp_secrets/, for a dynamic stamp with an interactive field prior to placement.

  • Extract pdfs using bookmark names

    Is there a way to extract a multi-page PDF file into individual PDF files and use the bookmark names as the file names?
    Currently the only way i see it is by page number. Then you have to go and rename all your new files.

    Thank you for the reply. I MAY have to go that route if there is not a free way of doing it. I am doing this investigation for my boss and of course they want a free way out to save some $. We are already going to have to purchase another program to do another conversion after this initial PDF extraction.

  • How to use standard classes to create custom modulepool program like ME21N

    I am at the Starting Point of doing a classical dynpro program via Abap Objects which address all controls with MVC Architecture .So i debugged the standard ME21n transaction to find out how i can start with. I came across this interface which has no Attributes and Methods.I wondered y .Thats y i posted a Question .I also seen a lot of Standard classes
    CL_TABLE_VIEW_MM
    CL_BASIC_MODEL_VIEW_MM
    CL_COMPOSITE_SCREEN_VIEW_MM
    CL_SCREEN_VIEW_MM
    CL_TABLE_VIEW_MM
    CL_TABSTRIP_VIEW_MM
    CL_TC_BUTTON_VIEW_MM
    CL_TC_ITEM_VIEW_MM
    CL_TOGGLE_VIEW_MM
    CL_VALUE_MODEL_VIEW_MM
    and much more for Model and Controllers ..Can u plz guide me how i can make use of this classes effictively in my custom module pool programming

    I think all these classes serve the purpose of embracing the basic ones and are used specificalty in MM module.
    If you want to create similar module pool program with nice expand/collapse buttons in relation to subscreens please refer the some tips [here|expand/collapse button functionality on module pool screen;
    Also there are transactions like BIBS, DWDM which you can follow the examples from. I think SAP has covered all GUI controlls there so you can create really complex programs with various GUI controlls independently of module used for.
    Of course you can still stick to classes you mentioned but I think the better is to learn some standard approach of creating such screens, then if you feel more advanced go for using module specific ones if you really need that.
    Regards
    Marcin

  • Use solution manager to create customer message and apply oss notes

    Hello All,
    Is it possible to use SAP Solution Manager to create/ open Customer Messages and for the application of OSS notes in satellite systems via solution manager?
    Currently, our Solution Manager system is bieng used for Central System Monitoring!
    Please let me your your expert thoughts!
    Thanks,
    Antarpreet

    Hi,
    By using Service Desk scenario of Solution Manager you can convert an issue to an OSS message and follow it up.
    Refer the  [Link|http://help.sap.com/saphelp_smehp1/helpdata/en/b3/64c33af662c514e10000000a114084/frameset.htm]
    Snote application is also integrated with this Service Desk, you can apply SAP notes to any satellite systems.

  • Scenerios for using I_STEP parameter for creating customer exit variables.

    Hi All,
    I need to create a customer exit variable.
    Please explain the different scenerios for using each i_step parameters.
    For eg. in which practical scenerio i_step 3 is used?

    Hi Shobhit,
    You can find plenty of info on this in the forums, So i suggest you to do a small search with imp Key words. Anyways below is the std usage of I_STEP
    I_STEP = 1
    Call takes place directly before variable entry. Can be used to pre populate selection variables
    I_STEP = 2
    Call takes place directly after variable entry. This step is only started up when the same variable is not input ready and could not be filled at I_STEP=1.
    I_STEP = 3 In this call, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwards, I_STEP=2 is also called again.
    I_STEP = 0
    The enhancement is not called from the variable screen. The call can come from the authorization check or from the Monitor. This is where you want to put the mod for populating the authorization object.
    This is basic info from help.sap.com.
    regards,
    Gaurav
    Edited by: Gaurav Kothari on Aug 4, 2011 2:18 PM

  • How to post asset using BAPI_ACC_DOCUMENT_POST w/o creating custom OBJ_TYPE

    Hi,
    I want to post asset together with expense into one document. The first approach is to use BAPI_ACC_DOCUMENT_POST with custom obj_type, like ZBKPF. But when we post using the custom obj_type, we cannot reverse the document using FB08.
    Is that anyway we can post using BAPI_ACC_DOCUMENT_POST and reverse using FB08?
    Or is that any BAPI that can do this?
    Thanks,
    Tai
    Edited by: Tai Pang Ng on Apr 8, 2011 9:37 PM

    It is because I want to post asset. I tried to post my asset without specified the obj_type and acc_type, then I got an error saying cannot direct post thru my GL account. That's true becuase posting asset, we just use asset number and reconciliation GL.
    Then I tried to put my asset no in GL field, then I got another error saying the GL is not in Chart of Account, and that's true also becuase the asset no is never config in our chart of account.
    Then I found out that I had to specified the acct_type to 'A'. After that, I got another error saying RFBURFBU000000000000 is not define. That's I cannot post this thru obj_type RBFU. After checking that, I had to specified bus_act to RMWE and custom obj_type to some Z value to make it go.
    But after all these, I cannot reverse my posting using FB08 anymore because this is an custom obj_type and not allow to reverse using FB08.
    Please let me know if I made mistake in the above.
    Thanks,
    Tai

  • Can I use OA framework to create custom pages

    Hi,
    My client is using 11.5.8 and the Framework version is 5.6.
    And we want to add a custom page to iSupplier application.
    Can I use OA Framework extension to develop the page and add it to the application without upgrading the applications techstack.? If Yes, what version of the OA patch do I need to use for development.
    If not, is there any way to add a custom page to this application?

    OAF can be technology of choice only after 11.5.9 . Use JSP instead to develop your custom pages.
    --Mukul                                                                                                                                                                                                                                                               

  • Custom Stamp Name Display in Acrobat X?

    Our organization relies heavily on the usage of the Stamp tool, we have over 100 custom stamps created which enables us to be a paperless environment.  Here's the problem, in the new Acrobat X, Adobe removed the "names" of the custom stamps in the drop down.  So now you only see the stamp instead of the name.  We have some very large stamps, and some that are very similar but are used in completely different cases.  Does anyone know if it is possible to show the names of the custom stamps in Acrobat X?  This is such a huge deal to us, we won't be able to use any new versions of Acrobat unless this is possible!

    Acrobat does not, or at least it didn't, execute doc level scripts in a
    stamp file. So something else is needed. 
    SeattleUser, I the stampName needs to be specified at all, since the script
    doesn't need to work for a specific stamp, but rather all stamps when not
    being placed.  How about this code?
    event.target.hidden = event.source.forReal;
    Thom Parker
    WindJack Solutions, Inc
    www.windjack.com
    www.pdfscripting.com

  • Custom Stamp Orientation when created

    ok, This is frustrating with a company like Adobe. I get a signature from a document, crop it from the document from the PDF. Save it as blah blah signature. Go to custom stamps, create custom stamps, browse for the signature.pdf I want, hit ok. Then when I go to us it I get a wonderful stamp that at 90 degrees!! No matter how I save the original pdf to make the stamp, it's always at 90 degrees....upside down, 90, 270 degrees, stamp comes out at 90. There's been no answer to this from others on the the same issues as far back as a year. I find this very frustrating....I have made stamps before and some how they came out correct, but now cannot get one without having to fix it.
    This should not be that difficult....please! Any help would be greatly appreciated. I use signatures every day and this is very frustrating.
    Thank you!

    Hi Sarah,
    Yes, I am saving the signature as a pdf originally. I have some that worked in the past….the signatures I have are already in pdf. I crop them and then create the stamp from there.
    Thanks,
    Bill

  • I want to create an 'editable' custom stamp.

    I want to create an editable custom stamp.
    I can scan in my stamp image in the create custom stamp tool, no problem.
    But I would like to make several editable fields: date, reviewer's initials, submittal number.
    Anyone know how to?
    Thanks

    You not only need to create a custom stamp, but you need to add dymanic form fields. See AUC Tutorials - Dynamic Stamps for more information.

  • Creating custom dynamic stamps in Acrobat 9

    I have Acrobat 9 Pro and I'm trying to create my own custom dynamic stamp.  I have the image in a PDF format and I can create  custom stamp out of it but I can't figure out how to add the dynamic fields.  It's pretty easy in Acrobat 8 but there's just no info on how to do it in 9.  I've gone through the web, lynda.com, and nothing.  Some from Adobe, please help wtih this!  Thanks.

    Something that may be of some help:
    http://acrobatusers.com/search/google/custom%20dynamic%20stamps?query=custom%20dynamic%20s tamps&cx=010702214422959725198%3Amrw4k197ftq&cof=FORID%3A11&sitesearch=#433
    Be well...

  • Custom Stamping in Acrobat X

    Our organization relies heavily on the usage of the Stamp tool, we have over 100 custom stamps created which enables us to be a paperless environment.  Here's the problem, in the new Acrobat X, Adobe removed the "names" of the custom stamps in the drop down.  So now you only see the stamp instead of the name.  We have some very large stamps, and some that are very similar but are used in completely different cases.  Does anyone know if it is possible to show the names of the custom stamps in Acrobat X?  This is such a huge deal to us, we won't be able to use any new versions of Acrobat unless this is possible!

    Our organization relies heavily on the usage of the Stamp tool, we have over 100 custom stamps created which enables us to be a paperless environment.  Here's the problem, in the new Acrobat X, Adobe removed the "names" of the custom stamps in the drop down.  So now you only see the stamp instead of the name.  We have some very large stamps, and some that are very similar but are used in completely different cases.  Does anyone know if it is possible to show the names of the custom stamps in Acrobat X?  This is such a huge deal to us, we won't be able to use any new versions of Acrobat unless this is possible!

Maybe you are looking for