I use Libreoffice Draw for drawing block diagrams. I export them automatically on the command line using the following command:
soffice --headless --convert-to pdf --outdir figures figures_raw/foo.odg
However, this does not preserve transparency - the background is always white. How to convert odg drawings to pdf but preserver the transparency?
This is so by specification. In the PDF specification, when covering the topic of transparency,
Thus, PDF viewer programs or viewing controls usually will display a PDF with a white, opaque background.