How to remove unused bookmarks of a PDF?

I'm trying to find a way to automatically delete the bookmarks of a PDF document if they attach "named destination" no longer exists in the document.

I thought I could loop through bookmarks, run them, and they threw an error then the bookmark can be deleted, but it did not work IE. no exception is thrown. Here is my code:

myBookmarks var = this.bookmarkRoot.children;

for (var i = 0; i < myBookmarks.length; i ++)

Try

{

myBookmarks [i] is [i] myBookmarks .execute ();.

}

catch (MonErreur)

{

myBookmarks [i] is [i] myBookmarks .remove ();.

}

Someone has ideas how to do? Thank you very much. HJ

At the beginning of the loop, you can set the current view something you know is not the destination of a bookmark (for example, page = 0, zoom = 1234), run the bookmark, and if the view is different, it would be an indication that the bookmark is valid.

Tags: Acrobat

Similar Questions

  • How to remove the bookmarks toolbar?

    How to remove the bookmarks toolbar?

    Hide it.
    View > toolbars - uncheck bookmarks toolbar

  • How to remove unused files from my account site live hotmail?

    original title: unused files

    How to remove unused files from my account site live hotmail?

    The question you have posted is bound using Windows Live (hotmail) and would be better suited to the Windows Live Help Solution . Please visit this link to find a community that will provide the support you want.

  • Z10 blackBerry how to remove a bookmark

    Please, someone knows how to remove a bookmark?

    Nice day

    Welcome to the BB forums

    Click on the link to read bookmarks in combat

    Organize your bookmarks

    Delete a bookmark

  • How to remove a line in a PDF document?

    How to remove a line in a PDF so it's not an empty space left after that I have remove the text in the line I want to delete?

    Basically you don't have. PDF is not a file format of spreadsheet or word processing (see ISO 32000 for a description of this PDF "is").

    After enjoying a few eve readings long winter of the ISO standard, you will come to realize this PDF is no 'tables', the 'lines', the 'columns '...

    Content objects are "painted" on page PDF "canvas" - kinda sorta a paint-by-numbers thing.

    That said you can use content redaction Acrobat Pro for slick tool. Maybe not as elegant as you want, but if done correctly the content is gone (for sure, absolutely, forever).

    Be well...

  • How to create a bookmark in a PDF in Adobe Acrobat Reader DC?

    How to create a bookmark in a PDF in Adobe Acrobat Reader DC

    Hey stas9056600,

    You will need to use Adobe Acrobat software to add bookmarks.

    This can be done using Adobe Reader.

    Kind regards

    Ana Maria

  • How to remove a page of the PDF document?

    How to remove a page from the PDF?

    Tools > Pages > delete

    Select that range from the page to remove

    Click on the OK button

  • How to remove unused objects from the webcatalogs?

    Hi friends,

    How to remove unused objects from the webcatalogs?
    is there a utility like the removal of unused objects of the physical layer in RPD?

    Thank you

    Hello

    Click link responses to the left of the answers click on the catalog button manage manage catalog, you can delete the unused objects

    Concerning

    NGO

  • How to remove a video in acrobat pdf format

    Hello everyone

    This is perhaps a silly question, but I can't figure out how to remove my video in acrobat format

    I'm new to a PDF file

    Would appreciate any help

    1. go to tools-> Rich Media.

    2. click on 'Select' tool in the top toolbar.

    3. click on the video to select this option and press on delete.

    For more details, see using Acrobat | Add audio, video and interactive objects in PDF format

  • How to remove unused lines

    Hello

    I developed a master details Page, at the level of the line I always used to display 10 lines. I used to assign the foreign key values when you save it and it works fine.

    My problem is how to remove the unused lines, save empty in the database lines, please help it's UAT edition.

    Hello

    Public Sub removeUnusedLines()
    {
    Pervert XXEGASRLinesVOImpl = getXXEGASRLinesVO1();
    XXEGASRHeadersVOImpl pervo1 = getXXEGASRHeadersVO1();
    Rank rank [] = pervo.getAllRowsInRange ();
    Rank row1 [] = pervo1.getAllRowsInRange ();
    XXEGASRHeadersVORowImpl = (XXEGASRHeadersVORowImpl) row1 rowh [0];
    for (int i = 0; i)<>
    {
    Rowi rank (XXEGASRLinesVORowImpl)= XXEGASRLinesVORowImpl;
    If ((Rowi.getItemDescription ()! = null) &!("".)) Equals (Rowi.getItemDescription (). Trim()))
    & (rowi.getDimLength ()! = null)
    & (rowi.getDimHeight ()! = null)
    & (rowi.getDimWidth ()! = null)
    & Rowi.getWeight ()! = null
    & (rowi.getItemNumber ()! = null & (!("".)) Equals (Rowi.getItemNumber (). Trim()))
    & (rowi.getProjectName ()! = null & (!("".)) Equals (Rowi.getProjectName (). Trim()))
    & (rowi.getTaskName ()! = null & (!("".)) Equals (Rowi.getTaskName (). Trim()))
    Rowi.Remove ();
    }

    }

    This code number is checked for single value null to a string are checked for both null and string with spaces like "", if it please take care of this in your code, otherwise the code does not work as expected. "

    Hope this will help.

    Kind regards
    Out Sharma

  • How to remove several bookmarks in FF 10.0.1?

    For some reason, I see multiple copies of bookmarks for the same site, and lately, they seem to multiply like rabbits . Is there a way to select all duplicates and delete in one go? Thank you!

    CheckPlaces includes a function to remove duplicate bookmarks, but I think it would be better to understand what caused these duplicates first.

    I see you have Xmarks 4.0.5 installed, but it is disabled.
    Any chance that these duplicates happened when Xmarks has been activated?

    Using Firefox Sync?

    https://addons.Mozilla.org/en-us/Firefox/addon/CheckPlaces/?src=SS

  • I just upgraded from Tiger to Leopard and had again to download Firefox 9.0.1. There is no way to organize the bookmarks as it was before. How to remove a bookmark or change the position of a bookmark in the queue?

    I have an iMac.

    "Bookmarks > organize bookmarks ' has been renamed to"show all bookmarks"in Firefox 4 and later versions.

    See also:

  • How to remove unused genres

    I'm trying to remove unused genres in my library?

    A few types are predefined in the standard MP3 tags. Others, created by you or inherited as part of the downloaded files can be eliminated by changing all instances of this kind.

    In music > My Music > select songs like point of view. You should see a list of the types near the top of the window > select a type you want to eliminate > select all songs are listed in the main window > read information (cmd + I) > remove or change the type field in the window that appears.

  • How to remove a bookmark of reading the pane to the left of the browser window

    I can't remove the reading Bookmarks pane to the left of the screen of my browser. How can I remove it?

    Hello dawei, simply click on the 'X' on the top right to close or press the keyboard shortcut ctrl + B...

  • How to remove all bookmarks in double?

    My Favorites are sorted from A to Z; After the last record (W in my case), the individual bookmarks are correctly sorted from A to Z, which is as it should be. However, after the last bookmark correctly sorted, there a horizontal line and the sort of records starts again. This type is not fooled by the first type 100%, but most are. What is the meaning of the horizontal line and the two why separate kinds? How can I get all the bookmarks (above and below the line) to sort as a single list of A to Z?

    The line is a separator that you can add and remove as needed. Kind works independently in separate lists.

    Open the bookmarks library

    1. Firefox Button-> Bookmarks-> show all bookmarks
    2. Click a separator and right-click to delete,
      (or click where you want and right click to add)

    I have not tried, but you will find the add-on useful check places

Maybe you are looking for