Stirling PDF icon

Stirling PDF

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

Actions260

Security → Sanitize PDF

AI-generated

Summary

Sanitize PDF files by removing optional elements such as JavaScript actions, embedded files, metadata, links, and fonts to enhance security.

Inputs

  • Input Binary Field Name (File Input) — Name of the binary property containing the PDF file data to sanitize; defaults to 'data' if not specified.
  • File Id — Identifier for a server-side stored PDF file; used alternatively to direct file input for processing.
  • Remove Java Script (required) — Boolean flag to remove JavaScript actions from the PDF.
  • Remove Embedded Files (required) — Boolean flag to remove embedded files from the PDF.
  • Remove X M P Metadata (required) — Boolean flag to remove XMP metadata from the PDF.
  • Remove Metadata (required) — Boolean flag to remove document information metadata from the PDF.
  • Remove Links (required) — Boolean flag to remove hyperlinks from the PDF.
  • Remove Fonts (required) — Boolean flag to remove fonts from the PDF.

Output shape

a single binary file containing the sanitized PDF

The sanitized PDF is returned in binary form. Either a binary input property or a File Id must be provided to specify which PDF is sanitized. Optional fields control what content is removed for sanitization. No explicit pagination or error envelope information.

Links

Discussion