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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file office_to_pdf_client-0.1.1.tar.gz.
File metadata
- Download URL: office_to_pdf_client-0.1.1.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea157c651f327b073695c5150d3796091555b48c4099c8217707547aa6a024dc
|
|
| MD5 |
322499418c9c61458b8f69d954b160da
|
|
| BLAKE2b-256 |
18be2f1dda91730644528e1c6b4abb26d3673e1c75e9c6cdd91584598b8614bd
|
File details
Details for the file office_to_pdf_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: office_to_pdf_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38372c7ff426eaa0d0bc718d34c28846ec6651029ca6837fc80f7890c34ceeb2
|
|
| MD5 |
935637821be2ad2901b86f817e98a27d
|
|
| BLAKE2b-256 |
90a9c5a0bdeade4fa6ab6eda859b89967bcfceb5f90c2ba31e4ee079ee581ef2
|