Print Page | Close Window

WRONG OUTLINE deleted

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=1042
Printed Date: 22 Nov 24 at 6:42PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: WRONG OUTLINE deleted
Posted By: rogerad
Subject: WRONG OUTLINE deleted
Date Posted: 25 Mar 09 at 3:39AM
i am using delphi 6  dcu 's with version 7.12

i am having problems when i delete outlines from the pdf. Sometimes the wrong outline is deleted

 for exampe i added an outline to a list of bookmarks. The outline was placed at the END of the list.
I then moved the outline to the START of the list with  MOVEOUTLINEBEFORE

i then deleted the outline - the library deleted ALL the other outlines instead of the outline which i tried to delete


another exampie is i added 2 outlines as a child. when i tried to delete 1 outline , the other outline was deleted.


i have NOT included code because i checked the outline title with the ID before calling delete.

a suggestion  to support is 'can you please add the functions GETDESTINATIONFULL and GETDESTINATIONZOOM to the library'

if i cannot fix the wrong outlines being deleted then i can store the detinationfull and detinationzoom when i load the outlines into my program, THEN ALL THE OUTLINE FUNCTIONS WILL BE IN EXISTANCE in the library


this is a copy of an email i have sent to support at quickpdf in case somebody else is having similar problems to me


roger



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



Replies:
Posted By: Rowan
Date Posted: 25 Mar 09 at 10:50PM
Hi Roger,

We've found the problem with the first issue. The MoveOutlineBefore and MoveOutlineAfter functions were not setting the /Parent of the moved node. So subsequently deleting the node resulted in a messed up outline tree.

This has been fixed and will be included in the next release of Quick PDF.

We can't duplicate the problem with deleting the siblings. I will follow up with you in your support case to resolve this issue.

As for the request for new functions - we already have the
GetDestPage, GetDestType and GetDestValue functions. Using these in conjunction with the SetOutlineDestinationFull function should give you everything you need.

Cheers,
Rowan



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