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.

Apply project formatting

Perrichenoaf319af7dd1e
diff --git a/src/Filee.App/ViewModels/PdfPageEditorViewModel.cs b/src/Filee.App/ViewModels/PdfPageEditorViewModel.cs
index d0369e2f..83684723 100644
--- a/src/Filee.App/ViewModels/PdfPageEditorViewModel.cs
+++ b/src/Filee.App/ViewModels/PdfPageEditorViewModel.cs
@@ -231,9 +231,13 @@ public sealed partial class PdfPageEditorViewModel : ObservableObject
PreserveDates(output, applied);
_store.AddHistory(new HistoryEntry
{
- JobId = Guid.NewGuid().ToString("N")[..10], FinishedAt = DateTime.Now, PresetId = preset.Id,
- PresetName = _loc.DisplayName(preset), State = JobState.Completed,
- Sources = pages.Select(p => p.Path).Distinct(FileSystemPaths.Comparer).ToList(), Outputs = [output],
+ JobId = Guid.NewGuid().ToString("N")[..10],
+ FinishedAt = DateTime.Now,
+ PresetId = preset.Id,
+ PresetName = _loc.DisplayName(preset),
+ State = JobState.Completed,
+ Sources = pages.Select(p => p.Path).Distinct(FileSystemPaths.Comparer).ToList(),
+ Outputs = [output],
});
Status = _loc.Format("pdf_editor.saved", System.IO.Path.GetFileName(output));
return closeWhenDone;
diff --git a/src/Filee.Engines/Pdf/PdfPageTools.cs b/src/Filee.Engines/Pdf/PdfPageTools.cs
index 093888a6..f6eebffc 100644
--- a/src/Filee.Engines/Pdf/PdfPageTools.cs
+++ b/src/Filee.Engines/Pdf/PdfPageTools.cs
@@ -1,12 +1,12 @@
// Lossless PDF page tools used by the interactive editor: PDFium supplies previews, while PDFsharp changes page
// boxes or copies pages without rasterising their text and drawings.
-using PDFtoImage;
-using PDFtoImage.Exceptions;
using Filee.Core.Platform;
using PdfSharp.Drawing;
using PdfSharp.Pdf;
using PdfSharp.Pdf.IO;
+using PDFtoImage;
+using PDFtoImage.Exceptions;
using SkiaSharp;
#pragma warning disable CA1416 // PDFium ships for every desktop platform Filee targets.