简体   繁体   中英

Adobe Javascript object - List and Create folders within a Portfolio file

I'm using Acrobat PRO DC and Excel VBA to automate some interaction with Adobe Portfolio PDF files.

Using the Adobe JSO, is there a way to get a list of existing portfolio subfolders? Or to create new ones? I'm able to add an attachment to a folder within a portfolio file using something like:

Call jso.importdataobject("<1>subfile.txt", "/F/Development/PermFile/subfile.txt")

This will import "subfile.txt" into the first existing folder within the JSO's portfolio file. However, this code does not work if a folder does not already exist in the portfolio file. Also hard coding the actual index of the folder (via <1>) seems fairly clumsy.

Existing folders don't seem to be part of what's returned via the dataObjects collection.

Any help would be greatly appreciated. Thanks!

You can't. The JavaScript API does not have access to folder names.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM