just for Quick workaround…
you could setup a custom HTML field in Print format builder and insert the following
<img src="http://www.barcodes4.me/barcode/c128a/{{ doc.name }}.png?IsTextDrawn=1?alt="barcodedecname"?style="width:200px;height:100px;"?draggable="false">
this example retrieves a Barcode image converted from the doc.name as Barcode 128a