Table of Contents

Property MaxOutputBytes

Namespace
DocWright.Core
Assembly
DocWright.Core.dll

MaxOutputBytes

Gets or sets the maximum number of bytes a writer may emit, or null for unlimited.

The read and layout paths were already capped; writing needs the same treatment, because a pathological or hostile document model can produce output far larger than the input that created it. Exceeding the cap raises ResourceLimitExceededException rather than filling the destination.

public long? MaxOutputBytes { get; set; }

Property Value

long?

Exceptions

ArgumentOutOfRangeException

The value is not positive.