# Class: ObjSet

## PDFNet. ObjSet

#### new ObjSet()

  ObjSet is a lightweight container that can hold a collection of SDF objects.

### Methods

#### <static> create()

  Constructor

  ##### Returns:

  A promise that resolves to an object of type: "ObjSet"

  Type
    PDFNet.ObjSet

#### createArray()

  Create a new array object in this object set.

  ##### Returns:

  A promise that resolves to an object of type: "Obj"

  Type
    PDFNet.Obj

#### createBool(value)

  Create a new boolean object in this object set.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `value` | boolean | The boolean value of the object to create

  ##### Returns:

  A promise that resolves to an object of type: "Obj"

  Type
    PDFNet.Obj

#### createDict()

  Create a new dictionary object in this object set.

  ##### Returns:

  A promise that resolves to an object of type: "Obj"

  Type
    PDFNet.Obj

#### createFromJson(json)

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `json` | string |

  ##### Returns:

  A promise that resolves to an object of type: "Obj"

  Type
    PDFNet.Obj

#### createName(name)

  Create a new name object in this object set.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `name` | string | The name of the object to create

  ##### Returns:

  A promise that resolves to an object of type: "Obj"

  Type
    PDFNet.Obj

#### createNull()

  Create a new null object in this object set.

  ##### Returns:

  A promise that resolves to an object of type: "Obj"

  Type
    PDFNet.Obj

#### createNumber(value)

  Create a new number object in this object set.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `value` | number | numeric value of the number object to create.

  ##### Returns:

  A promise that resolves to an object of type: "Obj"

  Type
    PDFNet.Obj

#### createString(value)

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `value` | string |

  ##### Returns:

  A promise that resolves to an object of type: "Obj"

  Type
    PDFNet.Obj

#### destroy()

  Frees the native memory of the object.

#### Search results