Extract a buttonImportIcon Image from a PDF in Adobe Acrobat
Question details
Find where an image imported into a PDF button is stored and extract it without taking a screenshot.

- Product
- Adobe Acrobat PDF forms
- Device & OS
- not provided
- Scenario
- A PDF form button uses event.target.buttonImportIcon() to import an image, and the user wants to save that image separately.
- Observed behavior
- The imported image is part of the PDF button's appearance or related PDF content, rather than a normally accessible standalone file.
Confirm that the imported image appears in the saved PDF and that you can open the file in Acrobat Pro or a PDF extraction tool. Flattening removes interactive form behavior, so perform it on a copy.
Flatten the PDF and export its images in Acrobat Pro
Use Acrobat's image export tools to extract images after converting the button appearance into page content.
The imported icon is typically stored in the button's appearance stream, possibly as an image or a form XObject. Flattening can make it available to image export, but extraction is not guaranteed, and the original image file may not be preserved.
Open the PDF in Acrobat Pro and use File > Save As to create a working copy.
Open All tools > Use print production > Preflight. Search the fixups for a flatten annotations and form fields option, select it, and choose Analyze and Fix. Save the flattened result when prompted.
Open All tools > Export a PDF, choose an image format such as PNG or JPEG, and open the export settings. Select Export all images, then export to a folder.
Open the exported files in the destination folder and identify the image that matches the button icon.

Extract embedded image objects with MuPDF
Try this command-line approach on the original PDF when Acrobat's export does not find the button icon.
Work with PDFs and Office files in WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface for working with PDFs and Office documents. It supports common Microsoft Office formats for easier migration, but it does not fix Acrobat's buttonImportIcon behavior or guarantee extraction of PDF button icons.

Frequently Asked Questions
Where does buttonImportIcon store the imported image?
The image becomes part of the PDF button's appearance or related PDF content. It is not normally exposed as a separate file inside the PDF.
Will flattening preserve the interactive button?
No. Flattening converts the form's appearance into page content and removes interactive form behavior. Use File > Save As first and flatten the copy.
Why did Acrobat export pages instead of individual images?
In Acrobat's Export a PDF image settings, select Export all images before exporting. Without that option, Acrobat may export each page as an image instead.
Can I recover the original image file exactly?
Not necessarily. The PDF may contain a converted, compressed, or otherwise modified representation of the icon. If an exact original is required, ask for the source image.




