Git Product home page Git Product logo

xlsx2pdf-libre-api's Introduction

XLSX to PDF converter server

TODO List

  • Simplest API
  • Optimize image size
  • Migrate on alpine

What inside?

  • Debian bullseye
  • LibreOffice Calc without most GUI packages
  • python 3.10.4
    • fastapi
    • uvicorn

This image based on python:3.10.4.

Source code of API maybe coming up on GitHub soon.

Get image

You could pull image from Docker Hub or build:

git clone https://github.com/Holography7/xlsx2pdf-libre-api.git
cd xlsx2pdf-libre-api/src
docker build -t xlsx2pdf-libre-api:custom .

Configuration

If you want just to run:

docker run --env HOST=0.0.0.0 --env PORT=8070 -p 8000:8070 -ti holography/xlsx2pdf-libre-api:0.1.1

Or using docker-compose:

version: "3.8"

services:
  xlsx2pdf-libre:
    image: holography/xlsx2pdf-libre-api:0.1.1
    network_mode: "host"
    ports:
     - 8000:8070
    environment:
     - HOST=0.0.0.0
     - PORT=8070

Usage

All you need it's just send bytes to API http://localhost:8000/convert_to_pdf and it response you PDF bytes.

For example, you could test it by python script request.py. Don't forget copy close to it example.xlsx.

Changelog

0.1.1

  • better handling errors
  • added warnings about Java Runtime Environment. I don't know how Libre uses JRM, but in my tests not installed JRM is not critical, so i leave as is.

This README not ended...

xlsx2pdf-libre-api's People

Contributors

holography7 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.