HtmlLinkTransformer.Transform Method

Namespace
Kampute.DocToolkit.Formatters
Assembly
  • Kampute.DocToolkit.dll

Definition

Transforms HTML content by updating URLs according to the specified URL translator.
public void Transform(TextReader reader, TextWriter writer, IUrlTransformer urlTransformer = null)

Parameters

reader TextReader
The TextReader to read the source HTML from.
writer TextWriter
The TextWriter to write the transformed HTML to.
urlTransformer IUrlTransformer optional
The optional IUrlTransformer for transforming URLs in the content.

Exceptions

ArgumentNullException
Thrown when reader or writer is null.