Fix PDF Attachment Flagged as Macro-Enabled File in Outlook
Question details
A completed fillable PDF is being removed by Outlook because it is incorrectly identified as a macro-enabled attachment.

- Product
- Outlook / PDF
- Device & OS
- not provided
- Scenario
- Sending or receiving a filled-out PDF form via Outlook email.
- Observed behavior
- Outlook removes the PDF attachment and displays a warning stating 'A macro-enabled attachment was removed.'
Verify that your PDF does not contain embedded malicious scripts or non-PDF file attachments, and ensure your Outlook application is updated to the latest version.
Use a Standard PDF Reader to Fill and Save the Form
Third-party PDF viewers handle form data differently and may encode the file in a way that triggers Outlook's security filters. Re-saving with a standard PDF reader resolves encoding issues.
PDF files do not naturally contain Microsoft Office VBA macros. However, interactive form fields rely on JavaScript or specific encoding frameworks. If an alternative PDF reader saves this data in a non-standard format, Outlook's strict attachment security will flag it as a potential macro threat.
Download a fresh, blank copy of the original fillable PDF form.
Launch Adobe Acrobat Reader or WPS PDF and open the blank PDF.
Complete the required interactive text boxes, checkboxes, and drop-down menus within the application.
Go to File > Save As, rename the document to prevent overriding, and save it to your local drive.
Create a new email in Outlook and attach the newly saved PDF. The standard encoding should bypass the macro warning.

Compress the PDF into a ZIP Folder
Zipping the PDF file acts as a secure container, which can sometimes bypass automated email attachment filters that misread the raw PDF properties.
Securely Edit and Save PDF Forms with WPS Office
WPS Office includes a powerful, built-in PDF editor that handles interactive forms seamlessly. It saves form data using standard PDF encoding, ensuring your documents remain perfectly compatible and won't trigger false macro warnings in Outlook.
- 1. Install WPS Office: Download and install the free version of WPS Office from the official website.
- 2. Open the Fillable Form: Launch WPS PDF and open your blank fillable PDF document.
- 3. Complete the Document: Fill out the interactive form fields, add digital signatures if needed, and click Save.
- 4. Send via Email: Attach the cleanly saved PDF to your Outlook email without worrying about attachment removal warnings.

Frequently Asked Questions
Can a PDF file actually contain Microsoft Office macros?
No, standard PDF files cannot contain Microsoft Office VBA (Visual Basic for Applications) macros. However, they can contain JavaScript for form validation, which overly strict email clients might misinterpret as malicious code.
Why does Outlook block my PDF but Gmail allows it?
Outlook utilizes the Microsoft Trust Center, which has very aggressive automated security algorithms for identifying potentially dangerous attachments. It may flag minor encoding anomalies in form fields that other services like Gmail safely ignore.
How can I check if my PDF has hidden scripts?
You can open the PDF in advanced PDF editors like Adobe Acrobat Pro and use the 'Sanitize Document' tool, or check the JavaScript settings to see if there are custom scripts embedded alongside the standard form fields.




