Skip to content

Latest commit

 

History

History
5962 lines (4081 loc) · 82 KB

reference.md

File metadata and controls

5962 lines (4081 loc) · 82 KB

Reference

Deployment

client.deployment.license_status() -> CloudPDF::Types::DeploymentLicenseStatusResponse

🔌 Usage

client.deployment.license_status

⚙️ Parameters

request_options: CloudPDF::Deployment::RequestOptions

Doc

client.doc.head(doc_id:) -> CloudPDF::Types::DocHead200Response

🔌 Usage

client.doc.head(doc_id: "docId")

⚙️ Parameters

doc_id: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::RequestOptions

client.doc.changes(doc_id:, layer_name:, request) -> CloudPDF::Types::DocChanges200Response

📝 Description

Each change stands on its own and names itself by opId: a refused change rolls back alone, and the answer lists every change in order, applied with its result or refused with its error. Asked again under its opId, a change gets the same answer, refusals included; a different change under an answered opId is refused (IdempotencyKeyReused). { opId, undoOf } undoes an earlier change of the caller, here or in an earlier request; an undo leaves alone what was changed since, and the undo of an undo redoes. A redaction, a flatten, a form repair or a completed signature ends undo for the changes before it (UndoUnavailable). Each op is checked against its own capability: annotation ops need doc.annotate.modify, form values doc.forms.fill, form structure doc.forms.modify, metadata doc.metadata.modify. Bytes (a stamp's drawing, an attached file, a signature's artwork) travel as multipart: a JSON body part, each op naming its files by role as resources: { <role>: '<key>' }, and each file as the part resource:<key>. At most 64 changes per request and 512 ops per change.

🔌 Usage

