Set size of document for barcode