How to remove some words from Acrobat bookmarks?

How would I go on the creation of javascript code which removed the word "Chapter" and the number of subsequent chapter of bookmark positions?

For example, the chapters of first level in my book always print to your Favorites in this way:

Chapter 1 [chapter name]

Chapter 2 [chapter name]

I want just the bookmarks as follows:

[chapter name]

[chapter name]

For this to be a bit more complicated, I'm already using javascript that bands connecting them numbers some bookmarks. Thus, for example, some bookmarks will publish:

1.1 [name of section]

1.2.1 [name of section]

... and my javascript will change those of:

[name of section]

[name of section]

Here are my javascript classes:

function removeBookmarkPrefix (bookmark) {}

If there is no bookmarks, do nothing

If (bookmark == null) return;

Recursive function to remove the prefix to bookmark

Rename the bookmark without prefix

Bookmark.Name = bookmark.name.replace (/ ^ \d\S * \s + /, "");

If (bookmark.children! = null) {}

for (var i = 0; i < bookmark.children.length; i ++) {}

removeBookmarkPrefix (bookmark.children [i]);         }

}

I want to add more code to remove the word "Chapter" and no subsequent numbering.

Add this line after the command, replace your current:

Bookmark.Name = bookmark.name.replace (/ ^ \d+ chapter /, "");

Tags: Acrobat

