- Download the reportlab:
pip install reportlab
- Choose your ideogram
- Set your ideogram on program main intrance
generate_pdf('不') # More than one is possible. Adjust as you feel better
- Define other properties, such as rectangle size, font size, font style using the settings properties:
# Registrar fontes que serão usadas (mandarim): -------- font_name = 'mandarim' font_path = 'Fonts/NotoSerifCJKsc-Regular.ttf' font_size = 24 pdfmetrics.registerFont(TTFont(font_name, font_path)) # you should not modify this line ;) # ------------------------------------------------------ # Configurações de leyout ------------------------------ file_name = 'model.pdf' rect_size = 60 #dots left_margin = 10 #dots top_margin = rect_size + left_margin #dots # ------------------------------------------------------
- Execute the python file
manoel0810/Chinese-Papper
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|