Constructor CssStyleSheet

Namespace TallComponents.PDF.Layout.Paragraphs
Class CssStyleSheet

Creates a new CssStyleSheet.

Syntax

public  CssStyleSheet( String  path String  basePath )

Parameters


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

String basePath
Base path for loading path and included style sheets.

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 path is resolved locally.