PDF Hacks: 100 Industrial-Strength Tips & Tools
| < Day Day Up > |
Hack 56 Add PDF Attachment Actions to Windows Context Menus
Pack or unpack PDF attachments from the Windows File Explorer with a quick right-click . It's best to perform simple tasks in a simple manner, especially when you must perform them often. Wire pdftk [Hack #79] into Windows Explorer so that you can pack or unpack attachments using PDF's right-click context menu. 5.7.1 Create the Attach File Context Menu Item
In Windows XP and Windows 2000:
5.7.2 Create the Unpack Attachments Context Menu Item
Follow the previous procedure, except name the action Unpack Attachments and replace the cmd.exe arguments in step 4 with: /C C:\windows\system32\pdftk.exe "%1" unpack_files
5.7.3 Using Attach File or Unpack Attachments
Right-click your PDF of interest and select Attach File or Unpack Attachments from the context menu. A command prompt will open and ask for additional information. Upon success, the command prompt will close. If pdftk has trouble executing your request, the command prompt will remain open with a message. Press Enter to close this message.
If you invoke one of these commands on a selection of multiple PDFs, you will get one command prompt for each PDF. |
| < Day Day Up > |