Skip to content

Latest commit

Β 

History

History
2470 lines (1700 loc) Β· 29 KB

File metadata and controls

2470 lines (1700 loc) Β· 29 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

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

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

doc_id: String

upload_ttl_sec: Integer

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(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

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