Updated projects to newer libraries
Using flags instead of dictionary
This commit is contained in:
+17
-6
@@ -11,9 +11,9 @@ using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using GroupDocs.Parser;
|
||||
using GroupDocs.Parser.Data;
|
||||
using iText.Kernel.Pdf;
|
||||
//using GroupDocs.Parser;
|
||||
//using GroupDocs.Parser.Data;
|
||||
//using iText.Kernel.Pdf;
|
||||
|
||||
using Imazen.WebP;
|
||||
|
||||
@@ -141,12 +141,23 @@ namespace ComicCompressor
|
||||
// });
|
||||
//}
|
||||
|
||||
|
||||
FileProcessor.ProcessorFlags flags = new FileProcessor.ProcessorFlags(null, null,
|
||||
recursive: false,
|
||||
skip: false,
|
||||
parallel: false,
|
||||
pdf_only: false,
|
||||
image_only: false,
|
||||
zebra: false,
|
||||
copy_all: false,
|
||||
new_webp: false
|
||||
);
|
||||
|
||||
private void OnExecute()
|
||||
{
|
||||
|
||||
|
||||
|
||||
File_statistics.Clear();
|
||||
flags.File_statistics = File_statistics;
|
||||
|
||||
myColors = new Color[names.Count()];
|
||||
for(int i = 0; i< myColors.Length; i++)
|
||||
@@ -460,7 +471,7 @@ namespace ComicCompressor
|
||||
|
||||
try
|
||||
{
|
||||
compressor.Compress(filename, outputPath, file_statistics);
|
||||
compressor.Compress(filename, outputPath, flags:flags);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user