Sign inSign up

mikidi/document-conversion-service

By mikidi

•Updated about 7 years ago

Service for converting docx to semantically structured html

Image
0

249

mikidi/document-conversion-service repository overview

⁠document-conversion-service

Microservice to convert docx documents from the Flemish Chancery to semantically structured html fragements. The service only supports specific types of documents, which are based on on official templates:

  • Nota⁠: "Nota aan de Vlaamse Regering" (template source here⁠)
  • BVR⁠: "Besluit van de Vlaamse Regering" (template source here⁠)

⁠Installation

Add the following snippet to your docker-compose.yml to include the file service in your project.

document-conversion:
  image: kanselarij/document-conversion-service:latest
  links:
    - database:database
  volumes:
    - ./data/files:/share

⁠REST API

⁠GET /convert-document-versions/:id

Convert the related file from a document version with given id to a semantically structered html fragment. The converted fragment is attached to the document-version-resource by means of the ext:convertedFile-predicate.

⁠Response
⁠200 OK

Returned when the document conversion succeeded.

⁠404 Bad Request

Returned when the document conversion failed, most likely due to the document type not being suited for conversion.

⁠GET /convert-document-versions/

Convert the related file for each (supported) document version that has no converted file yet.

Tag summary

Content type

Image

Digest

Size

51.1 MB

Last updated

about 7 years ago

docker pull mikidi/document-conversion-service