Skip to content

KvaytG/fb2-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fb2-converter

Python 3.10 MIT License Sponsor

Simple converter from TXT, PDF and EPUB to FB2 format

📚 Usage

from fb2_converter import convert_txt_to_fb2,\
    convert_pdf_to_fb2, convert_epub_to_fb2

# Convert TXT to FB2
convert_txt_to_fb2('input.txt', 'output.fb2', 'example-font.ttf')

# Convert PDF to FB2
convert_pdf_to_fb2('input.pdf', 'output.fb2', 'example-font.ttf')

# Convert EPUB to FB2
convert_epub_to_fb2('input.epub', 'output.fb2', 'example-font.ttf')

⚙️ Installation

pip install git+https://github.com/KvaytG/fb2-converter.git

📜 License

Licensed under the MIT license.

This project uses open-source components. For license details see pyproject.toml and dependencies' official websites.