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.1.tar.gz (15.5 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.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for office_to_pdf_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ea157c651f327b073695c5150d3796091555b48c4099c8217707547aa6a024dc
MD5 322499418c9c61458b8f69d954b160da
BLAKE2b-256 18be2f1dda91730644528e1c6b4abb26d3673e1c75e9c6cdd91584598b8614bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for office_to_pdf_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38372c7ff426eaa0d0bc718d34c28846ec6651029ca6837fc80f7890c34ceeb2
MD5 935637821be2ad2901b86f817e98a27d
BLAKE2b-256 90a9c5a0bdeade4fa6ab6eda859b89967bcfceb5f90c2ba31e4ee079ee581ef2

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