Click or drag to resize
Pdf Library for .NET

HtmlToPdfOptionsManagedContentTrimming Property

Gets or sets whether the library decides where the rendered content ends on each page. Default: true.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public bool ManagedContentTrimming { get; set; }

Property Value

Boolean
Remarks

With true, the page the content ends on is drawn only down to where the content ends, on a document of any length.

With false, the rendering engine shortens the page to the content itself, which it does only when the whole content fits on one page. Set it to false if pages are cut in the wrong place.

AllowContentHeightResize set to false turns off both ways of cutting.

See Also