Document actions contain information that is used to copy and modify documents. DocumentActionModel is abstract and should not be used. Instead, use one of it's subclasses: FlattenAnnotationsActionModel, FlattenFieldsActionModel, OptimizeActionModel, CopyActionModel, and LinearizeActionModel.
name | data type | description |
---|---|---|
savePath | string | Path to save the modified document. If not provided, the original document will be overwritten. |
namingMode | number | The behavior when saving the modified document to a new path that already exists. Valid values are: 0-Throw a bad request exception, 1-Overwrite the existing file, 2-Append a random number to the file name. |
Example
{ "savePath" : "...", "namingMode" : 12345 }