Adds custom key-name pair to this file specification.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void SetCustomName(
	string key,
	string name
)
VB
Public Sub SetCustomName ( 
	key As String,
	name As String
)

Parameters

key
Type: System.String
The key part of the pair.
name
Type: System.String
The value (name) part of the pair.

Remarks

This method throws ArgumentException if key is one of the keys defined in PDF Reference for File Specification Dictionaries.

The key must not be null.

Providing null for the name removes existing value for the specified key (if any).

The pair will be stored as /key /name in this file specification dictionary.

See Also