You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -56,16 +56,16 @@ See [Dockerfile](Dockerfile) for the full details of installed packages.
56
56
57
57
## Legal document generator module
58
58
59
-
This repository includes a simple example module located in `legal_module/` that demonstrates how to generate Traditional Chinese legal filings using the `python-docx` package. The module exposes a `create_filing` function that accepts case information and outputs a formatted Word document.
59
+
This repository includes a simple example module located in `legal_module/` that demonstrates how to generate Traditional Chinese legal filings using the `python-docx` package. The module exposes a `create_filing` function that accepts case information and outputs a formatted Word document. When `docx2pdf` is available the file can also be exported to PDF. Generated documents use **2.5 cm margins**, **1.5 line spacing**, and include an optional **附件** section for supporting materials.
60
60
61
61
Example usage:
62
62
63
63
```bash
64
64
python3 -m legal_module.example
65
65
```
66
66
67
-
This requires the optional dependency**python-docx**. Install it with:
67
+
This requires the optional dependencies**python-docx** and **docx2pdf** for PDF export. Install them with:
0 commit comments