Fast legacy .doc redline extraction via a Rust NIF. Built to closely match
LibreOffice’s track-changes output and achieve near-parity on real-world
documents.
Add to mix.exs:
def deps do
[
{:doc_redlines, "~> 0.6"}
]
end{:ok, result} = DocRedlines.extract_redlines("/absolute/path/to/file.doc")
redlines = result.redlinesEach redline entry includes:
type(:insertionor:deletion)textauthortimestampstart_cp,end_cp- optional
paragraph_index,char_offset,context
- Input files must be legacy Word
.docformat. - Precompiled NIFs are published in GitHub Releases; set
DOC_REDLINES_BUILD=1to force a local build. - This library does not include or bundle any document samples.
To force a local build of the NIF:
DOC_REDLINES_BUILD=1 mix testTo compile all Rust targets locally:
RUSTLER_PRECOMPILED_FORCE_BUILD_ALL=1 mix compileMIT