darren1231 / markdown2pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

markdown2pdf

Concept

This code follow two step

  • 1.convert markdown to html( use markdown)
  • 2.conert html to markdown( use xhtml2pdf)

For quick install

 pip install -r requirements.txt

For install from package

pip install markdown
pip install xhtml2pdf
pip install tqdm

A small demo run for testing

python sample.py

Convert bunch of files

python convert_many_file.py

Change the word type

Different countries have different languages, you can easily replace the font to achieve a successful interpretation of the web page

## just change the document in font file
font/msyh.ttf

About


Languages

Language:Python 100.0%