What I try to do:
Add a SVG directly in my HTML string to convert it to a pdf.
but the SVG seems to be ignored?
<html>
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#000000">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M1 0H9H11C13.2091 0 15 1.79086 15 4V6V24H13C10.7909 24 9 22.2091 9 20V6H5C2.79086 6 1 4.20914 1 2V0ZM19 0H17V6H23V4C23 1.79086 21.2091 0 19 0Z" />
</svg>
</html>
Is there Something I can do or is this not supported?
Hi Gijsbert,
Please try again using the current latest NuGet package:
Install-Package GemBox.Document -Version 35.0.1671-hotfix
Note that this is a hidden pre-released version, to install it you’ll need to run the above command on the NuGet Package Manager Console (Tools → NuGet Package Manager → Package Manager Console).
Also, just to check, do you have native assets added for HarfBuzzSharp and SkiaSharp:
<ItemGroup>
<PackageReference Include="GemBox.Document" Version="35.0.1671-hotfix" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.7" />
<PackageReference Include="HarfBuzzSharp.NativeAssets.Linux" Version="7.3.0.1" />
</ItemGroup>
Does this solve your issue?
Regards,
Mario