Skip to content
Edit this page View source of this page

Quota and usage

Quota and Usage

pdf-remote-converter quota shows what each provider backend knows about your remaining allowance.

pdf-remote-converter quota
PROVIDER      LIMIT    REMAINING  USED     UNIT               SOURCE
cloudconvert  300      unknown    unknown  conversions/month  static
  No credentials configured. Free tier: 10 conversion credits per day, reset daily (about 300 per month).
adobe         500      unknown    unknown  conversions/month  static
  No credentials configured. Free tier: 500 document transactions per month. Adobe exposes no usage endpoint.
apyhub        150      unknown    unknown  conversions/month  static
  No credentials configured. Free tier: 150 conversions per month. ApyHub exposes no usage endpoint.
google_drive  unknown  unknown    unknown  bytes              unavailable
  No monthly conversion quota; the storage quota is reported instead.
zamzar        100      unknown    unknown  conversions/month  static
  No credentials configured. Free tier: 100 conversion credits per month. Zamzar reports the live balance.
libreoffice   unknown  unknown    unknown  conversions         unavailable
  Self-hosted service; the limit is the capacity of the host you run.

Options:

Option Description
--provider, -p Restrict the report to a single provider.
--json Emit the report as JSON, for scripts.
--verbose, -v Enable verbose (debug) logging.

What each provider reports

The providers differ in what they expose, so the report says where every number came from.

Provider Source What is reported
CloudConvert live Remaining conversion credits, from GET /v2/users/me.
Zamzar live Remaining conversion credits, from the Zamzar-Credits-Remaining response header.
Google Drive live Storage quota in bytes, from GET /drive/v3/about.
Adobe PDF Services static The free-tier limit; Adobe documents no usage endpoint.
ApyHub static The free-tier limit; ApyHub documents no usage endpoint.
LibreOffice (Gotenberg) unavailable The self-hosted service has no provider-side allowance; the limit is the capacity of the host.

The SOURCE column tells you which of these produced the row:

Source Meaning
remote The provider API reported the figures live.
static No usage endpoint exists, so the documented free-tier limit is shown.
unavailable The provider has no quota concept at all.

Notes

  • Quota queries are never cached. A balance from the cache would be a stale balance, so quota requests bypass the HTTP cache.
  • A failing provider does not break the report. If a quota endpoint errors, the row shows the error instead of the whole command failing.
  • Google Drive has no conversion quota. Its limits are storage and API rate limits, so the row reports the storage quota of the account in bytes. Drive reports usage with a delay, so the figure can lag behind the last change.
  • The units differ per provider. CloudConvert and Zamzar count credits, Google Drive counts bytes, and the static rows count conversions per month.
  • A self-hosted service has no allowance. The LibreOffice row reports no figures, because a Gotenberg service you run yourself is limited by your own hardware, not by a provider quota.

Programmatic use

from pdf_remote_converter import query_quota

for report in query_quota():
    print(report.provider, report.remaining, report.unit, report.source)

query_quota returns a list of QuotaInfo objects, one per provider. Pass provider="zamzar" to query a single provider.

Field Description
provider Provider name.
limit Total allowance, or None when unknown.
remaining Remaining allowance, or None when unknown.
used The consumed allowance, or None when it cannot be derived.
unit Unit the figures are counted in.
source QuotaSource.REMOTE, STATIC, or UNAVAILABLE.
detail Note about the figures, e.g. the plan name or the error.
extras Additional provider-specific figures, e.g. a rate-limit window.