How to Open Excel Macro-Enabled (XLSM) Attachments in PDF
Question details
The user is attempting to open an attached Excel macro-enabled (XLSM) file directly from within a PDF, but Adobe Acrobat prevents it due to security restrictions.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Clicking an attachment icon in a PDF to launch an embedded XLSM workbook.
- Observed behavior
- Acrobat displays a Trust Manager message stating that opening the attachment type is not permitted.
Before attempting to extract or open any macro-enabled file, ensure you absolutely trust the source of the PDF, as XLSM files can contain executable scripts that pose significant security risks.
Extract the XLSM Attachment Using a Web Browser
Use a compatible web browser like Firefox to bypass Acrobat's internal Trust Manager blocks, allowing you to safely save the file locally before opening it.
Adobe Acrobat's security settings intentionally block macro-enabled Office attachments embedded in PDFs to prevent malicious executable code from running automatically. Instead of weakening your system's registry or security settings, you can extract the file safely using an alternative PDF viewer.
Right-click the PDF file containing the XLSM attachment, select 'Open with', and choose Firefox (or another compatible web browser with a built-in PDF viewer).
Navigate to the browser's PDF viewer sidebar and click on the 'Attachments' or 'Paperclip' icon to view embedded files.
Locate the XLSM file in the list, click on it or right-click to select 'Save', and download it to a secure local folder on your computer.
Launch Microsoft Excel or WPS Spreadsheet, navigate to 'File' > 'Open', and select the downloaded XLSM file to view its contents safely.

Extract PDF Attachments and Edit XLSM Files Safely with WPS Office
WPS Office provides an all-in-one suite featuring a robust PDF reader and a powerful spreadsheet application. You can easily view PDF attachments and seamlessly open or edit macro-enabled Excel files without needing multiple software licenses.
- 1. Open your PDF: Launch WPS PDF and open the document containing the embedded file.
- 2. Locate the attachment: Click the 'Attachment' icon (shaped like a paperclip) on the left-hand navigation pane.
- 3. Extract the file: Right-click the XLSM attachment and choose 'Save As' to download it to your local storage.
- 4. Edit the spreadsheet: Open WPS Spreadsheet, locate the saved XLSM file, and open it to safely view or edit the macro-enabled workbook.

Frequently Asked Questions
Why does Adobe Acrobat block XLSM attachments by default?
Acrobat's Trust Manager maintains a blacklist of file extensions (like XLSM, EXE, and ZIP) that are capable of carrying executable code or macros. This security measure prevents malicious scripts from running automatically when a user opens a PDF.
Can I modify Acrobat's Trust Manager to allow XLSM files?
While it is technically possible to modify the Windows Registry to bypass Acrobat's blacklisted file types, Adobe highly discourages this practice outside of strictly controlled IT environments, as it significantly lowers your system's defenses against malware.
Are XLSM files safe to open after extracting them from a PDF?
XLSM files are safe to open in protected view, but macros should only be enabled if you completely trust the sender. Macros automate tasks but can also be exploited to deliver malware. Always verify the source and scan the file before enabling active content.




