PDF file format has a function that you can attach a file to a PDF file. Of course, you can also detach an attachment from a PDF file with PDF File Detacher Command Line that can be used to remove or detach attachments from PDF.
PDF File Detacher Command Line is a cross-platform program which is supported in Windows, Mac OS X and Linux. It is a command based program, and you can run it in a MS-DOS command prompt in Windows, or in a terminal in Mac OS X and Linux. The usages are all similar in the three systems.
This article is to describe how to detach an attachment from a PDF file in Windows. If you want to know how to attach a file to PDF, read the article of PDF Attachment Packer.
Download the Windows version program and unpack the downloaded package to any place of your Windows system. The executable main program is in sub directory bin. You can call the program in a command prompt window in MS-DOS mode.
Here is an example command line for detaching attachments from a PDF.
pdftoolbox atted.pdf" -detachfile -outfile atts
This command detaches all the attachments of the PDF file atted.pdf and saves the detached files to directory atts. The option -detachfile tells the program to perform detaching operation.
If you only input the command pdftoolbox without any option or argument, you will see a brief manual showing that PDF File Detacher Command Line has more functions. It can also merge, split, encrypt PDF and even fill PDF forms with command line. In sub directory test, there are many practical examples and demo files from which you can learn how to use the other functions of the program.
You get the Mac OS and Linux version PDF File Detacher Command Line from the webpage.
Click to see the
Features of PDF File Detacher Command Line.