Skip to content

Amazon Kindle Mobil file generator Kindlegen .NET Standard Library

License

Notifications You must be signed in to change notification settings

peacecwz/kindlegen-net-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross Platform Kindlegen .NET Wrapper

Create Mobi file for Amazon Kindle. This library is able to create Mobi file easilly in .NET & .NET Core Applications.

Getting Started

dotnet add package Kindlegen

or

Install-Package Kindlegen

Sample Code

      Console.Write("Write your .opf .htm .html .epub .zip or directory path: ");
      string path = Console.ReadLine();
      var result = KindleConverter.Create(path)
          .SetCompressionLevel(CompressionLevel.NoCompression)
          .SetOutput("test.mobi")
          .Convert();

      if (!result.IsSuccess)
      {
          string message = result.Details.FirstOrDefault(x => x.ConvertLogType == ConvertLogType.Error)?.Message;
          Console.WriteLine($"Has exception: {message}");
      }
      else
      {
          Console.WriteLine("Complete successfully");
      }

TODO

  • Unit Testing
  • More Examples

LICENSE

This project is licensed under the MIT Lıcense

About

Amazon Kindle Mobil file generator Kindlegen .NET Standard Library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages