Skip to main content

Add your description here

Project description

office-to-pdf-client

This is a client for office-to-pdf-serve.

Usage

1. Installation

pip install office-to-pdf-client

2. Prerequisites

Start the server of office-to-pdf-serve using docker compose. (In the case of docker compose, the server will start at "http://127.0.0.1:8000")

3. Client Usage Example

from pathlib import Path

from office_to_pdf_client import OfficeToPdfClient

office_to_pdf_url = "http://127.0.0.1:8000"
office_file_path = Path("./examples/test.xlsx")
output_file_path = Path("./examples/test.pdf")
client = OfficeToPdfClient(office_to_pdf_url)
client.convert_to_pdf(office_file_path, output_file_path)

※The endpoint ("/convert_to_pdf") is internally combined with the URL and sent to the backend as "http://127.0.0.1:8000/convert_to_pdf".

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

office_to_pdf_client-0.1.3.tar.gz (871.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

office_to_pdf_client-0.1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file office_to_pdf_client-0.1.3.tar.gz.

File metadata

  • Download URL: office_to_pdf_client-0.1.3.tar.gz
  • Upload date:
  • Size: 871.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for office_to_pdf_client-0.1.3.tar.gz
Algorithm Hash digest
SHA256 704f08dadc7352468579b747774032a20d09e9010ec8b96dd717f891d2be758f
MD5 4f9e27574579e0e470ca4e1ca176151a
BLAKE2b-256 2cf64f41f36a932971470a7f8fc9258511794eb4de1192d49b38fc93f5377ad7

See more details on using hashes here.

File details

Details for the file office_to_pdf_client-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for office_to_pdf_client-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 88206f6a4ae87b450d8052acca3a709fe0b6bd16364ae97d97f89c1898f7870e
MD5 966bd8caefa57f897f1ac2805523aeca
BLAKE2b-256 2523b71ad7d3e18fd5d734d9716d015de7f4e919f161f320fdee61a012982503

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page