kindlegen net core
1.0.0
Cree un archivo MOBI para Amazon Kindle. Esta biblioteca puede crear el archivo MOBI Easilly en aplicaciones Core .NET & .NET.
dotnet add package Kindlegeno
Install-Package Kindlegen 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" ) ;
} Este proyecto tiene licencia bajo el MIT Lıcense