- 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
-
Notifications
You must be signed in to change notification settings - Fork 0
Generate PDF pages to practice writing Mandarin ideograms!
License
manoel0810/Chinese-Papper
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Generate PDF pages to practice writing Mandarin ideograms!
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published