Skip to content

rharink/doxbuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DoxBuilder

doxbuilder [-c configuration.yml] [-p port]

Requirements

  • Libreoffice commandline tools (soffice)

How to convert a docx

Send a post request to /convert?format=[format] as multipart/form-data and set the file paramter to the docx file. You'll get the new document returned.

Example in Curl

curl -i -X POST -H "Content-Type: multipart/form-data" -F "[email protected]"  http://localhost:3000/convert?format=pdf

Configuration

By default doxbuilder wil look for a configuration file in ./configuration.yml. You can run doxbuilder with a custom configuration file:

doxbuilder -c <myfile>.yml

Example Configuration:

# configuration.yml
output_dir: /tmp
allowed_formats:
  - pdf
  - odt

About

docx converter written in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages