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)
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
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.
Returned when the document conversion succeeded.
Returned when the document conversion failed, most likely due to the document type not being suited for conversion.
Convert the related file for each (supported) document version that has no converted file yet.