Pillowライブラリは、既存の画像を編集するだけでなく、まっさらな画像の上に、プログラムで図形やテキストを自由に描画することもできます。これにより、データからグラフを生成したり、画像に注釈を加えたりと、画像処理の可能性は大きく広がります。
This project allows you to draw a red-bordered rectangle over a PDF file, using coordinates in centimeters and a specific page. It runs within a Docker container, so you don't need Python installed.