HPIMS / dm-consents

DigiMe Consents
0 stars 0 forks source link

ehive consent sources

About consentIds

PDF Coordinates

When a new PDF needs to be added, we need to calculate the coordinates of the various checkboxes and inputs to insert text at. To do this, go to the apache pdfbox releases and download the latest feature version of the pdfbox-app (pdfbox-app-.jar). Then, load the consent PDF with the following command:

java -jar <path/to/pdfbox-app-<VERSION>.jar> PDFDebugger <path/to/consent.pdf>

You can then page through the PDF and hover over spots to find out the coordinates. They are displayed on the bottom left.

Notice that pdf page numbers are 0-indexed.