# `dump_files` List file attachments ## Usage > pdftl `` `dump_files` `[output` `]` ## Details The `dump_files` operation lists files attached to the input PDF file, if there are any. The output format is ``` filesize filename ``` where filesize is in bytes. ## Examples > List all files attached to a.pdf ``` pdftl a.pdf dump_files ``` **Tags**: attachments, info *Source: pdftl.operations.attachments* *Read online: [https://pdftl.readthedocs.io/en/stable/operations/dump_files.html](https://pdftl.readthedocs.io/en/stable/operations/dump_files.html)* *Type: Operation*