Aspose.Css

Classes

ClassDescription
ConfigurationThe environment of one conversion: fonts, resource policy, scripting, limits and cancellation. A conversion copies the data it holds at entry; callback objects stay borrowed.
ConversionCanceledExceptionThe conversion was cancelled through Configuration.Cancellation or a language adapter.
ConversionExceptionA fatal conversion failure. Match on ConversionException.Code: InvalidInput, RootLoadFailed, NoFonts, UnsupportedCapability, LimitExceeded, ReadinessNotReached, PaintRefused, LayoutAborted, EvaluationLimit, OutputFailed, InternalError (an engine fault, the original exception as the inner one).
ConversionLimitsWork and size limits. Exhausting a global one fails the conversion with a ConversionException naming it; a per-resource one fails that resource only.
ConversionResultWhat one conversion produced: a detached value that owns all its data.
ConversionTimingsWall-clock phase timings, milliseconds.
ConverterOne-shot HTML to PDF or PNG conversion. A lone string input is a file path; markup goes through the overloads that also take a base URI. Caller streams are read from their current position and never closed. A file output is written beside the target and moved over it when complete.
ConverterAsyncThe .NET task adapter over Converter, outside the portable surface. Arguments and options are refused and the configuration copied before the task is scheduled; the conversion runs on a pool thread. Token cancellation ends the task as canceled, at the next checkpoint; Configuration.Cancellation faults it with ConversionCanceledException, and a limit faults it with ConversionException.
EvaluationLimitExceptionThrown in evaluation mode when the process passes the document cap or a document passes a size ceiling. The first line of the message is the sentence the README gives for the cap.
FontDataFont bytes supplied by IFontProvider.
FontSettingsWhere faces come from. Configured faces come before the bundled fallback, and the machine’s installed fonts, when FontSettings.UseSystemFonts, come last.
HtmlSourceWhere the HTML comes from. A path’s directory becomes an allowed file root; string and stream bases are absolute http(s) or file URIs, or about:blank.
LicenseApplies a licence in the Aspose licence file format to this process. Without one the library runs in evaluation mode: full output, a per-process document cap, size ceilings and a metadata mark (see EvaluationLimitException). A licence can also be given by the ASPOSE_CSS_LICENSE environment variable, a path or the base64 of the file.
PageInfoOne page written.
RenderDocumentA document loaded once and saved any number of times, each save with its own media and page options. Saves use the configuration captured at RenderDocument.Load; a save whose options carry a configuration is rejected. Saves are serialised per document.
ResourceFailureOne failed or denied resource.
ResourceSettingsResource policy: network, a caller loader, allowed origins and file roots, headers.
ResourceSummaryResource outcomes. Missing (Failed) and blocked (Denied) stay distinct.
ScriptingSettingsScript settings. Scripts run only when ScriptingSettings.Enabled is set; the default runs none.

Interfaces

InterfaceDescription
ICancellationSignalA cooperative cancellation request, polled by the conversion.
IFontProviderSupplies font bytes, not host metrics.

Enumerations

EnumerationDescription
ConversionCompletionHow a returned conversion completed.
LicenseStateWhether this process runs under a verified licence or in evaluation mode.