API Clients¶
gotenberg_client.SyncGotenbergClient
¶
A synchronous client for interacting with a Gotenberg instance.
This client provides methods to interact with various Gotenberg APIs, including:
- Chromium
- Libreoffice
- PDF/A & PDF/UA
- Read PDF Metadata
- Write PDF Metadata
- Merge PDFs
- Split PDFs
- Flatten PDFs
- Health
- Version
Attributes¶
chromium: SyncChromiumApi
property
¶
Returns a new instance for interacting with Chromium routes for the conversion of URLs, HTML, Markdown into PDFs and the generation of screenshots from those types
flatten: SyncFlattenApi
property
¶
Returns a new instance for interacting with Flatten PDFs route for flattening PDFs
libre_office: SyncLibreOfficeApi
property
¶
Returns a new instance for interacting with Libreoffice routes for the conversion of a variety of office documents into PDFs
merge: SyncMergePdfsApi
property
¶
Returns a new instance for interacting with Merge PDFs route for merging multiple PDFs into one
metadata: SyncPdfMetadataApi
property
¶
Returns a new instance for interacting with Read PDF Metadata and Write PDF Metadata routes for the manipulation or reading of metadata
pdf_convert: SyncPdfAApi
property
¶
Returns a new instance for interacting with PDF/A & PDF/UA routes for the conversion of PDFs to PDF/A and/or PDF/UA
split: SyncSplitApi
property
¶
Returns a new instance for interacting with Split PDFs route for splitting PDFs
version: SyncOrAsyncApiT
property
¶
Returns a new instance for reading the Version route
Raises:
Type | Description |
---|---|
NotImplementedError | This API is not yet implemented |
Functions¶
add_error_webhook_url(url: str) -> None
¶
add_headers(header: dict[str, str]) -> None
¶
add_webhook_url(url: str) -> None
¶
close() -> None
¶
Close the underlying HTTP client connection.
set_error_webhook_http_method(method: Literal['POST', 'PATCH', 'PUT']) -> None
¶
Set the HTTP method Gotenberg will use to call the error webhook url.
Args: method: The HTTP method to use.
set_webhook_extra_headers(extra_headers: dict[str, str]) -> None
¶
gotenberg_client.AsyncGotenbergClient
¶
An asynchronous client for interacting with a Gotenberg instance.
This client provides methods to interact with various Gotenberg APIs, including:
- Chromium
- Libreoffice
- PDF/A & PDF/UA
- Read PDF Metadata
- Write PDF Metadata
- Merge PDFs
- Split PDFs
- Flatten PDFs
- Health
- Version
Attributes¶
chromium: AsyncChromiumApi
property
¶
Returns a new instance for interacting with Chromium routes for the conversion of URLs, HTML, Markdown into PDFs and the generation of screenshots from those types
flatten: AyncFlattenApi
property
¶
Returns a new instance for interacting with Flatten PDFs route for flattening PDFs
libre_office: AsyncLibreOfficeApi
property
¶
Returns a new instance for interacting with Libreoffice routes for the conversion of a variety of office documents into PDFs
merge: AsyncMergePdfsApi
property
¶
Returns a new instance for interacting with Merge PDFs route for merging multiple PDFs into one
metadata: AsyncPdfMetadataApi
property
¶
Returns a new instance for interacting with Read PDF Metadata and Write PDF Metadata routes for the manipulation or reading of metadata
pdf_convert: AsyncPdfAApi
property
¶
Returns a new instance for interacting with PDF/A & PDF/UA routes for the conversion of PDFs to PDF/A and/or PDF/UA
split: AyncSplitApi
property
¶
Returns a new instance for interacting with Split PDFs route for splitting PDFs
version: SyncOrAsyncApiT
property
¶
Returns a new instance for reading the Version route
Raises:
Type | Description |
---|---|
NotImplementedError | This API is not yet implemented |
Functions¶
add_error_webhook_url(url: str) -> None
¶
add_headers(header: dict[str, str]) -> None
¶
add_webhook_url(url: str) -> None
¶
close() -> None
async
¶
Close the underlying asynchronous HTTP client connection.
set_error_webhook_http_method(method: Literal['POST', 'PATCH', 'PUT']) -> None
¶
Set the HTTP method Gotenberg will use to call the error webhook url.
Args: method: The HTTP method to use.