Class LazyLoadOptions
- Namespace
- CobaltPdf
- Assembly
- CobaltPdf.dll
Configuration for the lazy-load scroll behaviour applied before PDF capture.
public class LazyLoadOptions
- Inheritance
-
LazyLoadOptions
- Inherited Members
Remarks
When PageCount is set, CobaltPdf scrolls the page incrementally before rendering, triggering lazy-loaded images and infinite-scroll content.
Properties
Delay
Gets or sets the pause between each individual scroll step.
public TimeSpan Delay { get; set; }
Property Value
Remarks
Defaults to 200 ms. Increase this value if lazy-loaded content takes longer to appear after each scroll.
MaxWaitTime
Gets or sets the maximum time allowed for the entire scroll process to complete.
public TimeSpan MaxWaitTime { get; set; }
Property Value
Remarks
Defaults to 30 seconds. If the page has not finished loading lazy content within this duration, rendering proceeds with whatever content is currently visible.
PageCount
Gets or sets the number of viewport-heights to scroll before capturing the PDF.
public int? PageCount { get; set; }
Property Value
- int?
Remarks
Each scroll step moves the page down by one viewport height.
Set to null (the default) to skip scrolling entirely.