Re: Brilliant concept!
"1 - get a Code 39 font;"
Please bear in mind that Code 39 only supports uppercase letters https://en.wikipedia.org/wiki/Code_39
If you use MS Word you don't need to download a barcode font - might help to avoid security issues. The Word Help file explains how to insert bar codes & QR codes and switch between the code image and plain text. Basically, you insert a field, then enter the data for the bar code and metadata (described in Help) to indicate the barcode type, size, etc.
See https://support.microsoft.com/en-us/office/field-codes-displaybarcode-6d81eade-762d-4b44-ae81-f9d3d9e07be3
For example: Ctrl-F9, two curly braces will appear, place the following text between them: DisplayBarcode "El Reg 123" CODE128 \d \t
For a QR code: DisplayBarcode "El Reg 123" QR \q 3
Then right-click the field to switch between displaying the barcode and the text (Toggle Field Codes).
Also works with Excel and mail merge I think, but haven't tried that.
Couldn't find a similar function in LibreOffice Writer, so in that case you would have to get a barcode font.
Used to tinker with this a few decades ago - thanks for the trip down Memory Lane.