Stirling PDF icon

Stirling PDF

Merged API: Stirling PDF - Processing API + Stirling PDF - Management API + Stirling PDF - System API

Actions260

Misc → Delete Attachment

AI-generated

Summary

Delete an attachment from a PDF file by specifying its attachment name along with either a file input binary field or a server-side file ID.

Inputs

  • Attachment Name (required) — The name of the attachment to delete.
  • Input Binary Field Name (File Input) — Name of the binary property which contains the file data of the PDF file to remove the attachment from.
  • File Id — File ID for server-side files; can be used instead of providing a file input if the job was previously done on a file asynchronously.

Output shape

a modified PDF file data output with the specified attachment removed

The operation returns the resulting PDF file data with the specified attachment deleted. Either a binary file input or a fileId must be provided to identify the source PDF file. Optional request options control batching, SSL, proxy, and timeout settings.

Links

Discussion