JavaScript > JavaScript for Acrobat API Reference > JavaScript API > Doc > Doc properties > collection

The value of the collection property is a Collection object of the collection in this PDF. Properties of the collection may be changed through the Collection object.
Note: A PDF file cannot be converted into a PDF collection. The attribute of a document as a PDF collection cannot be removed.
If a new collection is desired, use app.newCollection.
Collection object or a null object if there is no collection in this PDF.
if (this.collection) {
   var collection = this.collection;
   // Do something with the collection...


Send me an e-mail when comments are added to this page | Comment Report

Current page: