Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Keep the MIME comment with its block

cre8ive-marketingda8c60d15ba4
diff --git a/src/Filee.Engines/Infrastructure/ComplexScripts.cs b/src/Filee.Engines/Infrastructure/ComplexScripts.cs
index f49084fa..a40b11e3 100644
--- a/src/Filee.Engines/Infrastructure/ComplexScripts.cs
+++ b/src/Filee.Engines/Infrastructure/ComplexScripts.cs
@@ -161,11 +161,11 @@ internal static partial class ComplexScripts
{
if (IsZip(path))
return FindInPackage(path, format);
- // Web archives and mail are MIME: their HTML (or text) part is what reaches the PDF.
// Excel 97–2003 is binary: its cells, as the built-in reader reads them (issue #345).
if (format is "xls" or "xlt")
return XlsReader.Read(path).Sheets.SelectMany(sheet => sheet.Rows.Values).SelectMany(cells => cells.Values)
.Select(cell => Find(cell.Text)).FirstOrDefault(script => script is not null);
+ // Web archives and mail are MIME: their HTML (or text) part is what reaches the PDF.
if (format is "mhtml" or "eml")
{
var message = MimeKit.MimeMessage.Load(path);