Barcode Value List to Image Sheet

Barcode Value List to Image Sheet

Generate printable Code 128 barcodes from a list of SKUs or asset tags.

1. Input Values (One value per line)

Note: Code 128 is highly versatile, supporting numbers, letters, and symbols.

2. Barcode Settings

Printable Barcode Sheet

Enter codes on the left to generate the printable barcodes.

'; return; } codes.forEach((code, index) => { const wrapper = document.createElement('div'); wrapper.className = 'bcgl-barcode-wrapper'; // Create a unique SVG ID for JsBarcode target const svgId = `barcode-${index}-${Date.now()}`; wrapper.innerHTML = ``; grid.appendChild(wrapper); try { // Generate Barcode using JsBarcode JsBarcode(`#${svgId}`, code, { format: type, displayValue: display, width: barWidth, height: 50, margin: 2, fontSize: 10, text: code.length > 25 ? code.substring(0, 22) + '...' : code // Truncate long codes for print text }); } catch (e) { // Handle invalid code format (e.g., non-numeric for EAN13) wrapper.innerHTML = `

Error: Invalid code or format mismatch for ${code}.

`; } }); }; // --- PDF Download --- window.bcglDownloadPDF = function() { // Ensure barcodes are generated bcglGenerateBarcodes(); const element = document.getElementById('bcgl-output-area'); document.body.classList.add('bcgl-generating-pdf'); const opt = { margin: [0.5, 0.5], filename: `Barcode_Sheet_${new Date().toISOString().split('T')[0]}.pdf`, image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2, useCORS: true }, jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } }; html2pdf().set(opt).from(element).save().then(() => { document.body.classList.remove('bcgl-generating-pdf'); }); };
Scroll to Top