Class ResourceHandlingOptions

Class ResourceHandlingOptions

Namespace: Aspose.Html.Saving
Assembly: Aspose.HTML.dll (25.2.0)

Represents resource handling options.

[ComVisible(true)]
public class ResourceHandlingOptions

Inheritance

objectResourceHandlingOptions

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

Default

Gets or sets enum which represents default way of resources handling. Currently Aspose.Html.Saving.ResourceHandling.Save, Aspose.Html.Saving.ResourceHandling.Ignore and Aspose.Html.Saving.ResourceHandling.Embed values are supported. Default value is Aspose.Html.Saving.ResourceHandling.Save.

public ResourceHandling Default { get; set; }

Property Value

ResourceHandling

JavaScript

Gets or sets enum which represents the way scripts are handled. Currently Aspose.Html.Saving.ResourceHandling.Save, Aspose.Html.Saving.ResourceHandling.Ignore, Aspose.Html.Saving.ResourceHandling.Discard and Aspose.Html.Saving.ResourceHandling.Embed values are supported. Default value is Aspose.Html.Saving.ResourceHandling.Save.

public ResourceHandling JavaScript { get; set; }

Property Value

ResourceHandling

MaxHandlingDepth

Gets or sets maximum depth of pages which will be handled. Depth of 1 means that only pages directly referenced from the saved document will be handled. Setting this property to -1 will lead to handling of all pages. Default value is 0.

public int MaxHandlingDepth { get; set; }

Property Value

int

PageUrlRestriction

Gets or sets restriction applied to URLs of handled pages. Default value is Aspose.Html.Saving.UrlRestriction.RootAndSubFolders.

public UrlRestriction PageUrlRestriction { get; set; }

Property Value

UrlRestriction

ResourceUrlRestriction

Gets or sets restriction applied to URLs of handled resources such as css, js, images etc. Default value is Aspose.Html.Saving.UrlRestriction.SameHost.

public UrlRestriction ResourceUrlRestriction { get; set; }

Property Value

UrlRestriction