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.2.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.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: office_to_pdf_client-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8978d4ac9f7e26bf088d1a0738669d3d6a1d43944d3f9efa13004728b6790d37
MD5 20e3679e71579d8174b60066c8fc35be
BLAKE2b-256 63dfaf9c6810da522f09829a59a21dd7bc0c6ad12cfc434e273b2107ca131b6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for office_to_pdf_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 45bec5ed1c2a15edc4cec090108be5965a536910d2ec24df7961bf0f263234b0
MD5 ee14cc1a9f6474d5a51ffe3f4bd9d21d
BLAKE2b-256 02944c1aeb4793dddb1d51299ba08b37103f19add8823e93d55a3e14f2ed2995

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