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.

Merge main into feature/267-pdf-to-excel

cre8ive-marketing421fc91b52dd
diff --cc src/Filee.App/ViewModels/PresetEditorViewModel.cs
index ef1be8d5,1fee4e9b..69e1c9b3
--- a/src/Filee.App/ViewModels/PresetEditorViewModel.cs
+++ b/src/Filee.App/ViewModels/PresetEditorViewModel.cs
@@@ -203,7 -214,7 +214,7 @@@ public sealed partial class PresetEdito
[ObservableProperty]
[NotifyPropertyChangedFor(nameof(ShowImage), nameof(ShowTurnForPdf), nameof(ShowQuality), nameof(ShowTiff), nameof(ShowMultiPageTiff), nameof(ShowWebp), nameof(ShowIco),
nameof(ShowZipResult), nameof(ShowPdf), nameof(ShowPdfBuild), nameof(ShowDocument), nameof(ShowLeaveOutPictures), nameof(ShowPdfSplit), nameof(ShowPdfCombine),
- nameof(ShowPdfCompression), nameof(ShowPdfCompressionOptions), nameof(ShowPdfTablesNote),
- nameof(ShowPdfCompression), nameof(ShowPdfCompressionOptions), nameof(ShowOcr), nameof(ShowPageSize),
++ nameof(ShowPdfCompression), nameof(ShowPdfCompressionOptions), nameof(ShowOcr), nameof(ShowPageSize), nameof(ShowPdfTablesNote),
nameof(ShowMedia), nameof(ShowMediaQuality), nameof(ShowMaxHeight), nameof(ShowAudioBitrate), nameof(ShowRemoveAudio),
nameof(ShowAudioChannels), nameof(ShowWav), nameof(VideoCodecs), nameof(VideoCodecChoice), nameof(ShowVideoCodec), nameof(ShowHardwareEncoding),
nameof(AudioCodecs), nameof(AudioCodecChoice), nameof(ShowAudioCodec),
@@@ -493,15 -516,18 +516,21 @@@
/// <summary>"Save as ZIP" is offered for geospatial targets, whose results are several files (a Shapefile) or travel zipped.</summary>
public bool ShowZipResult => TargetCategory == FormatCategory.Geo;
public bool ShowPdfBuild => TargetId == "pdf";
- public bool ShowPdfSplit => TargetId == "pdf";
+
+ /// <summary>Page size and margin of a PDF built from pictures; not with text recognition (<see cref="Recognizes"/>).</summary>
+ public bool ShowPageSize => ShowPdfBuild && !Recognizes;
+ public bool ShowPdfSplit => TargetId == "pdf" && !Recognizes;
/// <summary>Compression is for PDF → PDF; Ghostscript and metadata only matter while it is on.</summary>
- public bool ShowPdfCompression => TargetId == "pdf";
+ public bool ShowPdfCompression => TargetId == "pdf" && !Recognizes;
+
+ /// <summary>XLSX: what a PDF becomes (its ruled tables, PdfTablesConverter).</summary>
+ public bool ShowPdfTablesNote => TargetId == "xlsx";
public bool ShowPdfCompressionOptions => ShowPdfCompression && CompressionLevel.Value != PdfCompression.None;
+ /// <summary>Text from scans goes into the formats Filee writes from a PDF's text itself (PdfOptions.OcrTargets).</summary>
+ public bool ShowOcr => !IsTool && PdfOptions.OcrTargets.Contains(TargetId);
+
/// <summary>PDF → a single-image format: the pages can be stacked into one tall image (TIFF, GIF, APNG and MNG keep pages).</summary>
public bool ShowPdfCombine => TargetCategory == FormatCategory.Image
&& TargetId is not ("tiff" or "gif" or "apng" or "mng" or "ico" or "cur" or "icns" or "svg" or "pdf");