跳转到主要内容
POST
Add PDF Password and Security

请求规范

  • 方法与路径: POST /apis/v1/pdf-co/pdf-security-add
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/pdf-co/pdf-security-add
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际用量收费。 默认请求预估费用:$0.0103 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
url
string
必填

URL of the source PDF file to secure.

allowAccessibilitySupport
boolean

Whether to allow content extraction for accessibility; ownerPassword is required to modify this restriction.

allowAssemblyDocument
boolean

Whether to allow document assembly; ownerPassword is required to modify this restriction.

allowContentExtraction
boolean

Whether to allow copying PDF content; ownerPassword is required to modify this restriction.

allowFillForms
boolean

Whether to allow filling interactive form and signature fields; ownerPassword is required to modify this restriction.

allowModifyAnnotations
boolean

Whether to allow interaction with annotations and forms; ownerPassword is required to modify this restriction.

allowModifyDocument
boolean

Whether to allow document modification; ownerPassword is required to modify this restriction.

allowPrintDocument
boolean

Whether to allow printing; ownerPassword is required to modify this restriction.

encryptionAlgorithm
enum<string>

Encryption algorithm for the secured PDF.

可用选项:
RC4_40bit,
RC4_128bit,
AES_128bit,
AES_256bit
expiration
integer

Number of minutes before the temporary output link expires.

name
string

File name for the generated PDF.

ownerPassword
string

Owner password used to encrypt the PDF and change document restrictions; it is required when modifying any allow* restriction.

printQuality
enum<string>

Printing quality allowed for the secured PDF.

可用选项:
LowResolution,
HighResolution
profiles
object

Advanced PDF.co profile settings.

userPassword
string

Password required to view or print the PDF; this password alone cannot change document restrictions.

响应

Tool result data

error
boolean
必填
status
必填
credits
integer
duration
integer
name
string
pageCount
integer
remainingCredits
integer
url
string