Constructor CssStyleSheet

Namespace TallComponents.PDF.Layout.Css
Class CssStyleSheet

Creates a new instance of the CssStyleSheet class.

Syntax

public  CssStyleSheet( String  path String  basepath )

Parameters


String path
The (relative) (web)path to the stylesheet to load.

String basepath
The basepath for included pa

This 'wrapper' tries to resolve the location of the stylesheet by checking various types. The first matching is evaluated:

- path is already a complete url

- basepath is a url, appends the stylesheetName

- path is a local file (relative to current working folder)

- path is a local file (relative to given basepath)

- the application is running in a web context: the web paths are resolved locally.