473,326 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Programatically bookmarking a pdf using acrobat api 's

6
hi all,

i have bookmark a pdf from a text file . i am getting error while ...createing a child bookmark .


i like to make bookmark like ...


--->> niraj jha
--->> niraj jha 1(first child).




Dim cFile As String = "C:\Documents and Settings\nirajj\Desktop\niraj\1.pdf"

Dim cApp As Acrobat.CAcroApp
Dim cAvDoc As Acrobat.CAcroAVDoc
Dim cPDoc As Acrobat.CAcroPDDoc
Dim cpage As Acrobat.CAcroPDPage
Dim cBookmark As Acrobat.CAcroPDBookmark
Dim init As Integer = 6

' BOOKMARK OBJECTS
Dim jso As Object
Dim BookMarkRoot As Object
Dim bm As Object
Dim txtJavascript As String

Dim cOpenDoc As Boolean

cApp = CreateObject("AcroExch.App")
cAvDoc = CreateObject("AcroExch.AVDoc")
cPDoc = CreateObject("AcroExch.PDDoc")
cBookmark = CreateObject("AcroExch.PDBookmark")

cApp.Show()
cOpenDoc = cAvDoc.Open(cFile, "Running!")
cPDoc = cAvDoc.GetPDDoc()

jso = cPDoc.GetJSObject
BookMarkRoot = jso.BookMarkRoot

'' txtJavascript = "var otherDoc = app.openDoc('ELS.pdf', this);"

BookMarkRoot.createchild("niraj jha ", "this.pageNum = " & init)

''''''''''''''''''''''''''''''''''''''''''''''erro r getting on below line'''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''
bookmarkroot.children(0).createchild("niraj jha 1","this.pageNum = " & init)
'''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''
cApp.MenuItemExecute("Save")


cApp.Exit()
Mar 4 '08 #1
2 5882
niarj
6
hi no one have worked with acrobat api
Mar 6 '08 #2
niarj
6
No expert is there in the acrobat api.



i have found the answer , contact if need help......
i can help those guys how all need help on acrobat api.
Mar 10 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Andrew | last post by:
My VB Application opens an Access Report and has an option to generate the report in PDF once the report is closed. This is accomplished by: - Switching over to the Acrobat Printer (i.e....
0
by: Michael Strauch | last post by:
Hello, I am trying to use the Adobe Acrobat Reader ActiveX control in a C# program. Adding the control to my application works, calling LoadFile("<pdf filename>") seems to work, too, but when I...
1
by: okaminer | last post by:
I am writing Window service in VB.NET. The service uses COM object by importing the API and using CreateObject("AcroExcg.PDDOC") function When I run this on my computer it works fine but when...
3
by: Joris De Groote | last post by:
Hi, I use Adobe Acrobat to read tekst from PDF files. After that the file has been read, I move the file in a folder (using the date I got from the text I got from Acrobat). Now here is my...
11
by: mjdeesh_hi | last post by:
How can we perfom multiplication programatically without using + or * operator. Can any one help out in this one. Jagadeesh.
2
by: Khan | last post by:
Hi, I'm using acrobat reader contorl in my vb.net application to display pdf files. I'm using version 8.0 of acrobat, but if i run my application on other machine which has different version of...
0
by: vidhyapriya | last post by:
hi i am using Acrobat reader in ASP.Net....in add reference->COM->Acrobat Control for ActiveX....in that pdflib.dll file is added....i cant find any acrobat reader control in toolbax...how to use...
1
by: sajithamol | last post by:
I have to open up a PDF file and then print it, from a .Net project. I could easily add the type library acrobat.tlb and use CreateObject("AcroExch.AVDoc") for accessing acrobat application. But if...
1
by: John | last post by:
Hello I am trying to use an Acrobat SDK object (AcroPDDoc) in my ASP.NET site. I get the following error: Exception Details: System.Runtime.InteropServices.COMException: Retrieving the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.