How to Fix "Document Is Malformed" in CM/ECF
You've prepared your filing, you're ready to submit, you upload the PDF to CM/ECF — and it rejects it. The error message is cryptic and the deadline is approaching. This guide covers every common CM/ECF upload error and how to fix each one.
The universal fix that works 90% of the time: Open your PDF, go to File → Print, select "Microsoft Print to PDF" (Windows) or "Save as PDF" (Mac), and save it as a new file. This strips out JavaScript, form fields, encryption, and embedded objects that cause most rejection errors. Upload the new file.
Error: "Document is malformed or contains code"
Cause: Your PDF contains JavaScript, embedded multimedia, executable code, or active content that CM/ECF's security scanner flags. This is the most common rejection error and became significantly more aggressive after the NextGen CM/ECF v1.6 update in December 2020. PDFs generated by certain software — including DocuSign, some versions of Adobe Acrobat, and web-based PDF tools — frequently trigger this error even when the embedded code is harmless.
Print the PDF to a new file. On Windows: open the PDF → File → Print → select "Microsoft Print to PDF" → Save. On Mac: open the PDF → File → Print → PDF dropdown → "Save as PDF." This creates a clean, flat copy with all active content stripped out. If that doesn't work, open the PDF in Chrome (drag it into a browser tab), then print from Chrome to PDF using the same method. Chrome's built-in PDF renderer is particularly good at stripping embedded scripts.
Error: "File exceeds the maximum size"
Cause: Your PDF is larger than your court's per-file limit. Limits vary by district — from 30 MB to 200 MB. The most common limit is 35 MB. See our complete table of file size limits by court.
Split the PDF into multiple smaller files and upload them as separate attachments to the same docket entry. Label them clearly (e.g., "Exhibit A - Part 1 of 2"). If the document is a scan, re-scan at 300 DPI in black and white rather than color. If it's image-heavy, use a PDF compression tool to reduce file size. For detailed strategies, see our guide on reducing PDF file size for court.
Error: "Document has security features"
Cause: The PDF has password protection, access restrictions, or digital rights management (DRM) applied. This happens when the PDF creator restricted copying, printing, or editing. Even a "read-only" restriction triggers this error because CM/ECF needs to add a header stamp to the document after upload.
If you have the password, open the PDF in Acrobat or your PDF editor, go to Document Properties → Security, and set security method to "No Security." Save and re-upload. If you don't have the password (for example, you received the document from someone else), the print-to-PDF method works: open the PDF → File → Print → save as a new PDF. The new copy won't have security restrictions. Note: if the PDF prevents printing entirely, you'll need to contact the document's creator for an unrestricted copy.
Error: "File does not have a .pdf extension"
Cause: Either the filename doesn't end in .pdf, or the file is not actually a PDF despite having the extension. This happens when files are renamed manually (e.g., a .doc file renamed to .pdf) or when the file was corrupted during transfer.
First, verify the file opens correctly in a PDF viewer (Acrobat, Chrome, Preview). If it doesn't open, the file is corrupted or isn't a real PDF — you'll need to recreate it. If it opens fine but CM/ECF rejects it, check that the filename ends in exactly .pdf (not .PDF, .pdf.pdf, or .pdf with a trailing space). Rename the file if needed. If the file opens and the extension is correct, print to a new PDF to create a fresh, clean file.
Error: "Out of Memory" or Upload Timeout
Cause: The file is very large and the upload didn't complete before CM/ECF's timeout threshold. This is different from the "exceeds maximum size" error — your file might be within the limit but the connection was too slow. The District of Nebraska tested this and found that uploads over 150 MB frequently timed out on wireless connections. This also happens with files scanned at unnecessarily high resolution (600+ DPI in color).
Reduce the file size (see file size reduction guide), split into smaller files, or try uploading from a faster internet connection. If you're on Wi-Fi, try a wired ethernet connection if available. Some filers report success uploading large files during off-peak hours (early morning) when CM/ECF servers are less loaded, though this isn't officially documented.
Error: "Unflattened form fields"
Cause: Your PDF was created from a fillable form (like a court-provided form you filled in digitally) and the interactive form fields are still active. CM/ECF requires "flattened" PDFs where form fields are converted to static content. This is increasingly common as more courts provide fillable PDF forms for complaints, motions, and other filings.
Print the filled form to a new PDF. This is the same universal fix: open the form → File → Print → "Microsoft Print to PDF" or "Save as PDF." The resulting file will have all your entered information baked into the document as static content, with no interactive fields. Do not use "Save As" from within the form — that preserves the form fields. You must print to PDF.
Error: Black Pages or Missing Content
Cause: This usually happens with PDFs created by DocuSign, Adobe Sign, or other digital signature platforms. These tools sometimes use transparency layers or advanced PDF features that CM/ECF's viewer can't render. The document is technically uploaded, but other parties and the court see black or blank pages when they try to view it through PACER.
Print to PDF to flatten all layers. If that doesn't resolve the black pages, open the PDF in Chrome, then print from Chrome to a new PDF. Chrome rasterizes complex visual elements that cause transparency issues. After creating the new PDF, upload it to CM/ECF and immediately view it through PACER (the free look within 15 days) to confirm it displays correctly. If you discover the problem after filing, contact the clerk's office and ask to re-file a corrected version.
Error: "PDF header not found"
Cause: The file is corrupted or was not properly created as a PDF. This can happen when a document is converted using unreliable online tools, when the file download was interrupted, or when a non-PDF file was given a .pdf extension.
Recreate the PDF from the original source. If it was converted from Word, save it again as PDF from Word. If it was a scan, re-scan the document. If you only have the damaged PDF and no original source, try opening it in a PDF editor that can repair files — Acrobat's "Save As" sometimes fixes minor corruption. For images that need to become a PDF, use ecfpdf.org to create a fresh, clean file from the source images.
Avoid these errors entirely. ECF PDF generates clean, flat, court-compliant PDFs from your images — no JavaScript, no form fields, no security restrictions, no embedded code. Just a clean PDF that CM/ECF accepts the first time.
Open ECF PDF →The Nuclear Option: CM/ECF's Built-In PDF Checker
CM/ECF has a built-in utility that scans your PDF for potential problems before you attach it to a filing. In most courts, you can find it at Utilities → Check PDF Document inside the CM/ECF interface. Upload your file there first to see if it passes. If it flags issues, apply the fixes above and check again. This is especially useful when you're filing for the first time in a new court and aren't sure what their system will accept.
When to Call the Clerk
If you've tried the print-to-PDF fix, verified the file extension, checked the file size, and confirmed the PDF opens correctly in a viewer — and CM/ECF still rejects it — call the clerk's office. They can often tell you exactly what the system is flagging. They may also be able to accept the filing by alternative means (email, physical delivery, or direct upload by a deputy clerk) if the issue is on CM/ECF's end rather than your document's.
If you're racing a deadline and CM/ECF won't cooperate, document your attempts (screenshots of the error, timestamps), call the clerk immediately, and if needed, file a motion for leave to file out of time with evidence of the technical failure. Courts generally grant deadline extensions when CM/ECF malfunctions are documented.
Related guides: CM/ECF PDF requirements · File size limits by court · Make PDFs text-searchable · Reduce PDF file size