Comprehensive Guide for Developers: UI & SDK Integration, Configuration, and API Reference
Adds an attachment to the document
The document ID
Attachment data to add
Response with the added attachment information
Adds a new bookmark to the document
The document ID
Bookmark configuration data
Response with the added bookmark information
Adds multiple custom system fonts
The document ID
Array of custom system font configurations
Response indicating the operation result
Automatically orders annotations based on predefined rules
The document ID
Configuration for automatic annotation ordering
Response with the auto-ordering result
Begins a transaction for grouping multiple operations
Transaction configuration data
Response with the transaction initialization result
Gets all bookmarks in the document
The ID of the document to get bookmarks from
Response with the bookmarks data
Cancels a transaction, discarding all changes made during it
The document ID
Response with the cancellation result
Checks if the order of an annotation can be changed
The document ID
Data specifying which annotation to check
Response indicating if order can be changed
Checks if the order of an element can be changed
The document ID
Data specifying which element to check
Response indicating if order can be changed
Checks if the Z-order of text blocks can be changed
The document ID
Data specifying which text blocks to check
Response indicating if order can be changed
Changes the value of a form field in an AcroForm
The document ID
Data containing the field value change
Response with the form field change result
Modifies properties of an existing annotation
The document ID
Data containing the annotation properties to change
Response with the result of the property change
Changes the Z-order of an annotation
The document ID
Data specifying the annotation and order change
Response with the order change result
Changes the document history by undoing or redoing actions
The document ID
Data specifying the document ID and history offset
Response with the result of the change document history operation
Modifies the transformation matrix of an element
The document ID
Data containing the element and new matrix
Response with the matrix change result
Changes the Z-order of an element
The document ID
Data specifying the element and order change
Response with the order change result
Changes font attributes for text in the document
The document ID
Data specifying the page index and font attributes to change
Response with the response containing the updated text blocks
Changes the visibility state of document layers
The document ID
Layer state change data
Response with the updated layer groups
Changes the list style for text in the document
Document identifier
Data specifying the page index, text block index, and list style to change
Response with the response containing the updated text blocks
Changes the margin settings for a document or page
The document ID
Margin configuration data
Response with the margin change result
Changes the page boxes in a document
The document ID
Data specifying the new page boxes
Response with the page box change result
Changes paragraph attributes for text in the document
The document ID
Data specifying the page index and paragraph attributes to change
Response with the response containing the updated text blocks
Changes document properties (metadata)
The document ID
Updated properties data
Response with the property change result
Changes the Z-order of text blocks
The document ID
Data specifying which text blocks to move and how
Response with the Z-order change result
Removes all signatures from the specified document
Object containing the document ID to clear signatures from
Response with information about the cleared signatures
Clears the document history (undo/redo stack)
The document ID
Response with "OK" status
Closes open PDF document
The document ID
Response indicating the result of the close operation
Copies a content element for later pasting
The document ID
Data specifying which content element to copy
Response with the copy operation result
Copies a text block for later pasting
The document ID
Data specifying which text block to copy
Response with the copy operation result
Creates a new annotation in the document
The document ID
Configuration data for the annotation to create
Response with the created annotation information
Creates a clip (masked area) in the document
The document ID
Clip configuration data
Response with the created clip information
Creates a fill and sign field in the document
The document ID
Fill and sign field configuration
Response with the created field information
Creates a measurement calibration for the document
The document ID
Response with the calibration creation result
Creates a new text block in the PDF document
Response with the created text block information
Crops an image in the document
The document ID
Crop configuration data
Response with the crop operation result
Deletes annotations from the document
The document ID
Data specifying which annotations to delete
Response with the result of the delete operation
Deletes an attachment from the document
The document ID
Data specifying which attachment to delete
Response with the deletion result
Removes Bates numbering from the document
The document ID
Response with the removal result
Deletes a bookmark from the document
The document ID
Data specifying which bookmark to delete
Response with the deletion result
Deletes all bookmarks from the document
The document ID
Response with the deletion result
Deletes a clip from the document
The document ID
Data specifying which clip to delete
Response with the deletion result
Deletes content elements from the document
The document ID
Data specifying which content elements to delete
Response with the deletion operation result
Deletes a fill and sign field
The document ID
Data specifying which field to delete
Response with the deletion result
Removes a header from the document
The document ID
Data specifying which header to delete
Response with the header deletion result
Removes page numbers from the document
The document ID
Data specifying which page numbers to delete
Response with the page number deletion result
Deletes a range of characters from the text content
Document identifier
Data specifying the page index, text block index, and character range to delete
Response with the response containing the updated text blocks
Deletes text blocks from the document
The ID of the document to delete text blocks from
Data specifying which text blocks to delete
Response with the result of the delete operation
Removes a watermark from the document
The document ID
Data specifying which watermark to delete
Response with the watermark deletion result
Automatically corrects skewed (angled) pages in the document
The document ID
Deskew configuration data
Response with the deskew operation result
Applies a whiteout effect to an area of the document
The document ID
Whiteout configuration data
Response with the whiteout operation result
Renders a specific page from the PDF document
Document identifier
Object containing rendering parameters including document ID and page index
Response with the rendered page data
Edits existing text content in the document
The document ID
Data containing the text changes to apply
Response with the result of the text edit operation
Edits text paragraphs in the document
Document identifier
Configuration for paragraph text editing
Response with the result of the paragraph edit operation
Ends a previously started transaction
The document ID
Response with the transaction completion result
Exports AcroForms data in FDF format
The document ID
Response with the exported FDF data
Exports comments from the document
The document ID
Response with the exported comments
Exports a file from the worker
The document ID
Data including name, file type, and export type
Response with the exported file, blob, uint8array, or arraybuffer
Exports a signature asset for fill and sign
The document ID
Data specifying which signature to export
Response with the exported signature as a Blob
Exports the appearance of a stamp annotation
The document ID
Response with the exported stamp appearance as a string
Extracts all attachments from the document
The document ID
Response with all extracted attachment data
Extracts an attachment from the document
The document ID
Data specifying which attachment to extract
Response with the extracted attachment data
Extracts a single image from the document
The document ID
Data specifying which image to extract
Response indicating the extraction result
Extracts multiple images from the document
The document ID
Data specifying which images to extract
Response indicating the extraction result
Extracts pages from the document
The document ID
Data specifying which pages to extract
Response with the extracted pages data
Searches for artifacts (unwanted elements) in the document
Search configuration data
Response with the found artifacts
Flattens an annotation, converting it into page content
The document ID
Data specifying which annotation to flatten
Response with the result of the flatten operation
Removes content element data from memory (clipboard)
The document ID
Data specifying which content element to forget
Response with the operation result
Gets all form fields (AcroForms) in the document
Data specifying which document to get form fields from
Response with the form fields information
Gets content data from specified pages in the document
Object specifying document ID, page range, and content options
Response containing the requested content data
Retrieves annotations from a PDF document in short format
Data specifying which document to get information for
Response containing the document annotations
Gets the current document history (undo/redo state)
The document ID
Response with the document history
Retrieves metadata and information about a PDF document
Data specifying which document to get information for
Response containing the document information
Get the permissions for a document
Data specifying which document to get permissions for
Response with the permissions
Retrieves the security settings of a document
Data specifying which document to get security settings for
Response with the document security settings
Gets measurement viewports from the document
The document ID
Data specifying which measurement viewports to retrieve
Response with the measurement viewports data
Retrieves annotations from a specific page in the document
Parameters specifying the page and document to get annotations from
Response containing an array of page annotations
Retrieves the content elements from a specific page in the document
Parameters specifying the page and document to get content from
Response containing the page content elements
Retrieves fill and sign fields from a specific page in the document
Parameters specifying the page and document to get fill and sign fields from
Response containing an array of fill and sign fields
Gets all text content from a specific page
Data specifying which page to get text from
Response with the page text content
Gets text content structured as a table
The document ID
Data specifying which text to retrieve as a table
Response with the text formatted as a table
Imports AcroForms data from FDF format
documentId: string;
The FDF file to import
Response with the import operation result
Inserts Bates numbering into the document
The document ID
Bates numbering configuration
Response with the insertion result
Inserts a character at a specific index in the text content
The document ID
Data specifying the page index, and character index to insert
Response with the result of the insert operation
Inserts a header into the document
The document ID
Header configuration data
Response with the header insertion result
Inserts an image into the document
Response with the image insertion result
Inserts page numbers into the document
The document ID
Page number configuration data
Response with the page number insertion result
Inserts a watermark into the document
The document ID
Watermark configuration data
Response with the watermark insertion result
Lists all attachments in the document
Data specifying which document to list attachments for
Response with the attachments list
Lists all claims used in the current editing session
The document ID
Response with an array of claim strings
Gets all system fonts available
OptionaldocumentId: stringThe ID of the document to get system fonts for
Response with the system fonts data
Loads all fonts from the provided binary data and adds them to the system fonts
The document ID
Font binary data (Uint8Array)
Response with array of loaded font faces information
Merges multiple text blocks into a single text block
The document ID
Data specifying which text blocks to merge
Response with the merged text block result
Changes a bookmark's position in the bookmark hierarchy
The document ID
Data specifying the bookmark move operation
Response with the move operation result
Creates and opens a new blank PDF document
Configuration data for the new document
Response with the created document data
Opens a PDF document using a file object
Object containing the file data to open
Response with the opened file data
Changes the order of annotations in the document
The document ID
Data specifying the annotation ordering
Response with the ordering result
Pastes a previously copied content element
The document ID
Data specifying where to paste the content element
Response with the paste operation result
Pastes a previously copied text block
The document ID
Data specifying where to paste the text block
Response with the paste operation result
Updates an existing bookmark's properties
The document ID
Updated bookmark data
Response with the updated bookmark information
Updates a fill and sign field
The document ID
Updated fill and sign field data
Response with the update result
Generates a preview of Bates numbering
Bates numbering configuration
Response with the preview data
Generates a preview of a header
Header configuration for the preview
Response with the header preview data
Generates a preview of a watermark
Watermark configuration for the preview
Response with the watermark preview data
Registers user-defined fonts for use in text editing
Array of user font configurations to register
Replaces the current document with new PDF data by closing the old worker and creating a new one. This method performs an in-place document replacement without creating new tabs or views.
The document ID
The new PDF binary data as File
Promise that resolves when the document has been replaced
Unified worker method for all page operations (insert, replace, move, delete)
The document ID
Prepared worker data for the operation
Response with the operation result
Replaces text in the document with new content
The document ID
Data specifying the page index and text replacement details
Response with the response containing the updated text blocks
Resets form fields to their default values
The document ID
Response with the reset operation result
Resizes pages in a document
The document ID
Size configuration data
Response with the size change result
Reverses the order of pages in a range
The document ID
Data specifying the page range to reverse
Response with the page reversal result
Rotates pages in the document
The document ID
Data specifying which pages to rotate and rotation angle
Response with the rotation result
Saves changes to an attachment
The document ID
Updated attachment data
Response with the save operation result
Saves optimized data to a file
The document ID
Data containing the document ID and optimization settings
Promise resolving to the optimized file as a Uint8Array
Applies redaction annotations to permanently remove content
The document ID
Response with the redaction result
Authorizes owner access to a secured document
Owner authorization data (typically password)
Response with the authorization result
Saves security settings for the document
The document ID
Security settings configuration
Response with the security settings result
Sets the background of a document or page
The document ID
Background configuration data
Response with the background setting result
Transforms (moves, scales, rotates) a clip
The document ID
Transformation data for the clip
Response with the transformation result
Transforms (rotates, scales, or repositions) a text block
Document identifier
Transformation data for the text block
Response with the result of the transformation
Interface for PDF editing operations
This interface provides methods to interact with PDF documents including: