Fixed barcode generation in pdfs