Skip to content

Latest commit

Β 

History

History
5076 lines (3487 loc) Β· 63.1 KB

File metadata and controls

5076 lines (3487 loc) Β· 63.1 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.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:, pon:) -> 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",
  pon: 1
)

βš™οΈ Parameters

doc_id: String

layer_name: String

pon: 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::RequestOptions

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

πŸ”Œ Usage

client.doc.text(
  doc_id: "docId",
  layer_name: "layerName",
  pon: 1
)

βš™οΈ Parameters

doc_id: String

layer_name: String

pon: 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::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::DocAnnotationsListAll200Response

πŸ“ Description

Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by pageState.pageObjectNumber 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:, pon:) -> CloudPDF::Types::DocAnnotationsList200Response

πŸ”Œ Usage

client.doc.annotations.list(
  doc_id: "docId",
  layer_name: "layerName",
  pon: 1
)

βš™οΈ Parameters

doc_id: String

layer_name: String

pon: 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::Annotations::RequestOptions

client.doc.annotations.create(doc_id:, layer_name:, pon:, 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",
  pon: 1,
  request: {
    key: "value"
  }
)

βš™οΈ Parameters

doc_id: String

layer_name: String

pon: 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: Internal::Types::Hash[String, Object]

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

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

πŸ”Œ Usage

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

βš™οΈ Parameters

doc_id: String

layer_name: String

pon: Integer

annot_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::Annotations::RequestOptions

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

πŸ”Œ Usage

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

βš™οΈ Parameters

doc_id: String

layer_name: String

pon: Integer

annot_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: Internal::Types::Hash[String, Object]

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

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

πŸ”Œ Usage

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

βš™οΈ Parameters

doc_id: String

layer_name: String

pon: 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: Internal::Types::Hash[String, Object]

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

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

πŸ”Œ Usage

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

βš™οΈ Parameters

doc_id: String

layer_name: String

pon: 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: Internal::Types::Hash[String, Object]

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

Doc Forms

client.doc.forms.get(doc_id:, layer_name:) -> CloudPDF::Types::DocFormsGet200Response

πŸ”Œ Usage

client.doc.forms.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::Forms::RequestOptions

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

πŸ”Œ Usage

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

βš™οΈ Parameters

doc_id: String

layer_name: String

format: CloudPDF::Doc::Forms::Types::ExportDataFormsRequestFormat

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.import_data(doc_id:, layer_name:, request) -> CloudPDF::Types::DocFormsImportData200Response

πŸ”Œ Usage

client.doc.forms.import_data(
  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.

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

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

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

πŸ”Œ Usage

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

βš™οΈ 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.

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.

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

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

Doc Metadata

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

πŸ”Œ 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.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.

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 {"pageObjectNumbers": number[]}; 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.

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 mutation envelope: a body field holding {"destIndex"?: number} (omitted β†’ append) plus a resource:source file part carrying the standalone PDF whose pages are copied in. 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.

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"?, "destIndex"?} β€” size in PDF points, count in [1, 100], destIndex omitted β†’ append.

πŸ”Œ 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.

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

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

client.doc.pages.move(doc_id:, layer_name:, request) -> CloudPDF::Types::DocPagesMove200Response

πŸ”Œ Usage

client.doc.pages.move(
  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.

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.

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.

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

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.

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",
  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.

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

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.abort(doc_id:, layer_name:, signing_id:) -> CloudPDF::Types::DocSignaturesAbort200Response

πŸ”Œ Usage

client.doc.signatures.abort(
  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

The multipart envelope: a JSON body part (field, subFilter, digest, contentsSize, signer, certify, lock, appearance) and an optional resource:<key> PDF part the body's appearance.resource names. A certification (certify.permission) additionally requires doc.sign.certify. The layer is read-only until the signing completes, is aborted, 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