How do I extract Flash content from a PDF file?

I have a PDF file that has a flash file embedded.

How can I can extract that SWF from inside the PDF file?

Update:

I am using Windows 7.


Solution 1:

Found a product that can do it: PDFTron's PDF CosEdit can extract the resources. I opened the a PDF with embedded Rich Media videos in CosEdit, then scrolled to the bottom (where the files with the largest Offset values were kept). For me, these were it. I extracted the resources, and they opened as MP4s. You might want to try MP4, SWF, etc. or inspect the resource's headers to help identify its type.

For a programmatic solution, they have other software as well, and they published this article which appears useful.

Solution 2:

If you are using OS X, you can try FileJuicer

If you are using Windows or Linux you can try SWFTools (specifically the SWFExtract app)