# renderBarcodePNG Function

> renderBarcodePNG function in the Node.js JavaScript API: Returns a data:image/png;base64 URL, including the quiet zone and optional linear caption.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > JavaScript API > Node.js Server > renderBarcodePNG Function
- **216 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/renderbarcodepng-function/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/renderbarcodepng-function/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/renderbarcodepng-function/llms-full.txt

---

Returns a data:image/png;base64 URL, including the quiet zone and optional linear caption.

Package: `@txtextcontrol/tx-sheet-control-server`.

### Syntax

```javascript
renderBarcodePNG(options, value);
```

### Example

Use an existing workbook as `book`.

```javascript
const result = renderBarcodePNG({ symbology: 'code128' }, 'ORDER-0001');
```

### Remarks

Standalone helpers do not read workbook cells. The value argument supplies the payload; when omitted, the encoder uses options.value or an empty string. Use cell or drawing barcode settings for live source bindings. EAN and UPC check digits are generated or validated. Invalid settings or nonempty payloads throw an error.

See [Barcodes and QR Codes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/barcodes/llms-full.txt) for supported payloads, quiet zones and examples.

---

## Nearby

- **Previous:** [renderBarcodeSVG Function](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/renderbarcodesvg-function/llms-full.txt)
- **Next:** [barcodeCheckDigit Function](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/barcodecheckdigit-function/llms-full.txt)
