Remove the Purple Form Message from a Signed PDF in Adobe Reader
Question details
Remove the purple form-completion message from a PDF filled and flattened with pdf-lib, then digitally signed.

- Product
- Adobe Reader and pdf-lib
- Device & OS
- not provided
- Scenario
- A PDF form is filled programmatically, flattened, and digitally signed before being opened in Adobe Reader.
- Observed behavior
- Adobe Reader displays a purple message asking for the form to be completed and offers a Highlight Fields button.
Locate the filled PDF before it was signed and confirm that the visible form values are correct. Changes to the signed PDF may invalidate its signature, so make structural changes before signing it again.
Flatten the Form Fields with pdf-lib Before Signing
Use this approach when you control the PDF generation and signing process.
The purple message can indicate that interactive fields or form metadata remain in the PDF. Flattening should occur after filling the fields and before applying the digital signature.
pdf-lib does not support XFA forms. If the source uses XFA, use a compatible PDF tool or obtain an AcroForm version instead.
In your pdf-lib script, load the unsigned PDF with PDFDocument.load, call pdfDoc.getForm(), and inspect form.getFields() to identify remaining fields. Check that each required field contains the intended value.
After filling the fields, call form.flatten(), then save the result with await pdfDoc.save(). Keep the resulting bytes as the input to your signing process.
Open the saved, unsigned PDF in Adobe Reader. Check the displayed values and look for the purple message or Highlight Fields button. You can also reload the file with pdf-lib and inspect form.getFields().
Run your digital-signing process on the verified flattened PDF. Open the signed result in Adobe Reader and check its signature status and form banner.

Print an Unsigned Copy to PDF Before Signing
Use this alternative when a PDF printer is available and preserving interactive features is not required.
Create a Noninteractive PDF Copy with WPS Office
Open the filled, unsigned PDF in WPS Office and print it to a PDF printer if one is available. Check the new copy in Adobe Reader before signing it with your certificate-signing tool.
- 1. Open the unsigned PDF: In WPS Office, open the filled PDF that has not yet been digitally signed.
- 2. Print to PDF: Choose File > Print, select an available PDF printer, and save the output as a new PDF.
- 3. Inspect the output: Open the new PDF in Adobe Reader and check every page for missing values and the purple form message.
- 4. Apply a new signature: Use your certificate-signing tool to digitally sign the verified PDF, then check the signature status in Adobe Reader.

Frequently Asked Questions
Why does Adobe Reader still show Highlight Fields after flattening?
Interactive fields, annotations, or form metadata may remain. Inspect the unsigned output with form.getFields() in pdf-lib and check the PDF for leftover form structures if the list is empty.
Can I remove the message without affecting the existing digital signature?
Editing the signed PDF can invalidate its signature. Instead, flatten or otherwise correct the unsigned source, then sign the resulting PDF again.
Does pdf-lib support flattening XFA forms?
pdf-lib does not support XFA forms. Use a compatible PDF tool or obtain an AcroForm version of the source before filling and flattening it.
Will printing to PDF preserve all form values?
Not always. Some fields may not print, and printing can remove links, tags, and interactive features. Open the printed PDF and inspect every page before signing it.




