I am using GDPicture10 PDF Plugin.
In my application i want to create XML structure of Bookmark tree using GdPicturePDF Class. if i do some modification in below code then i think it will be working for me.
Code: Select all
Private Sub parseOutlines(ByVal oGdPicturePDF As GdPicturePDF, ByVal bookmarkID As Integer, ByVal level As Integer)
While True
MessageBox.Show("Title: " + oGdPicturePDF.GetBookMarkTitle(bookmarkID) + ". level: " + level.ToString())
'Check childs
If oGdPicturePDF.GetBookMarkChildCount(bookmarkID) > 0 Then
parseOutlines(oGdPicturePDF, oGdPicturePDF.GetBookMarkFirstChildID(bookmarkID), level + 1)
End If
'Check for subsequent outlines
bookmarkID = oGdPicturePDF.GetBookMarkNextID(bookmarkID)
If bookmarkID = 0 Then
Exit While
End If
End While
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Using oGdPicturePDF As New GdPicturePDF
oGdPicturePDF.LoadFromFile("c:\outlines.pdf", False)
parseOutlines(oGdPicturePDF, oGdPicturePDF.GetBookMarkRootID(), 0)
End Using
End Sub
So How can i Get destination page number of specific bookmark ?
Regards
Hiren Lad.