Stirling PDF icon

Stirling PDF

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

Actions260

Misc → Add Comments

AI-generated

Summary

Add comments to a PDF file by specifying comment details such as position, size, text, author, and subject for each comment.

Inputs

  • Input Binary Field Name (File Input) — Name of the binary property containing the PDF file data to add comments to; defaults to 'data' if not specified.
  • File Id — File ID of a server-side PDF file to add comments to, used alternatively to uploading file data.
  • Comments (required) — A JSON array specifying comments to add; each comment requires pageIndex, x, y, width, height, text, and optionally author and subject. Coordinates use PDF user space with origin at the page's bottom-left.

Output shape

a modified PDF file with the specified comments embedded, returned as binary data.

If a binary file input is provided, the comments are added to that file; alternatively, if a File Id is provided, comments are added to the server-side file identified by it. The operation returns the annotated PDF file as output binary data.

Links

Discussion