Method GetRequiredDictionary
GetRequiredDictionary(string, VCF, Type?)
public PdfDictionary GetRequiredDictionary(string key, VCF options = VCF.None, Type? valueType = null)
Parameters
keystringoptionsVCFvalueTypeType
Returns
GetRequiredDictionary<T>(string, VCF)
Gets the PdfDictionary with the specified key, or throws an exception, if no such object exists and should not be created. If the key refers to a reference, the referenced PdfDictionary is returned. If the dictionary exists, but cannot be transformed to type T, an exception is thrown.
public T GetRequiredDictionary<T>(string key, VCF options = VCF.None) where T : PdfDictionary
Parameters
keystringThe key.
optionsVCFThe creation options.
Returns
- T
Type Parameters
TThe type of the PDF dictionary.