Giter Site home page Giter Site logo

go-office2pdf's Introduction

word to pdf 接口工具

直接使用

docker run --name office2pdf -p 3000:3000 -d jetereting/office2pdf

# 通过 get 转化远程文档:http://localhost:3000/convert?fileSrc=FILE_SRC
# 通过 post 直接转化本地:http://localhost:3000/convert 上传文件

修改

构建二进制

GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o office2pdf main.go

构建运行 docker 服务

docker build . -t jetereting/office2pdf:latest

docker run --name office2pdf -p 3000:3000 -d office2pdf

docker logs -f office2pdf

curl http://localhost:3000/convert?fileSrc=FILE_SRC
#http://localhost:3000/convert?fileSrc=http://qn.eiyou.ga/tmp/%E6%B8%B8%E6%88%8F%E5%90%8D%E7%A7%B0%E6%B8%B8%E6%88%8F%E8%BD%AF%E4%BB%B6%E8%AF%B4%E6%98%8E%E4%B9%A6.doc

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.