{"repo":"codespearhead/word-to-pdf-api","free":true,"listed":false,"github":"https://github.com/codespearhead/word-to-pdf-api","clone":"git clone https://github.com/codespearhead/word-to-pdf-api.git","description":"Self-hosted REST API for privacy-focused, programmatic conversion of Microsoft Word (.DOC/.DOCX) documents to PDF","language":"Python","stars":10,"topics":["doc-to-pdf","docx-to-pdf","pdf-generation","word-to-pdf"],"license":"Apache-2.0","category":"self-hosted-apps","readme_excerpt":"Word to PDF API Self-hosted REST API for privacy-focused, programmatic conversion of Microsoft Word (.DOC/.DOCX) documents to PDF Quickstart Prerequisites 1. Ensure you have the latest stable version of Docker Compose installed on your machine: Start the server Note : The initial build may take a while as LibreOffice is a large dependency. Subsequent builds and container starts will be near-instant due to Docker's layer caching. Check if the application is working Via automated tests 1. Install the test dependencies inside the running container: 2. Run the test suite: Via Web UI 1. Navigate to http://localhost:5000/doc to pdf. 2. Select a local DOC or DOCX file (e.g. dummy doc.docx). 3. Click the Upload button. 4. Check that the resulting PDF either appears directly in the browser or starts downloading automatically. Dev mode Prerequisites 1. Complete the Quickstart and ensure the server is already up and running. Note : Since Flask is running in debug mode, the server will automatically reload whenever changes are saved to server.py. 2. Ensure you have the latest stable version of Python installed: Local Environment Setup 1. Create a Virtual Enviroment: 2. Activate the Virtual Enviroment: 3. Ensure the Virtual Enviroment is active: 4. Install the Poetry package manager: 5. Install the project dependencies from all dependency groups: 6. The test and task commands will now run without the docker exec -it flask api prefix. Useful commands Code Formatting 1. Install the required","default_branch":null,"files":null,"tree":[],"storefront":"/r/codespearhead","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/codespearhead/word-to-pdf-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}