Table of Contents

Method GetLongInteger

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

GetLongInteger(string, bool, long)

Gets the integer or long integer value that corresponds to the specified key. If the key does not exist and create is false, the function returns the defaultValue. If the key does not exist and create is true, a direct value will be created using the defaultValue. If the key exists but the value is neither an integer or a long integer nor a PDF reference to an integer or a long integer, the function throws an InvalidOperationException.

public long GetLongInteger(string key, bool create = false, long defaultValue = 0)

Parameters

key string
create bool
defaultValue long

Returns

long