client.doc.changes(
  doc_id: "docId",
  layer_name: "layerName",
  changes: [{
    op_id: "opId"
  }]
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

changes: Internal::Types::Array[CloudPDF::Doc::Types::DocChangesRequestChangesItem]

request_options: CloudPDF::Doc::RequestOptions

client.doc.download(doc_id:, layer_name:) -> String

🔌 Usage

client.doc.download(
  doc_id: "docId",
  layer_name: "layerName"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::RequestOptions

client.doc.manifest(doc_id:, layer_name:) -> CloudPDF::Types::DocManifest200Response

🔌 Usage

client.doc.manifest(
  doc_id: "docId",
  layer_name: "layerName"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::RequestOptions

client.doc.render(doc_id:, layer_name:, page_key:) -> String

📝 Description

Render parameters (viewport, format) pass as flat dotted query keys, e.g. ?viewport.kind=width&viewport.width=800; the full grammar is documented with the viewer.

🔌 Usage

client.doc.render(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey"
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::RequestOptions

client.doc.text(doc_id:, layer_name:, page_key:) -> CloudPDF::Types::DocText200Response

🔌 Usage

client.doc.text(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey"
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::RequestOptions

Shares

client.shares.exchange(request) -> CloudPDF::Types::SharesExchange200Response

📝 Description

Unauthenticated, but requires a browser Origin header, checked against the grant allowlist. Unknown, revoked, and disabled tokens are indistinguishable (404). Passphrase-protected grants return 422 SharePasswordRequired until password is supplied. Mounted only when the deployment can sign (HS256 mode).

🔌 Usage

client.shares.exchange(share_token: "shareToken")

⚙️ Parameters

share_token: String

password: String

request_options: CloudPDF::Shares::RequestOptions

client.shares.list(tenant_id:) -> CloudPDF::Types::SharesList200Response

🔌 Usage

client.shares.list(tenant_id: "tenantId")

⚙️ Parameters

tenant_id: String

limit: Integer

cursor: String

doc_id: String

request_options: CloudPDF::Shares::RequestOptions

client.shares.create(tenant_id:, request) -> CloudPDF::Types::SharesCreate200Response

📝 Description

The returned share id is the public share token. Mounted only when the deployment can sign (HS256 mode) — exchange mints session JWTs, so grants exist only where minting does.

🔌 Usage

client.shares.create(
  tenant_id: "tenantId",
  doc_id: "docId",
  scope: ["scope"]
)

⚙️ Parameters

tenant_id: String

doc_id: String

layer_name: String

scope: Internal::Types::Array[String]

origins: Internal::Types::Array[String]

password: String

session_ttl_seconds: Integer

expires_at: Integer

request_options: CloudPDF::Shares::RequestOptions

client.shares.get(tenant_id:, share_id:) -> CloudPDF::Types::SharesGet200Response

🔌 Usage

client.shares.get(
  tenant_id: "tenantId",
  share_id: "shareId"
)

⚙️ Parameters

tenant_id: String

share_id: String

request_options: CloudPDF::Shares::RequestOptions

client.shares.delete(tenant_id:, share_id:) ->

🔌 Usage

client.shares.delete(
  tenant_id: "tenantId",
  share_id: "shareId"
)

⚙️ Parameters

tenant_id: String

share_id: String

request_options: CloudPDF::Shares::RequestOptions

client.shares.update(tenant_id:, share_id:, request) -> CloudPDF::Types::SharesUpdate200Response

🔌 Usage

client.shares.update(
  tenant_id: "tenantId",
  share_id: "shareId"
)

⚙️ Parameters

tenant_id: String

share_id: String

scope: Internal::Types::Array[String]

origins: Internal::Types::Array[String]

password: String

session_ttl_seconds: Integer

disabled: Internal::Types::Boolean

expires_at: Integer

request_options: CloudPDF::Shares::RequestOptions

Tenants

client.tenants.list() -> CloudPDF::Types::TenantsList200Response

🔌 Usage

client.tenants.list

⚙️ Parameters

limit: Integer

cursor: String

request_options: CloudPDF::Tenants::RequestOptions

client.tenants.create(request) -> CloudPDF::Types::TenantsCreate200Response

🔌 Usage

client.tenants.create(id: "id")

⚙️ Parameters

id: String

name: String

request_options: CloudPDF::Tenants::RequestOptions

client.tenants.get(tenant_id:) -> CloudPDF::Types::TenantsGet200Response

🔌 Usage

client.tenants.get(tenant_id: "tenantId")

⚙️ Parameters

tenant_id: String

request_options: CloudPDF::Tenants::RequestOptions

client.tenants.delete(tenant_id:) ->

📝 Description

Destroys the tenant and everything in its namespace — documents, layers, stored bytes, audit history. Irreversible.

🔌 Usage

client.tenants.delete(tenant_id: "tenantId")

⚙️ Parameters

tenant_id: String

request_options: CloudPDF::Tenants::RequestOptions

client.tenants.resume(tenant_id:) ->

🔌 Usage

client.tenants.resume(tenant_id: "tenantId")

⚙️ Parameters

tenant_id: String

request_options: CloudPDF::Tenants::RequestOptions

client.tenants.suspend(tenant_id:, request) ->

📝 Description

Instantly reversible with resume. The API token is exempt, so a suspended tenant can still be inspected, exported, resumed, or deleted.

🔌 Usage

client.tenants.suspend(tenant_id: "tenantId")

⚙️ Parameters

tenant_id: String

reason: String

request_options: CloudPDF::Tenants::RequestOptions

client.tenants.usage(tenant_id:) -> CloudPDF::Types::TenantsUsage200Response

📝 Description

Facts only — no limits or billing state. Views count share exchanges plus authorized /v1/access grants, deduplicated across the two.

🔌 Usage

client.tenants.usage(tenant_id: "tenantId")

⚙️ Parameters

tenant_id: String

period: String

request_options: CloudPDF::Tenants::RequestOptions

Documents

client.documents.list(tenant_id:) -> CloudPDF::Types::DocumentsList200Response

🔌 Usage

client.documents.list(tenant_id: "tenantId")

⚙️ Parameters

tenant_id: String

limit: Integer

cursor: String

state: CloudPDF::Documents::Types::ListDocumentsRequestState

request_options: CloudPDF::Documents::RequestOptions

client.documents.get(tenant_id:, id:) -> CloudPDF::Types::DocumentsGet200Response

🔌 Usage

client.documents.get(
  tenant_id: "tenantId",
  id: "id"
)

⚙️ Parameters

tenant_id: String

id: String

request_options: CloudPDF::Documents::RequestOptions

client.documents.delete(tenant_id:, id:) ->

🔌 Usage

client.documents.delete(
  tenant_id: "tenantId",
  id: "id"
)

⚙️ Parameters

tenant_id: String

id: String

request_options: CloudPDF::Documents::RequestOptions

client.documents.commit(tenant_id:, id:, request) -> CloudPDF::Types::DocumentsCommit200Response

🔌 Usage

client.documents.commit(
  tenant_id: "tenantId",
  id: "id",
  sha256: "sha256"
)

⚙️ Parameters

tenant_id: String

id: String

sha256: String

request_options: CloudPDF::Documents::RequestOptions

client.documents.download(tenant_id:, id:) -> String

🔌 Usage

client.documents.download(
  tenant_id: "tenantId",
  id: "id"
)

⚙️ Parameters

tenant_id: String

id: String

request_options: CloudPDF::Documents::RequestOptions

client.documents.thumbnail(tenant_id:, id:) -> String

🔌 Usage

client.documents.thumbnail(
  tenant_id: "tenantId",
  id: "id"
)

⚙️ Parameters

tenant_id: String

id: String

request_options: CloudPDF::Documents::RequestOptions

client.documents.upload_proxy(tenant_id:, id:, request) -> CloudPDF::Types::DocumentsUploadProxy200Response

📝 Description

This bounded origin-mediated fallback must only be used after documents.init returns upload.kind=proxy. Auto mode prefers a presigned object-store PUT whenever available.

🔌 Usage

File.open("document.pdf", "rb") do |file|
  client.documents.upload_proxy(
    tenant_id: "tenantId",
    id: "id",
    file: file
  )
end

⚙️ Parameters

tenant_id: String

id: String

request_options: CloudPDF::Documents::RequestOptions

client.documents.import_from(tenant_id:, request) -> CloudPDF::Types::DocumentsImportFrom200Response

📝 Description

Default mode is synchronous and bounded: the response returns only after the transfer verified and committed (or failed). mode=async (connection sources only) answers 202 immediately and an in-process worker performs the transfer with leased, fenced retries; poll the document until ready/failed. The deployment import policy gates scheme, network range, and size; sources must declare a length. CloudPDF copies and owns the bytes — the source is never referenced in place. A 502 marks a retryable upstream failure: retry with the same idempotencyKey to resume the same document. URL sources are capabilities and never echoed back. Connection sources name operator-registered storage (bucket/prefix scope, allowed credential classes, and tenant bindings are deployment configuration); revision is provider-interpreted (S3 VersionId, GCS generation, Azure version id).

🔌 Usage

client.documents.import_from(tenant_id: "tenantId")

⚙️ Parameters

tenant_id: String

source: CloudPDF::Documents::Types::DocumentsImportFromRequestSource — Where CloudPDF pulls the bytes from. The two shapes differ in who supplies the authority to read, not in which storage vendor holds the file.

expected: CloudPDF::Documents::Types::DocumentsImportFromRequestExpected — Integrity pins, enforced when present. When absent, the server-observed values become authoritative.

metadata: Internal::Types::Hash[String, Object]

idempotency_key: String — Retrying with the same key resumes the same document rather than importing a second copy — including after a 502.

dedup_mode: CloudPDF::Documents::Types::DocumentsImportFromRequestDedupMode — always-create (default) creates a new document every time. reuse-existing returns a document that already holds the same content instead of storing it twice.

doc_id: String

mode: CloudPDF::Documents::Types::DocumentsImportFromRequestMode — sync (default) holds the response open for the whole transfer. async answers 202 with the document pending and transfers in the background; it requires a connection source, and filesystem connections additionally require expected.sha256.

request_options: CloudPDF::Documents::RequestOptions

client.documents.init(tenant_id:, request) -> CloudPDF::Types::DocumentsInit200Response

🔌 Usage

client.documents.init(
  tenant_id: "tenantId",
  content_length: 1.1,
  content_sha256: "contentSha256"
)

⚙️ Parameters

tenant_id: String

content_length: Integer

content_sha256: String

metadata: Internal::Types::Hash[String, Object]

idempotency_key: String

dedup_mode: CloudPDF::Documents::Types::DocumentsInitRequestDedupMode — always-create (default) creates a new document every time. reuse-existing returns a document that already holds the same content instead of storing it twice.

doc_id: String

upload_ttl_sec: Integer

upload_preference: CloudPDF::Documents::Types::DocumentsInitRequestUploadPreference

request_options: CloudPDF::Documents::RequestOptions

Tokens

client.tokens.issue(tenant_id:, request) -> CloudPDF::Types::TokensIssue200Response

📝 Description

kind "tenant" requires the API token — authority mints only downward. Mounted only when the deployment can sign (HS256 mode); asymmetric deployments mint with their own private key.

🔌 Usage

client.tokens.issue(tenant_id: "tenantId")

⚙️ Parameters

tenant_id: String

request: CloudPDF::Types::TokensIssueRequest

request_options: CloudPDF::Tokens::RequestOptions

client.tokens.revoke(tenant_id:, jti:, request) ->

📝 Description

Mounted only when the deployment enables token revocation.

🔌 Usage

client.tokens.revoke(
  tenant_id: "tenantId",
  jti: "jti"
)

⚙️ Parameters

tenant_id: String

jti: String

reason: String

expires_at_seconds: Integer

request_options: CloudPDF::Tokens::RequestOptions

Doc Annotations

client.doc.annotations.list_all(doc_id:, layer_name:) -> CloudPDF::Types::AnnotationList

📝 Description

Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by page (a PageRef) when display order matters.

🔌 Usage

client.doc.annotations.list_all(
  doc_id: "docId",
  layer_name: "layerName"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Annotations::RequestOptions

client.doc.annotations.list(doc_id:, layer_name:, page_key:) -> CloudPDF::Types::AnnotationList

🔌 Usage

client.doc.annotations.list(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey"
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Annotations::RequestOptions

client.doc.annotations.create(doc_id:, layer_name:, page_key:, request) -> CloudPDF::Types::DocAnnotationsCreate200Response

📝 Description

Doc JWTs may instead carry collab scopes (annotations:create:self, …) that refine per-annotation authorship rules; the API token is exempt from both.

🔌 Usage

client.doc.annotations.create(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey",
  request: {
    key: "value"
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Internal::Types::Hash[String, Object]

request_options: CloudPDF::Doc::Annotations::RequestOptions

client.doc.annotations.delete(doc_id:, layer_name:, page_key:, annot_key:) -> CloudPDF::Types::DocAnnotationsDelete200Response

🔌 Usage

client.doc.annotations.delete(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey",
  annot_key: "annotKey"
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

annot_key: String — The annotation's address on the page: obj:N, its indirect object number, or base:N for an annotation the uploaded file stored inline (without an object number of its own), the position it was born at in the page's /Annots. The name the annotation's ref carries for life.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request_options: CloudPDF::Doc::Annotations::RequestOptions

client.doc.annotations.update(doc_id:, layer_name:, page_key:, annot_key:, request) -> CloudPDF::Types::DocAnnotationsUpdate200Response

🔌 Usage

client.doc.annotations.update(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey",
  annot_key: "annotKey",
  request: {
    key: "value"
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

annot_key: String — The annotation's address on the page: obj:N, its indirect object number, or base:N for an annotation the uploaded file stored inline (without an object number of its own), the position it was born at in the page's /Annots. The name the annotation's ref carries for life.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Internal::Types::Hash[String, Object]

request_options: CloudPDF::Doc::Annotations::RequestOptions

client.doc.annotations.read_appearance(doc_id:, layer_name:, page_key:, annot_key:) -> String

🔌 Usage

client.doc.annotations.read_appearance(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey",
  annot_key: "annotKey"
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

annot_key: String — The annotation's address on the page: obj:N, its indirect object number, or base:N for an annotation the uploaded file stored inline (without an object number of its own), the position it was born at in the page's /Annots. The name the annotation's ref carries for life.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Annotations::RequestOptions

client.doc.annotations.export_appearance(doc_id:, layer_name:, page_key:, request) -> String

🔌 Usage

client.doc.annotations.export_appearance(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey",
  request: {
    string: {
      key: "value"
    }
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request: Internal::Types::Hash[String, Object]

request_options: CloudPDF::Doc::Annotations::RequestOptions

client.doc.annotations.flatten(doc_id:, layer_name:, page_key:, request) -> CloudPDF::Types::DocAnnotationsFlatten200Response

🔌 Usage

client.doc.annotations.flatten(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey",
  request: {
    key: "value"
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Internal::Types::Hash[String, Object]

request_options: CloudPDF::Doc::Annotations::RequestOptions

client.doc.annotations.reorder(doc_id:, layer_name:, page_key:, request) -> CloudPDF::Types::DocAnnotationsReorder200Response

🔌 Usage

client.doc.annotations.reorder(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey",
  refs: [],
  position: "start"
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

refs: Internal::Types::Array[CloudPDF::Types::AnnotationRef]

position: CloudPDF::Types::AnnotationPosition

request_options: CloudPDF::Doc::Annotations::RequestOptions

Doc Forms

client.doc.forms.list(doc_id:, layer_name:) -> CloudPDF::Types::DocFormsList200Response

🔌 Usage

client.doc.forms.list(
  doc_id: "docId",
  layer_name: "layerName"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Forms::RequestOptions

client.doc.forms.reorder_calculations(doc_id:, layer_name:, request) -> CloudPDF::Types::DocFormsReorderCalculations200Response

🔌 Usage

client.doc.forms.reorder_calculations(
  doc_id: "docId",
  layer_name: "layerName",
  fields: [],
  position: "start"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

fields: Internal::Types::Array[CloudPDF::Types::FormFieldRef]

position: CloudPDF::Types::FieldPosition

request_options: CloudPDF::Doc::Forms::RequestOptions

client.doc.forms.set_value(doc_id:, layer_name:, field_key:, request) -> CloudPDF::Types::DocFormsSetValue200Response

🔌 Usage

client.doc.forms.set_value(
  doc_id: "docId",
  layer_name: "layerName",
  field_key: "fieldKey",
  request: {
    key: "value"
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

field_key: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Internal::Types::Hash[String, Object]

request_options: CloudPDF::Doc::Forms::RequestOptions

client.doc.forms.reset(doc_id:, layer_name:, request) -> CloudPDF::Types::DocFormsReset200Response

🔌 Usage

client.doc.forms.reset(
  doc_id: "docId",
  layer_name: "layerName"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

refs: Internal::Types::Array[CloudPDF::Types::FormFieldRef]

request_options: CloudPDF::Doc::Forms::RequestOptions

client.doc.forms.delete_widget(doc_id:, layer_name:, page_key:, annot_key:) -> CloudPDF::Types::DocFormsDeleteWidget200Response

🔌 Usage

client.doc.forms.delete_widget(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey",
  annot_key: "annotKey"
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

annot_key: String — The annotation's address on the page: obj:N, its indirect object number, or base:N for an annotation the uploaded file stored inline (without an object number of its own), the position it was born at in the page's /Annots. The name the annotation's ref carries for life.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request_options: CloudPDF::Doc::Forms::RequestOptions

client.doc.forms.update_widget(doc_id:, layer_name:, page_key:, annot_key:, request) -> CloudPDF::Types::DocFormsUpdateWidget200Response

🔌 Usage

client.doc.forms.update_widget(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey",
  annot_key: "annotKey",
  patch: {}
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

annot_key: String — The annotation's address on the page: obj:N, its indirect object number, or base:N for an annotation the uploaded file stored inline (without an object number of its own), the position it was born at in the page's /Annots. The name the annotation's ref carries for life.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

patch: CloudPDF::Types::WidgetPatch

request_options: CloudPDF::Doc::Forms::RequestOptions

client.doc.forms.reorder_widgets(doc_id:, layer_name:, page_key:, request) -> CloudPDF::Types::DocFormsReorderWidgets200Response

🔌 Usage

client.doc.forms.reorder_widgets(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey",
  widgets: [],
  position: "start"
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

widgets: Internal::Types::Array[CloudPDF::Types::AnnotationRef]

position: CloudPDF::Types::AnnotationPosition

request_options: CloudPDF::Doc::Forms::RequestOptions

Doc Metadata

client.doc.metadata.get(doc_id:, layer_name:) -> CloudPDF::Types::DocumentMetadata

🔌 Usage

client.doc.metadata.get(
  doc_id: "docId",
  layer_name: "layerName"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Metadata::RequestOptions

Doc Pages

client.doc.pages.set_scale(doc_id:, layer_name:, page_key:, request) -> CloudPDF::Types::DocPagesSetScale200Response

🔌 Usage

client.doc.pages.set_scale(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey"
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

measure: CloudPDF::Doc::Pages::Types::DocPagesSetScaleRequestMeasure

request_options: CloudPDF::Doc::Pages::RequestOptions

client.doc.pages.viewports(doc_id:, layer_name:, page_key:) -> CloudPDF::Types::DocPagesViewports200Response

🔌 Usage

client.doc.pages.viewports(
  doc_id: "docId",
  layer_name: "layerName",
  page_key: "pageKey"
)

⚙️ Parameters

doc_id: String

layer_name: String

page_key: String — The page's address, obj:N: the page's indirect object number, the durable identity every PageLayout.ref carries. Mirrors annotKey and fieldKey.

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Pages::RequestOptions

client.doc.pages.delete(doc_id:, layer_name:, request) -> CloudPDF::Types::DocPagesDelete200Response

🔌 Usage

client.doc.pages.delete(
  doc_id: "docId",
  layer_name: "layerName",
  request: {
    key: "value"
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Internal::Types::Hash[String, Object]

request_options: CloudPDF::Doc::Pages::RequestOptions

client.doc.pages.extract(doc_id:, layer_name:, request) -> String

📝 Description

A read, not a mutation: the source document is untouched and no event is published. Body is {"pages": PageRef[]}; the response body is the new PDF.

🔌 Usage

client.doc.pages.extract(
  doc_id: "docId",
  layer_name: "layerName",
  request: {
    string: {
      key: "value"
    }
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request: Internal::Types::Hash[String, Object]

request_options: CloudPDF::Doc::Pages::RequestOptions

client.doc.pages.flatten(doc_id:, layer_name:, request) -> CloudPDF::Types::DocPagesFlatten200Response

🔌 Usage

client.doc.pages.flatten(
  doc_id: "docId",
  layer_name: "layerName",
  request: {
    key: "value"
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Internal::Types::Hash[String, Object]

request_options: CloudPDF::Doc::Pages::RequestOptions

client.doc.pages.insert(doc_id:, layer_name:, request) -> CloudPDF::Types::DocPagesInsert200Response

📝 Description

Multipart: a JSON body part {"position"?: PagePosition, "resources": {"source": "<key>"}} (position omitted → the end), and the standalone PDF whose pages are copied in as the part resource:<key>. The inserted copies get fresh page object numbers, returned in insertion order.

🔌 Usage

client.doc.pages.insert(
  doc_id: "docId",
  layer_name: "layerName"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request_options: CloudPDF::Doc::Pages::RequestOptions

client.doc.pages.insert_blank(doc_id:, layer_name:, request) -> CloudPDF::Types::DocPagesInsertBlank200Response

📝 Description

Body is {"size": {"width", "height"}, "count"?, "position"?} — size in PDF points, count in [1, 100], position a PagePosition (omitted → the end).

🔌 Usage

client.doc.pages.insert_blank(
  doc_id: "docId",
  layer_name: "layerName",
  request: {
    key: "value"
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Internal::Types::Hash[String, Object]

request_options: CloudPDF::Doc::Pages::RequestOptions

client.doc.pages.set_name(doc_id:, layer_name:, request) -> CloudPDF::Types::DocPagesSetName200Response

🔌 Usage

client.doc.pages.set_name(
  doc_id: "docId",
  layer_name: "layerName",
  request: {
    key: "value"
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Internal::Types::Hash[String, Object]

request_options: CloudPDF::Doc::Pages::RequestOptions

client.doc.pages.remove_name(doc_id:, layer_name:, request) -> CloudPDF::Types::DocPagesRemoveName200Response

🔌 Usage

client.doc.pages.remove_name(
  doc_id: "docId",
  layer_name: "layerName",
  request: {
    key: "value"
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Internal::Types::Hash[String, Object]

request_options: CloudPDF::Doc::Pages::RequestOptions

client.doc.pages.reorder(doc_id:, layer_name:, request) -> CloudPDF::Types::DocPagesReorder200Response

🔌 Usage

client.doc.pages.reorder(
  doc_id: "docId",
  layer_name: "layerName",
  pages: [{
    kind: "objectNumber",
    object_number: 1
  }],
  position: "start"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

pages: Internal::Types::Array[CloudPDF::Types::PageRef]

position: CloudPDF::Types::PagePosition

request_options: CloudPDF::Doc::Pages::RequestOptions

client.doc.pages.rotate(doc_id:, layer_name:, request) -> CloudPDF::Types::DocPagesRotate200Response

🔌 Usage

client.doc.pages.rotate(
  doc_id: "docId",
  layer_name: "layerName",
  request: {
    key: "value"
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

request: Internal::Types::Hash[String, Object]

request_options: CloudPDF::Doc::Pages::RequestOptions

Doc Redactions

client.doc.redactions.apply(doc_id:, layer_name:, request) -> CloudPDF::Types::DocRedactionsApply200Response

🔌 Usage

client.doc.redactions.apply(
  doc_id: "docId",
  layer_name: "layerName"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

idempotency_key: String — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.

pages: Internal::Types::Array[CloudPDF::Types::PageRef]

annotations: Internal::Types::Array[CloudPDF::Types::AnnotationRef]

request_options: CloudPDF::Doc::Redactions::RequestOptions

Doc Signatures

client.doc.signatures.list(doc_id:, layer_name:) -> CloudPDF::Types::DocSignaturesList200Response

📝 Description

Describes the bytes the layer is over: the base version's signatures plus the layer's own edits as the last revision. Signed bytes (contents, digests, revision prefixes) are served per base version under /versions.

🔌 Usage

client.doc.signatures.list(
  doc_id: "docId",
  layer_name: "layerName"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Signatures::RequestOptions

client.doc.signatures.cancel(doc_id:, layer_name:, signing_id:) -> CloudPDF::Types::DocSignaturesCancel200Response

🔌 Usage

client.doc.signatures.cancel(
  doc_id: "docId",
  layer_name: "layerName",
  signing_id: "signingId"
)

⚙️ Parameters

doc_id: String

layer_name: String

signing_id: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Signatures::RequestOptions

client.doc.signatures.complete(doc_id:, layer_name:, signing_id:, request) -> CloudPDF::Types::DocSignaturesComplete200Response

📝 Description

cms is the detached CMS over the prepared digest, base64. expectedVersion must be what prepare returned. Idempotent by signing id: the same CMS again answers already-completed. Every layer of the document then sits over the new version; refetch the manifest after a completion.

🔌 Usage

client.doc.signatures.complete(
  doc_id: "docId",
  layer_name: "layerName",
  signing_id: "signingId",
  cms: "cms",
  expected_version: {
    base_sha256: "baseSha256",
    edits_version: 1
  }
)

⚙️ Parameters

doc_id: String

layer_name: String

signing_id: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

cms: String

expected_version: CloudPDF::Doc::Signatures::Types::DocSignaturesCompleteRequestExpectedVersion

request_options: CloudPDF::Doc::Signatures::RequestOptions

client.doc.signatures.analysis(doc_id:, layer_name:) -> CloudPDF::Types::DocSignaturesAnalysis200Response

📝 Description

Exactly one of since.signature=<index> or since.revision=<index>; the layer's pending edits are the end. level=fill|annotate|lta|none evaluates exploratorily and never becomes a verdict. For history between two base revisions use the version analysis.

🔌 Usage

client.doc.signatures.analysis(
  doc_id: "docId",
  layer_name: "layerName"
)

⚙️ Parameters

doc_id: String

layer_name: String

since_signature: Integer

since_revision: Integer

level: CloudPDF::Doc::Signatures::Types::AnalysisSignaturesRequestLevel

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Signatures::RequestOptions

client.doc.signatures.prepare(doc_id:, layer_name:, request) -> CloudPDF::Types::DocSignaturesPrepare200Response

📝 Description

Multipart: a JSON body part (field, subFilter, digest, contentsSize, signer, certify, lock), naming the appearance PDF it may carry as resources: { appearance: '<key>' }, and that PDF as the part resource:<key>. A certification (certify.permission) additionally requires doc.sign.certify. The layer is read-only until the signing completes, is cancelled, or expires (15 minutes). A layer behind the document head cannot sign (StaleBase).

🔌 Usage

client.doc.signatures.prepare(
  doc_id: "docId",
  layer_name: "layerName"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Signatures::RequestOptions

Doc Versions

client.doc.versions.list(doc_id:) -> CloudPDF::Types::DocVersionsList200Response

📝 Description

Every completed signature publishes a new version. Never cached: the list grows.

🔌 Usage

client.doc.versions.list(doc_id: "docId")

⚙️ Parameters

doc_id: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Versions::RequestOptions

client.doc.versions.analysis(doc_id:, sha:) -> CloudPDF::Types::DocVersionsAnalysis200Response

📝 Description

Exactly one of since.signature / since.revision; until=<revision> defaults to the last. The same answer for every layer and every caller.

🔌 Usage

client.doc.versions.analysis(
  doc_id: "docId",
  sha: "sha"
)

⚙️ Parameters

doc_id: String

sha: String

since_signature: Integer

since_revision: Integer

level: CloudPDF::Doc::Versions::Types::AnalysisVersionsRequestLevel

until_: Integer

policy: Integer

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Versions::RequestOptions

client.doc.versions.download(doc_id:, sha:) -> String

🔌 Usage

client.doc.versions.download(
  doc_id: "docId",
  sha: "sha"
)

⚙️ Parameters

doc_id: String

sha: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Versions::RequestOptions

client.doc.versions.revision(doc_id:, sha:, index:) -> String

🔌 Usage

client.doc.versions.revision(
  doc_id: "docId",
  sha: "sha",
  index: 1
)

⚙️ Parameters

doc_id: String

sha: String

index: Integer

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Versions::RequestOptions

client.doc.versions.signatures(doc_id:, sha:) -> CloudPDF::Types::DocVersionsSignatures200Response

🔌 Usage

client.doc.versions.signatures(
  doc_id: "docId",
  sha: "sha"
)

⚙️ Parameters

doc_id: String

sha: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Versions::RequestOptions

client.doc.versions.signature_contents(doc_id:, sha:, field_key:) -> String

📝 Description

fieldKey is the field's fully qualified name, token-text encoded (the same encoding attachment keys use).

🔌 Usage

client.doc.versions.signature_contents(
  doc_id: "docId",
  sha: "sha",
  field_key: "fieldKey"
)

⚙️ Parameters

doc_id: String

sha: String

field_key: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Versions::RequestOptions

client.doc.versions.signature_digest(doc_id:, sha:, field_key:, algorithm:) -> String

📝 Description

What a CMS verifier compares its message digest to.

🔌 Usage

client.doc.versions.signature_digest(
  doc_id: "docId",
  sha: "sha",
  field_key: "fieldKey",
  algorithm: "sha1"
)

⚙️ Parameters

doc_id: String

sha: String

field_key: String

algorithm: CloudPDF::Doc::Versions::Types::SignatureDigestVersionsRequestAlgorithm

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Versions::RequestOptions

Doc Metadata Custom

client.doc.metadata.custom.get(doc_id:, layer_name:) -> Internal::Types::Hash[String, String]

🔌 Usage

client.doc.metadata.custom.get(
  doc_id: "docId",
  layer_name: "layerName"
)

⚙️ Parameters

doc_id: String

layer_name: String

document_password: String — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.

request_options: CloudPDF::Doc::Metadata::Custom::RequestOptions