Similar Questions

  • How to remove a Word from the default dictionary of firefox?

    How to remove a Word from the default dictionary of firefox?
    If I wanted to remove the word 'dog' or 'and' for example

    There may be a range of reasons for wanting to do this, including the deletion of the words you use rarely as similar to other common spellings used words for example. "minute" and "Minuet", delete the words that you find personally offensive, or removing words that, because of linguistic or cultural background, you would not consider words at all.

    Note that I'm not asking how to remove my 'dictionary' words, words that I added myself.

    Hello

    I talked to a few people and I think I'm able to help you with this.

    There are two dictionary files, the default that comes with your version of Firefox and personal 'custom' that you create yourself with phrases and words.

    If you want to change the personal;

    1. Copy Subject: support and paste into the address bar.
    2. Next to the profile folder, click the marked File Show
    3. Find the file persdict.dat. Rename a text file, open, modify, re save it as persdict.dat and replace.

    If you want to change the default dictionary, it could be more of a problem and a lot more technique to do. I would recommend that you look at the problem differently and consider filtering of pages based on inappropriate content using Add-ons such as ProCon Latte Content Filter.

    I hope this helps, but if not, please come back here and we can look at another solution for you.

  • How to export to Word from Acrobat?

    I can't get my Adobe Pro to work. I've tried everything. Can I get someone to respond, please?

    Is not not be able to access a feature is very different than a generic does not work. In any case, open a PDF file in Acrobat. Then select file > save as other > DOCX or as the case may be. It should also be an export tool that performs the same basic procedure.

  • How to remove some unusual applications of my apple ID

    How to remove some unusual applications of my apple ID

    I don't know what you mean by unusual apps, but you cannot delete apps from your purchase history at all. All purchases are for always connected to your Apple ID and cannot be deleted.  You can hide and expose the purchases.

    Hide and expose the iTunes Store, App Store or purchases made on iBooks Store - Apple Support

    If you want to remove third-party applications not used, press on the icon of the app until it wiggles and then tap the X in the corner of the icon. When you are finished, press the home button. You can also go into settings > general > storage & use iCloud > storage > storage management. Let the list of load applications. Tap the one you want to delete and delete on the next screen.

    You can not remove the preinstalled applications.

  • Remove some programs from running at startup

    How can I remove some programs from running at startup? for example, Super Anti Spyware, automatically runs on startup and is listed in the lower right corner of my desk drawer, but it really slows my time to go on the internet. I only have access if necessary.

    You can click on start > run > msconfig

    then under the Startup tab, you will find a list of programs that launch at startup of windows.   they are activated by a check mark.

    In addition, you can check the services through the services tab.

    Select / check "hide microsoft services" and then what remains on the revised list are non-microsoft programs you have added to the system and are also expected to start automatically.

    don't forget to click 'apply' for the changes you make and then restart to see the effects.

  • How to remove a Word and replace it

    How to remove a Word and replace it with another?

    @

    Not possible with the reader. You might be able to do using Adobe Acrobat, if.

  • How to remove a folder from photo?

    How to remove a folder from photo?

    Google translation

    How to remove a file photo?

    Show the sidebar (menu display == > display the sidebar) and right-click on the folder and select Delete folder

    LN

  • How to remove a language from the spelling?

    I use Firefox with Linux and I really like it. I wonder how to remove some language options that I don't use the spell check.
    I tried to go into tools > add on > languages and disable Firefox (en - AU) Firefox (en - CA) and Firefox (en-GB), but that has not worked. I would like to just English and United States are Spanish and medical dictionary.

    Linux:
    Go to the/usr/share/hunspell of folder and delete the dictionary not required.
    en - THE .dic and Associates en - in THE .aff or move them to a subfolder.
    Restart Firefox.

    I guess that Windows users can find the names of files and do the same thing.

  • How to remove "Skype available" from the top of the notification page?

    How to remove "Skype available" from the top of the notification page - useless promotion!

    Hello!

    Disable the Skype status under Notification settings in Skype.

    All best
    Siim

  • How can I prevent word from opening when I boot my Mac?

    How can I prevent word from opening when I boot my Mac?

    It may be something added to the login items in System Preferences > users and groups

    When you shut down the computer, there is also a checkbox asking you if you want to keep the configuration of the application that you have at that time, in which case it will return all open applications.

  • How to remove a library from iMovie 10?

    How to remove a library from iMovie 10? It seems impossible from iMovie. Do I have to remove the library in the Finder?

    Yes just remove you it with the Finder.

    Geoff.

  • How to remove a city from the weather app in IOS 9.2.1?

    I have an IPhone6S that I bought recently and am running IOS 9.2.1. I can't understand how to remove a city from the weather app. I tried to go to settings, where there is a list of all the applications on my phone except the weather app, so no help there. Any body can help me with this?

    You must tap on the small set of lines in the lower right to get list view. Then you can find the city that you want to delete, drag to the left to see the button Delete.

    See you soon,.

    GB

  • How to remove a folder from the CMA of my macbook air?

    I was remove some files from my mac to make the space more and I came across a folder called AMC and I didn't know that it uses so I put it in the trash. But now when I try to empty my trash, he said: "the operation cannot be completed because the item"AMCDaemon"is in use." so I clicked on continue and then he says again "the operation cannot be completed because the item"AMC"is used", so I clicked on continue again and he just stayed in my garbage can. I tried clicking all options (jump, stop and continue) and the same arise each time please help me it is always in my trash now

    I use a mac version 10.10.5

    Ignore.

  • How to remove a book from Mac or iPhone?

    How to remove a book from Mac or iPhone?

    Are what version of iBooks you on Mac?

    I read a bunch of discussions on trying to delete apps and books from iTunes (where books used to be), and the responses dealing with the last iTunes and iBooks basically say the same thing: can't delete anything. At least, you can't delete the old sense of deleting the file completely. Now when you 'delete' something, you're really just hide the view.

    I just tried to remove a book from the last iBooks (in El Capitan on my iMac) and the fine print in the dialog box has said very clearly that I take away the book of view, but it would still be redownloadable of the cloud. (I hope that cloud of it's Apple, not mine.) I want to manage what is in my cloud, and I don't want that it is cluttered with things that I "deleted".)

    In theory, I don't see Apple. You can just save space on a device, but be able to find the book later. But this isn't the case with me. When I delete something, I want to TAKE forever. Case in point, the book that I just deleted was one in iOS 8.3. Why I ever would want to get that now that I am using iOS 9?

    Apple seriously needs to rethink its approach to this issue. Maybe needing a second choice to confirm if you're trying to hide something or remove the cloud, or really, really want you permanently gone. But Apple is not choice. Never ever going to be I guess.

    Rob

  • want to remove some programs from my "adding and deleting' on the control panel

    I am wanting to remove some programs from my "adding and deleting' on the control panel.  I have several that I don't know if they are necessary in order to do not want to delete them until I have found.  Example: Microsoft.NET framework 2.0 service pack 2, if I said the same thing with the exception of program 3.0 can remove either one or both or what?  Redistributible MS Visual C ++ 2005 and also have 2008 and 2110.  Platform Installer 3.0, WCF RIA Services V1.0 for visual studio 2010.  I don't even remember downloading all of this stuff, but don't know if it has a meaning to my computer or not.  Y at - it somewhere I can look to find such information?  Don't like silly things like this, but would rather ask that screw up something.  Thank you

    Hello

    • What version of Windows are you using?

    I suggest you to see these steps:

    a. type msinfo32 in the start search box and press on Enter.

    b. a pop-up window, press CTLR + A, then CTLR + C and after that information here.

    c. then we can suggest you what program needs to be uninstalled.

    Response with more information

Maybe you are looking for

  • HowTo: get chess unicode to display correctly: 2659 UTF

    What should I do to get the unicode of chess characters display correctly. This page: http://www.fileformat.info/info/unicode/char/2659/browsertest.htmshow me the unicode values in small boxes.None of the fonts of the "local fonts list" show the char

  • Portege Z930 - need to Win8 driver for Ericcson 3 G

    I've updated my Toshiba portege Windows 8, and everything works fine, except the Ericcson G 3, I think and it doesn't work,What should I do? Thanks in advance

  • playmemories ver3.0.2 House cannot see the mts files

    Playmemories home v 3.0.2 can not see the mts files. He can see all the jpg files. The MTS files can be seen in windows Explorer and also read via windows media player.

  • Satellite A300D + Windows 7 = need a driver

    Help, please! I am trying to install Windows 7 x 64 Professional on my Toshiba Satellite A300D (PSAK8E), but no matter if I use the compatibility or the AHCI mode in the BIOS, it takes some driver to work. (which probably means that W7 cannot find ap

  • My motherboard is broken or is she something else

    I have a pavilion p6310y that I'm trying to fix up. It begins with the blue hp screen with function keys. It then goes to a blackscreen saying things on safe mode or if I just want to start it normally. When I click on start windows normally it comes