Click or drag to resize

ScreenshotOptionsChromiumBaseDirectory Property

Gets and sets a custom directory where will be placed portable Chromium browser. Default value depends of platform (win-x64, win-86, linux-x64 or osx-x64)Current directory\runtimes\win-x64\native\.

Namespace: SautinSoft.PdfVision
Assembly: SautinSoft.PdfVision (in SautinSoft.PdfVision.dll) Version: 2024.6.20
Syntax
public string ChromiumBaseDirectory { get; set; }

Property Value

String
Remarks
Before start the converting the component will always try find the portable Chromium browser in this directory.
In case of Chromium browser is missing in this directory, the component will try to download Chromium browser from Internet (https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html).
To unpack the portable Chromium browser without Internet connection: 1. Add reference into your App to one of these assemblies depending of deploying platform:
https://www.nuget.org/packages/SautinSoft.PdfVision.Chromium.Windows
https://www.nuget.org/packages/SautinSoft.PdfVision.Chromium.Linux
https://www.nuget.org/packages/SautinSoft.PdfVision.Chromium.MacOs
2. Launch this code:
ChromiumEngine.Unpack(ChromiumBaseDirectory);
Thus you can always be sure that you deploy SautinSoft.PdfVision with portable Chromium browser on client's machine without Internet connection.
See Also