ConversionLimits Class

ConversionLimits class

Work and size limits. Exhausting a global one fails the conversion with a ConversionException naming it; a per-resource one fails that resource only.

public sealed class ConversionLimits

Constructors

NameDescription
ConversionLimits()Initializes a new instance of the ConversionLimits class.

Properties

NameDescription
ConnectMilliseconds { get; set; }Connecting, ms. Default 10,000.
FontLoadMilliseconds { get; set; }One font load, ms. Default 10,000.
HopMilliseconds { get; set; }One request hop, ms. Default 10,000.
MaxAggregateResourceBytes { get; set; }All resource bytes together. Default 256 MiB.
MaxConcurrentRequests { get; set; }Network image requests sent at once when the network is on and no loader is set. Default 6.
MaxDecodedResourceBytes { get; set; }Decoded bytes of one resource. Default 32 MiB.
MaxDiagnostics { get; set; }Diagnostics kept; more are counted as truncated. Default 10,000.
MaxEncodedResourceBytes { get; set; }Encoded bytes of one resource. Default 16 MiB.
MaxFonts { get; set; }Distinct faces a conversion opens to measure or draw text; configured font files that are never opened do not count. Default 256.
MaxImagePixels { get; set; }Pixels of one image or one output raster. Default 64,000,000: an ImageMode.FullContent PNG at a 1280 px viewport stops at about 50,000 px tall. Past it the save fails with LimitExceeded; raise this value, or save with ImageMode.PrintPages for one image per page.
MaxImportDepth { get; set; }Nested @import depth. Default 32.
MaxInputBytes { get; set; }Input bytes (string input counted as UTF-8). Default 16 MiB.
MaxLayoutDepth { get; set; }Layout nesting depth. Default 480.
MaxLayoutVisits { get; set; }Layout visits per pass. Default 2,000,000.
MaxNodes { get; set; }Document nodes. Default 1,000,000.
MaxOutputBytes { get; set; }All output bytes. Default 256 MiB.
MaxPages { get; set; }Pages. Default 10,000.
MaxPreparationPasses { get; set; }Preparation passes. Default 16.
MaxRedirects { get; set; }Redirects followed per resource. Default 20.
MaxResourceTasks { get; set; }Resource requests per conversion. Default 1000.
PreparationMilliseconds { get; set; }Time spent fetching resources, ms. Default 30,000. Styling and layout count only toward ConversionLimits.TotalMilliseconds.
ReadIdleMilliseconds { get; set; }Idle read, ms. Default 10,000.
TotalMilliseconds { get; set; }Whole conversion, ms. Default 60,000.

See Also