how do i export PDF file attachments via python
Question: How do I extract a PDF file attachment via python? (File attached to the PDF)

I seem to not be able to find anything about this topic.


Answer: This is not a native python solution, but try to use
[pdfdetach](http://www.dsm.fordham.edu/cgi-bin/man-
cgi.pl?topic=pdfdetach&ampsect=1)(1) with
[subprocess](https://docs.python.org/2/library/subprocess.html)

    
    
    from subprocess import call
    call(["pdfdetach", "-saveall", "file.pdf"])
    

(1) there is also Windows port by Cygwin

