Professional Web Applications Themes

Merging a PDF with bookmark as a child of a bookmark node - Adobe Acrobat SDK

I have already developed a plugin that merges several PDF's and generates bookmarks But there is one issue If a PDF already has bookmarks, I dont see the bookmarks inserted after that pdf file, instead they appear as a sibling of the root. I have tried using PDDocInsertPages(pdDoc1,PDLastPage ,pdDoc2, 0, PDAllPages ,PDInsertBookmarks, NULL,NULL,NULL,NULL);. This is probably causing the bookmarks to show up as siblings of the root as well as PDDocInsertPages(pdDoc1,PDLastPage ,pdDoc2, 0, PDAllPages ,PDInsertAll, NULL,NULL,NULL,NULL); Any suggestions as to how to add a PDF file with bookmarks as a child of an existing bookmark , so that all the ...

  1. #1

    Default Merging a PDF with bookmark as a child of a bookmark node

    I have already developed a plugin that merges several PDF's and generates bookmarks
    But there is one issue
    If a PDF already has bookmarks, I dont see the bookmarks inserted after that pdf file, instead they appear as a sibling of the root.

    I have tried using
    PDDocInsertPages(pdDoc1,PDLastPage ,pdDoc2, 0, PDAllPages ,PDInsertBookmarks, NULL,NULL,NULL,NULL);.
    This is probably causing the bookmarks to show up as siblings of the root

    as well as

    PDDocInsertPages(pdDoc1,PDLastPage ,pdDoc2, 0, PDAllPages ,PDInsertAll, NULL,NULL,NULL,NULL);

    Any suggestions as to how to add a PDF file with bookmarks as a child of an existing bookmark , so that all the bookmarks of this PDF file will be children of the node under which this file is added

    Also i need to know, if by doing this will it preserve the bookmark actions of the PDF file will be preserved

    Thanks
    Swapneel
    swapneel_kulkarni@adobeforums.com Guest

  2. #2

    Default Re: Merging a PDF with bookmark as a child of a bookmark node



    Also i need to know, if by doing this will it preserve the bookmark actions
    of the PDF file will be preserved




    If the bookmark action is to go to a specific page, no it will not be preserved as the page numbers will be different once the doents are merged (except for the first doent in the merge).

    If the bookmarks used named destinations then yes, they will be preserved (assuming you don't have the same named destination in more than 1 file being merged).
    PDL@adobeforums.com Guest

Similar Threads

  1. bookmark
    By Bookmark in forum Adobe Acrobat SDK
    Replies: 5
    Last Post: October 16th, 06:26 PM
  2. bookmark/hyperlink
    By David Bartosik - MS MVP in forum Web Design
    Replies: 1
    Last Post: May 19th, 06:56 PM
  3. Is this a bookmark bug in 6 Pro?
    By ninacrum@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: April 16th, 01:57 PM
  4. Help Please -Bookmark help - File Name= Bookmark
    By David_Sokol@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 0
    Last Post: April 8th, 05:45 PM
  5. Why can't I set a Bookmark
    By Bruce_Holley@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 0
    Last Post: April 2nd, 11:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139