Pdflayoutmodif

Changes the way the PDF extract is returned to the client and changes a few pdf layout elements.