Court filing requirements: PACER and CM/ECF
Bates numbering
Redaction for privilege and confidentiality
pdftotext (the text should not be extractable); (3) having a second reviewer confirm the applied redactions are complete.Legal professionals rely on PDF for court filings, e-discovery production, contract execution, and document management. This guide covers court-specific PDF filing requirements (PACER, CM/ECF), Bates numbering, redaction for privilege and confidentiality, e-discovery formats (TIFF vs native vs PDF), and PDF/A for long-term case file archiving.
pdftotext (the text should not be extractable); (3) having a second reviewer confirm the applied redactions are complete.Federal courts using CM/ECF (Case Management/Electronic Case Files) generally require: PDF version 1.4 or later, searchable text (not scanned image-only), no password protection or encryption, fonts embedded or using standard fonts, file size under 10 MB per document (varies by court). Many courts also require bookmarks in longer documents. The specific requirements vary by district court — always check the local rules of the court you are filing in. The PACER website (pacer.gov) publishes technical specifications for PDF filing. Some courts have moved to PDF/A requirements for long-term archiving. JavaScript, multimedia, and non-standard features should be avoided. State court e-filing systems (Odyssey, Tyler Technologies) have their own requirements, often similar to federal CM/ECF.
With Python and PyMuPDF: import fitz; doc = fitz.open("input.pdf"); for i, page in enumerate(doc): bates = f"PLAINTIFF{i+1:05d}"; page.insert_text((page.rect.width - 100, page.rect.height - 20), bates, fontsize=9, color=(0,0,0)); doc.save("bates_numbered.pdf"). This inserts a text Bates number at the bottom-right of each page. For a multi-file production set with continuous numbering, add a start_bates parameter and accumulate across files. For production-quality Bates stamping (consistent positioning, font, formatting), consider Litera or similar legal document processing tools. Note that Bates numbers added to PDFs this way are content stream text — they are permanent and part of the page content, which is the correct approach for legal productions.
Redaction removes specific visible content (text, images, areas) from the PDF page — replacing it with a solid mark or blank area. Sanitisation removes hidden data from the PDF that the redaction process itself may not address: metadata (author, revision history), annotations (which may contain privileged text in comments), embedded files, hidden layers, JavaScript, form field values, cached versions of the document, and digital signature information. Acrobat Pro's "Sanitize Document" function (available in the Redact toolbar after applying redactions) performs sanitisation. For legally compliant privilege redaction, both redaction (content removal) and sanitisation (hidden data removal) are necessary — redaction alone is not sufficient because metadata and annotations may reveal privileged information that does not appear visually on the redacted page.
Everything in this article can be done directly in the free PDFTheGuide editor — no account required.