Creating bookmarks from access(VBA)


hi all,

 

im creating number of bookmarks access 2010 via vba. , works fine except acrobat.exe file still remains in process permanently. ive found line bookmarklist = bookmarkroot.children causes acrobat.exe stay in memory. hope im missing fundamental here.if remove line, acrobat.exe closes correctly , disappears proccess. ive tried bookmarklist = null(long shot) , set bookmarklist = nothing without success. im hoping can guide me in right direction here im using acrobat pro x. can replicate issue or better yet know how fix it?

 

dim bookmarklist variant

dim objadobe object

dim avdoc object

dim pddoc object

dim pdpage object

dim jso object

dimbookmarkroot object

 

 

 

 

set objadobe = createobject("acroexch.app")

set pddoc = createobject("acroexch.pddoc")

set avdoc = createobject("acroexch.avdoc")

 

pddoc.open("c:\xxxxx \test.pdf") 'it has 1 page in it

 

set jso = pddoc.getjsobject

set bookmarkroot = jso.bookmarkroot

bookmarkroot.createchild "test", "", 0

bookmarklist = bookmarkroot.children'causes acrobat.exe stay open in task manager(processes), have tried set bookmarklist= nothing , bookmarklist= null

 

pddoc.save(1,'c:\xxxx\test2.pdf')

 

set jso = nothing

set pdpage = nothing

set avdoc = nothing

set bookmarkroot = nothing

pddoc.close

objadobe.closealldocs

objadobe.exit

set pddoc = nothing

set objadobe = nothing

 

regards,

 

ingman

"bookmarklist = bookmarkroot.children"

 

hi,

 

you don't need line in script (first level bookmarks).

so simple let out.

 

br., reinhard



More discussions in Acrobat SDK


adobe

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues