Open tools · Real legal work

Open source tools for
serious legal work.

Open Source Lawyer is a practical guide to using free, scriptable tools in legal practice — drafting documents in Markdown and turning PDF files into something you can actually work with.

Pandoc · Tesseract OCR · qpdf · Git · SQLite — all free, all local, all yours.

Two skills that change how you work

Most of the repetitive grind in legal practice comes down to two things: producing documents, and working through the other side’s papers.

Focus 01

Draft in Markdown

Write pleadings, briefs, and letters in plain text — then convert them to court-ready Word documents in a single command.

  • Pleadings and briefs written in Markdown — readable anywhere, on any machine
  • One-command conversion to .docx with Pandoc and your own templates
  • Signature blocks, tables of authorities, and multilevel lists that just work
  • Every draft under version control — diff what changed, restore what you need
Focus 02

Work with PDFs

Stop treating PDFs as pictures. Extract, search, and manipulate them programmatically — across an entire production, in one pass.

  • OCR scanned records with Tesseract so old documents become searchable
  • Full-text search across whole productions with a local SQLite index
  • Split, merge, repair, and Bates-number files with qpdf
  • Produce clean, searchable PDF copies for clients and the court

Free tools, serious results

Everything used in the workflows here is open source, free, and runs on your own machine.

Pandoc

Converts Markdown to Word, PDF, and more — the backbone of drafting.

Tesseract

The OCR engine that turns scanned pages into searchable text.

qpdf

Split, merge, repair, and renumber PDF files from the command line.

Git

Version control for every draft — a full history of how a document evolved.

SQLite

A local, full-text-searchable index of your document production.

Python

The glue that automates the repetitive work between the other tools.

No lock-in. No fees. Full control.

Your work is yours

Documents live in plain text and open formats. No subscriptions, no proprietary files, and no vendor holding your own work hostage.

It’s free

Every tool in the toolbox costs nothing. The only expense is a little time to learn — time you get back many times over.

It’s scriptable

If a task takes more than a few clicks, it can be automated. One command can process a thousand pages exactly the way you would.

From notes to filing

A simple, repeatable pipeline that keeps documents clean and consistent every time.

  1. Draft

    Write in Markdown. Plain text — fast to edit, easy to review, and under version control.

  2. Convert

    Pandoc turns the draft into a formatted Word document using your own templates.

  3. Search

    OCR and index the other side’s production. Find every page that matters in seconds.

  4. File

    Clean, consistent, court-ready documents — every single time.

Guides are on the way

Step-by-step walkthroughs for lawyers — templates, scripts, and checklists. This site grows as each guide ships.

Guides arriving soon