6

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.

3
  • What operating system will you be using? – MaQleod Sep 1 '11 at 20:48
  • Thanks for asking, I updated my question now. I am using Windows 7. – Pennf0lio Sep 1 '11 at 20:54
  • What?! A pdf can not have flash content embedded. – psusi Jan 2 '15 at 3:36
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)

1
  • 2
    SWFExtract "Allows to extract Movieclips, Sounds, Images etc. from SWF files." – Karan Mar 22 '13 at 1:55
2

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.

5
  • What's your affiliation with that product? – Arjan Aug 24 '16 at 17:51
  • No affiliation with them, just took me forever to find it. Tried to install Origami PDF on Linux to do it, but it was complicated by PVM. – Travis Bennett Aug 25 '16 at 19:48
  • Just took me forever to find something, so when I found it I thought I would share it. – Travis Bennett Aug 25 '16 at 19:49
  • Ok, sorry for being a pain; we just get so much astroturfing here. I've meanwhile found your profile picture at LinkedIn too, so I'm quite sure you're NOT working at PDFTron. Thanks for sharing! – Arjan Aug 26 '16 at 6:37
  • This worked great, thank you so much! In my case I found the files by finding streams that had a Subtype "audio/mpeg". I also changed my stream viewer in "Customize..." to VLC so I could verify that I could open these files and that they were those I was looking for. Then I just had to save them with Save Stream Data to File. – George Mar 31 '20 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.