|
7 | 7 | addition, an installation of Microsoft Word is required. |
8 | 8 |
|
9 | 9 | To leverage the benefit of Github Action, the testing process is divided into three parts: |
10 | | - 1. Convert sample pdf to docx with this module. |
| 10 | + 1. Convert sample pdf to docx with `pdf2docx`. |
11 | 11 | 2. Convert generated docx to pdf for comparing. |
12 | | - 3. Convert page to image and compare similarity with python-opencv. |
| 12 | + 3. Convert page to image and compare similarity with `python-opencv`. |
13 | 13 |
|
14 | 14 | Test scripts on Part One and Three are applied with two test class respectively in this module, |
15 | 15 | so they could be run seperately with pytest command, e.g. |
16 | 16 |
|
17 | | -- pytest -v test.py::TestConversion for Part One |
18 | | -- pytest -v test.py::TestQuality for Part Three |
| 17 | +- pytest -vs --no-header test.py::TestConversion for Part One |
| 18 | +- pytest -vs --no-header test.py::TestQuality for Part Three |
19 | 19 |
|
20 | 20 | Links on MS Word to PDF conversion: |
21 | 21 | - https://github.com/cognidox/OfficeToPDF/releases |
@@ -302,7 +302,7 @@ class TestQuality: |
302 | 302 | 'demo-table-nested.pdf': 0.84, |
303 | 303 | 'demo-table-shading-highlight.pdf': 0.55, |
304 | 304 | 'demo-table-shading.pdf': 0.80, |
305 | | - 'demo-table-stream.pdf': 0.60, |
| 305 | + 'demo-table-stream.pdf': 0.55, |
306 | 306 | 'demo-table.pdf': 0.90, |
307 | 307 | 'demo-text-alignment.pdf': 0.90, |
308 | 308 | 'demo-text-scaling.pdf': 0.80, |
|
0 commit comments