# Public Function SetCustomMetadata(CustomMetadata As Variant, CustomMetadataOnly As Boolean) As Boole

**Defined in**

&#x20;`SwPDFSettings`

**Syntax**

&#x20;`swPDFCreator.PDFSettings`**`.`**`SetCustomMetadata(customMetadata, true)`

**Parameters**

&#x20;`CustomMetadata`

&#x20;Variant. User defined `"Name|Value"` String array.`Dim customMetadata(2) As String`

&#x20;      `customMetadata(0) = "Name|Value"`\
&#x20;      `customMetadata(1) = "Other name|Other value"`

&#x20;`CustomMetadataOnly`

&#x20;Boolean. Defines if custom metadata only will be store in PDF.\
&#x20;              Otherwise Lotus Notes field/value pairs are also stored as metadata.&#x20;

**Return value**

True on success.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.swingsoftware.com/pdf-converter-for-notes/for-developers/lotusscript-api-reference/class-swpdfsettings/public-function-setcustommetadata-custommetadata-as-variant-custommetadataonly-as-boolean-as-boole.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
