Exemplo n.º 1
0
        public void Compress(ExtractedEpub epub, string outputFolder, bool forceOverwrite = false)
        {
            var inputFolder = epub.DirectoryPath;

            var folderName    = Path.GetFileName(inputFolder);
            var outputZipName = $"{folderName}.epub";

            var outputPath = Path.Combine(outputFolder, outputZipName);

            if (forceOverwrite && File.Exists(outputPath))
            {
                File.Delete(outputPath);
            }

            ZipFile.CreateFromDirectory(inputFolder, outputPath, CompressionLevel.Optimal, false);
        }
Exemplo n.º 2
0
 public AnnotationTool(ExtractedEpub extractedEpub)
 {
     this.extractedEpub = extractedEpub;
 }