bauerelizabeth07139/dsh-plugin-dxpdf ↗★ 0
dsh-plugin-dxpdf
DeepSeek Harness plugin exposing dxpdf_convert: convert a Microsoft Word DOCX file to PDF with the dxpdf Rust/Skia engine — no Microsoft Office, no LibreOffice, no network. It repairs the schema-invalid constructs WPS Office writes, lowers the equations the engine would silently drop, and restores Word's odd/even page parity. 适合需要在本地快速、高质量转换DOCX文件的用户。
Install
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:bauerelizabeth07139/dsh-plugin-dxpdfREADME
Read the full README ↗Configuration
Every field is optional; the row in cordis.patch.yml needs no config block.
To override a default, add one:
- insert:
- id: dsh-plugin-dxpdf
name: 'dsh-plugin-dxpdf'
config:
timeoutMs: 300000
pythonPath: 'C:\Python312\python.exe'
cliPath: 'C:\Python312\Scripts\dxpdf_cli.py'
duplicatePolicy: first
announcePolicy: true
| Field | Default | Meaning |
|---|---|---|
timeoutMs | 120000 | Wall-clock budget for one conversion. |
paginateTimeoutMs | 2700000 | Budget for the pagination pass, which runs the engine once per parity section. Must exceed roughly 20 s × the section count. |
maxPaginateSections | 48 | Refuse the pagination pass beyond this many parity breaks, reporting paginationSkipped instead. |
matchWordPagination | true | Converge odd/even section breaks onto Word's pagination. Documents with no such break are detected by a byte scan and cost nothing. |
duplicatePolicy | first | Which occurrence of a repeated property the repair keeps: first or last. |
announcePolicy | true | Whether to register the standing DOCX-to-PDF system-prompt section. |
pythonPath | unset | Explicit interpreter, tried first. |
cliPath | unset | Explicit CLI script, tried first (paired with pythonPath). |
executable | unset | Explicit dxpdf shim, tried in the cmd.exe row. |
The two booleans are disabled only by false; duplicatePolicy is first
unless it is exactly last; a non-positive or non-numeric timeout or cap falls
back to its default. announcePolicy: false suppresses the standing
DOCX→PDF system-prompt section — dxpdf:docx-to-pdf-policy, order 1250 —
that makes this plugin the deployment's converter.