dsh-pdf-edit: AI Editing PDF Text While Preserving Original Layout
dsh-pdf-edit is a DSH community plugin whose core functionality is to use AI to modify text in PDFs while strictly preserving layout styles such as font, font size, color, and position. This plugin is suitable for scenarios like terminology unification, typo correction, and batch replacement in contracts and reports. It supports automatic recognition of Chinese fonts and automatically adjusts font size or truncates text when it becomes longer to prevent overflow. Additionally, it provides an LLM-free feature to insert Markdown or notes as new pages at specified positions, supports reflow for various layouts such as academic papers and mobile devices, and exposes programming interfaces like `StyleLockedEditor` for deep customization. Installation can be done via `dsh plugin add` or npm, and it supports the dsh-std standard ecosystem as well as direct connection via cordis. Typical usage includes opening a document preview for editing.
Read More