Print Page | Close Window

Bookmarks and outlines help

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=201
Printed Date: 25 Nov 24 at 2:59AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Bookmarks and outlines help
Posted By: rogerad
Subject: Bookmarks and outlines help
Date Posted: 08 Dec 05 at 9:44PM

can someone please give me an example which lists all the SUB bookmarks in the pdf file

 i can list all the main topic bookmarks but am having problems with exapanding bookmark lists

 

eg i use delphi

my current code is


          OutlineCount := qp.OutlineCount ;
          StatusBar1.Panels[1].Text := 'bookmark Total  =  ' + inttostr(OutlineCount );

//'-- Loop through Outline


id := QP.GetFirstOutline;


         qp.OpenOutline(id);
begin


  while id > 0 do
    begin
       title := QP.OutlineTitle(id) ;
   // If title=term Then
        page := QP.GetOutlinePage(id) ;
        id := QP.GetNextOutline(id)  ;

             globals.bookmarksLine := globals.TbookmarksLine.Create(Page, title,id);

           formmainnew.BookmarksList.Add(bookmarksLine);

          end;

end;

    

 

 

thank you



-------------
roger adams



Replies:
Posted By: chicks
Date Posted: 09 Dec 05 at 1:13AM
Here's a little commandline util that searches recursively through all bookmarks and their children to match a term. You pretty much need to do this recursively to descend through all children.

http://www.geocities.com/sea_sbs/files/pdfsrch.zip

Written in PowerBasic ('cause it's easy and fast)

Requires the DLL version of QuickPDF, and Adobe Reader.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk