image printing fix

This commit is contained in:
EugeneTes
2026-01-16 16:07:45 +01:00
parent 5229cac987
commit 4720ca2d57
3 changed files with 14 additions and 4 deletions

View File

@@ -566,6 +566,8 @@ public class HtmlPrinter : IEpsonPrinter
// Get relative path for HTML
var htmlDir = Path.GetDirectoryName(_outputPath) ?? ".";
if(htmlDir=="")
htmlDir=".";
var relativeImagePath = Path.GetRelativePath(htmlDir, imagePath).Replace('\\', '/');
// Add to HTML content