简体   繁体   English

Adobe Javascript 对象 - 在 Portfolio 文件中列出和创建文件夹

[英]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.我正在使用 Acrobat PRO DC 和 Excel VBA 来自动化与 Adob​​e Portfolio PDF 文件的一些交互。

Using the Adobe JSO, is there a way to get a list of existing portfolio subfolders?使用 Adob​​e JSO,有没有办法获取现有投资组合子文件夹的列表? 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.这会将“subfile.txt”导入 JSO 投资组合文件中的第一个现有文件夹。 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.此外,硬编码文件夹的实际索引(通过 <1>)似乎相当笨拙。

Existing folders don't seem to be part of what's returned via the dataObjects collection.现有文件夹似乎不是通过 dataObjects 集合返回的内容的一部分。

Any help would be greatly appreciated.任何帮助将不胜感激。 Thanks!谢谢!

You can't.你不能。 The JavaScript API does not have access to folder names. JavaScript API 无权访问文件夹名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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