Property Path
- Namespace
- BitMiracle.Docotic.Pdf.HtmlToPdf
- Assembly
- BitMiracle.Docotic.Pdf.HtmlToPdf.dll
Path
Gets or sets the path to a directory with the HTML engine.
public string Path { get; set; }
Property Value
- string
The relative or absolute path to a directory with the HTML engine.
Remarks
Default value: .local-chromium
.
Relative paths are treated as relative to the current directory (as returned by GetCurrentDirectory()).
If there is no directory at the specified path, it will be created.
The library downloads the compatible version of Chromium from https://storage.googleapis.com to the specified directory. Nothing gets downloaded if the directory already contains the compatible version of Chromium. You can pre-download the compatible version of Chromium and put it to the specified directory to avoid downloading at the run time.
ChromiumRevision describes the version of Chromium the library downloads and/or uses.
On Windows, the path must not be a junction link due to Chromium limitations.
Read the Convert HTML to PDF in Azure Functions and Azure App Services article for examples of using this property.