Código de Barras

Necessito inserir código de barras do pagseguro ou do meu banco na fatura. Como faço isso?
Como faço para a imagem que eu inseri no Adicionar Documentos da Fatura ter largura 100%?

You can add an image by converting it to base64 and then adding it in a custom design. The photo design shows an example of this.

https://pdfmake.github.io/docs/0.1/document-definition-object/images/

Sorry, I don’t know a way to change the image width. It may require changing the code.