Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
Prathibha_Venkatesh@adobeforums.com #1
How to get Bookmarks & Links from a PDF file in c#
Hi,
I want to get the Bookmarks & Links from a existing PDF file in c#.
I will apprecite if any body can help me.
The following is VB code to get the Bookmarks using JSObject.
I require this in c# either using JSObject or any other way.
Also, I need to get the Links.
Dim OurPathFileName As String
Dim PDDoc As Acrobat.CAcroPDDoc
Dim jso As Object 'JavaScriptObject
Dim BookMarkRoot As Object
Dim Bookmark As Variant
Dim bookmark2 As Variant
OurPathFileName = "d:\TOC2.pdf"
Set PDDoc = CreateObject("AcroExch.PDDoc")
If PDDoc.Open(OurPathFileName) Then
Set jso = PDDoc.GetJSObject
Set BookMarkRoot = jso.BookMarkRoot
'1st hir
Bookmark = jso.BookMarkRoot.children
MsgBox Bookmark(0).name
'2 hir
bookmark2 = Bookmark(0).children
MsgBox bookmark2(0).name
End If
Thank you,
Prati
Prathibha_Venkatesh@adobeforums.com Guest
-
Can I import the bookmarks page (links) from another PDF?
I have worked in Acrobat 7 pro a bookmarks page for all 125 pages of a PDF. But then I created a new PDF from the same In Design document after some... -
Creating text links to existing bookmarks
I've created a PDF file from a supplied MS Word document. The Word doc included 4 headings that allowed the user to click and jump down the page... -
Total Bookmarks and Links
In Acrobat 5.0 when you ran the Optimize Space batch process, at the end it would give you a list of bookmarks, links, and destinations that were in... -
Broken links to bookmarks
I have a document that get updated monthly, when I delete and re-insert new pages I edit the links and save. about 50% of the time the link will work... -
Links/Bookmarks in 6.0 - setting destinations
I know it's been listed here before, but are there any methods or best practices for setting the destination of a link or bookmark when you don't...



Reply With Quote

