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.4.tar.gz (15.7 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.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for office_to_pdf_client-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f14568b38991de0d08824ea07c233ff608a3c4e55e781f49a146e2adbde528e1
MD5 4b7148c04d14276c7dde0caf8907c51c
BLAKE2b-256 0d686490cb1b889287de93713de97df734ed1540290ca252268dfddf24e00770

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for office_to_pdf_client-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b893d5c42c6951ab61df3b7f6a4da19afd3b1cc7ec8a36dd09df63df12a2b29d
MD5 3897bf786cc44bd1aa1526a75718d9d2
BLAKE2b-256 f971b80344ca05549daf6c4fa3a0d5e6ca245f059d504e92e1850a0673b4d200

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