openjusticebe / data_api

OJ data access API
https://doc.openjustice.lltl.be/docs#/
GNU General Public License v3.0
2 stars 0 forks source link

Extract latex to pdf conversion to a specific docker #19

Open PieterjanMontens opened 3 years ago

PieterjanMontens commented 3 years ago

latex is taxing in a server docker environment : it's heavy and not really adapted. It would be better in it's own container, with all error management and such behind a rest interface

PieterjanMontens commented 3 years ago

Add PDF compression for optimized file sizes:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=test-comp.pdf test.pdf