Click or drag to resize

PdfObjectExtensionsGetOrAddDictionary Method

Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.

Namespace: SautinSoft.Pdf.Objects
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.6.18
Syntax
public static PdfDictionary GetOrAddDictionary(
	this PdfObject obj
)

Parameters

obj  PdfObject
The PdfObject for which the backing PdfDictionary should be retrieved.

Return Value

PdfDictionary
A PdfDictionary that serves as a backing storage of the specified PdfObject.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PdfObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionobj is .
Remarks

If the backing PdfDictionary is null (lazily created when modifying the PdfObject), then the backing PdfDictionary is created, added to the underlying model and returned.

Caution note  Caution
Changes made to the returned PdfDictionary are not verified to be in accordance with the PDF Specification ISO 32000-1:2008 so make them at your own risk.
See Also