English |
Русский
Simple converter from TXT, PDF and EPUB to FB2 format.
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')pip install git+https://github.com/KvaytG/fb2-converter.gitLicensed under the PolyForm Noncommercial license.
This project uses open-source components. For license details see pyproject.toml and dependencies' official websites.