Skip to main content

Task PDF - Delete Attachment​

The PDF - Delete attachment(s) Task removes attachments that are embedded in PDF files.

The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.

Delete attachment(s): Main settings tab​

Main settings tab of the Delete attachment(s) Task, with the Attachment names grid, the Get attachment names button and the Password for file(s) box

  • Name (Attachment names ... grid): the names of the attachments to delete

    Click Get attachment names to load the attachment names of the files that the File filter matches, and then select names in the Name column. A name can contain wildcards, such as *, and Variables. The Value column is not used by the Task.

  • Password for file(s): the password that opens the source PDF files, if they are protected

warning

When the grid is empty, the Task deletes every attachment in each file.

File filter tab​

The File filter tab selects the PDF files to delete attachments from; see File Filter. If the filter has a Credential, the Task uses it while it reads and writes the files. When the logon with the Credential fails, the Task continues as the account that runs the Server and writes the error to the Server log.

Destination tab​

Destination tab of the Delete attachment(s) Task, with the Save to.. group and the Folder and File mask boxes

  • Same file (Save to.. group): saves the changed file over the source file

  • Same folder but use file mask: saves the changed file in the folder set on the File filter tab, named by File mask

  • Different folder and use file mask: saves the changed file in Folder, named by File mask

  • Folder: the destination folder for Different folder and use file mask; click the folder button to browse

  • File mask: builds the new file name from the source file name, by the renaming standard set in Main - Settings

    The default * keeps the source file name.

warning

Same file replaces the source file. With the default File mask *, Same folder but use file mask also replaces a source file that is in the File filter folder. A file that already has the new name is replaced without a prompt.

When Include sub folders is checked on the File filter, Same folder but use file mask saves every result in the File filter folder, not in the subfolder the source file came from.

Output and errors​

The Task output contains "Success" for each file it saves.