Answered
I would like to export or print a list of the contents of a portfolio. It appears that I can print a file or files of the portfolio but I can't find a command anywhere to print a list of the contents.
I would like to export or print a list of the contents of a portfolio. It appears that I can print a file or files of the portfolio but I can't find a command anywhere to print a list of the contents.
if (this.dataObjects != null) {var rep = new Report();rep.size = 1.7;rep.color = color.black;rep.writeText("Summary of files within the PDF portfolio: " + this.documentFileName + "\n");rep.writeText("Format : <level within folder tree>[filename]\n\n");var d = this.dataObjects;rep.indent(20);rep.color = color.blue;for (var i = 0; i < d.length; i++)rep.writeText(d[i].name);rep.color = color.black;rep.writeText("\n -- END OF LIST --");var docRep = rep.open("membership_of_" + this.documentFileName);} else app.alert("No attachments or not a portfolio");
if (this.dataObjects != null) { var rep = new Report(); rep.size = 1.7; rep.color = color.black; rep.writeText("Summary of files within the PDF portfolio: " + this.documentFileName + "\n"); rep.writeText("Format : <level within folder tree>[filename]\n\n"); var d = this.dataObjects; rep.indent(20); rep.color = color.blue; for (var i = 0; i < d.length; i++) rep.writeText(d[i].name); rep.color = color.black;rep. writeText("\n -- END OF LIST --"); var docRep = rep.open("membership_of_" + this.documentFileName); } else app.alert("No attachments or not a portfolio");
In one instance, I created a zip file of the portfolio documents and was then able to print the list from there.