python - <<'PY'
import json
p='/workspace/scratch/edits.json';e=json.load(open(p))
e['HH-6618']['bg']=[[[543,970],[553,965],[720,965],[720,1010],[543,1010]]]
e['HH-8285']['fg'].append([[612,400],[671,400],[675,480],[677,568],[689,650],[686,693],[695,809],[666,815],[651,717],[641,657],[640,611],[624,544],[617,476]])
e['HH-8285']['lines']=[[[[178,700],[244,693],[320,684],[402,680],[476,669],[553,660],[643,654]],18]]
e['HH-8285']['bg'][-1]=[[692,645],[867,645],[910,794],[696,814]]
json.dump(e,open(p,'w'),indent=2)
PY
OPENBLAS_NUM_THREADS=1 python /workspace/scratch/applyedits.py HH-6618 HH-8285
cat /workspace/scratch/pdf_api.txt; grep -A5 -E '^setFirstLineOffset|^setTextVerticalAlignment|^setImageScale|^setImageOffset|^setDocBleeds|^newDocument|^createText' /workspace/scratch/scribus_api.txt; fc-list | grep 'Noto Sans:' | head