Component: Barcode 
-------------------

Functions for generating and scanning barcodes.

Generate bar code as image, image file or write on PDF page.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [3.5](newinversion35.md "First functions introduced with version 3.5.") / [15.0](newinversion150.md "Newest functions in version 15.0.") | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

  
| Item | Details |
|:--|:--|
| [Barcode.Detect](BarcodeDetect.md)   Detects a barcode. | All   3.5 |
| [Barcode.DetectAsJSON](BarcodeDetectAsJSON.md)   Detects barcodes and returns JSON. | All   14.5 |
| [Barcode.DrawBarcode](BarcodeDrawBarcode.md)   Draws a barcode into a PDF page. | All   3.5 |
| [Barcode.EANChecksum](BarcodeEANChecksum.md)   Calculates checksum for EAN barcodes. | All   5.0 |
| [Barcode.Generate](BarcodeGenerate.md)   Generates a barcode. | All   3.5 |
| [Barcode.GenerateJSON](BarcodeGenerateJSON.md)   Generates a barcode. | All   9.4 |
| [Barcode.GetInputMode](BarcodeGetInputMode.md)   Queries input mode. | All   8.1 |
| [Barcode.GetOption](BarcodeGetOption.md)   Queries option by index. | All   8.1 |
| [Barcode.GetPrimary](BarcodeGetPrimary.md)   Queries primary parameter. | All   7.1 |
| [Barcode.ISBNChecksum](BarcodeISBNChecksum.md)   Calculates checksum for ISBN barcodes. | All   5.0 |
| [Barcode.LibVersion](BarcodeLibVersion.md)   Queries version of Zint library. | All   9.3 |
| [Barcode.LoadLibrary](BarcodeLoadLibrary.md)   Loads the zbar library. | All   11.3 |
| [Barcode.Loaded](BarcodeLoaded.md)   Whether the zbar library is loaded. | All   11.3 |
| [Barcode.Modulo10Checksum](BarcodeModulo10Checksum.md)   Calculate checksum with Modulo 10 recursive. | All   11.1 |
| [Barcode.Scan](BarcodeScan.md)   Scans for barcodes in a picture. | All   11.3 |
| [Barcode.SetInputMode](BarcodeSetInputMode.md)   Sets input mode. | All   8.1 |
| [Barcode.SetOption](BarcodeSetOption.md)   Sets option by index. | All   8.1 |
| [Barcode.SetOptions](BarcodeSetOptions.md)   Sets options for barcode creation. | All   4.3 |
| [Barcode.SetPrimary](BarcodeSetPrimary.md)   Sets primary parameter. | All   7.1 |
| [Barcode.UPCChecksum](BarcodeUPCChecksum.md)   Calculates checksum for UPC barcodes. | All   3.5 |
| [Barcode.Version](BarcodeVersion.md)   Queries the version of the zxing library. | All   15.0 |
| [Barcode.WriteFile](BarcodeWriteFile.md)   Generates a barcode and writes to file. | All   4.3 |
| [Barcode.ZBarVersion](BarcodeZBarVersion.md)   Queries version of zbar library. | All   11.3 |

23 functions shown.

### Release notes

- **Version 16.0**
    - Added StructuredAppend key for the JSON used with [Barcode.GenerateJSON](https://www.mbsplugins.eu/BarcodeGenerateJSON.shtml) to create barcodes with sequence information.
- **Version 15.4**
    - Fixed [Barcode.Generate](https://www.mbsplugins.eu/BarcodeGenerate.shtml) to handle NUL characters in text better (hex encoded input), broken in 15.3.
- **Version 15.3**
    - Changed [Barcode.GenerateJSON](https://www.mbsplugins.eu/BarcodeGenerateJSON.shtml) to allow text to be an array for a stacked barcode.
- **Version 15.1**
    - Added an OutputJSON option to the JSON for [Barcode.GenerateJSON](https://www.mbsplugins.eu/BarcodeGenerateJSON.shtml) function to output drawing commands as JSON.
- **Version 15.0**
    - Added [Barcode.Version](https://www.mbsplugins.eu/BarcodeVersion.shtml) function.
- **Version 14.5**
    - Added [Barcode.DetectAsJSON](https://www.mbsplugins.eu/BarcodeDetectAsJSON.shtml) function.
    - Changed [Barcode.Generate](https://www.mbsplugins.eu/BarcodeGenerate.shtml), [Barcode.GenerateJSON](https://www.mbsplugins.eu/BarcodeGenerateJSON.shtml) and [Barcode.WriteFile](https://www.mbsplugins.eu/BarcodeWriteFile.shtml) to use 4 as default scale.
    - Improved [Barcode.Detect](https://www.mbsplugins.eu/BarcodeDetect.shtml) by using newer zxing library.
- **Version 13.1**
    - Fixed problem in [Barcode.Generate](https://www.mbsplugins.eu/BarcodeGenerate.shtml) and [Barcode.GenerateJSON](https://www.mbsplugins.eu/BarcodeGenerateJSON.shtml) functions, where a warning from the zint library would be treated as an error.
- **Version 13.0**
    - Added WhitespaceHeight, GuardDescent and WarnLevel options for [Barcode.GenerateJSON](https://www.mbsplugins.eu/BarcodeGenerateJSON.shtml) functions.
- **Version 12.5**
    - Fixed crash if text is missing in JSON for [Barcode.GenerateJSON](https://www.mbsplugins.eu/BarcodeGenerateJSON.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 11.3](https://www.mbsplugins.de/archive/2021-07-27/New_in_MBS_FileMaker_Plugin_11/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, June 2021 News](https://www.mbsplugins.de/archive/2021-06-01/MBS_FileMaker_Plugin_June_2021/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin Quiz](https://www.mbsplugins.de/archive/2021-04-30/MBS_Plugin_Quiz/monkeybreadsoftware_blog_filemaker)
- [Combined Components with MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2021-03-29/Combined_Components_with_MBS_F/monkeybreadsoftware_blog_filemaker)
- [Video about MBS FileMaker Plugins 11.1](https://www.mbsplugins.de/archive/2021-03-11/Video_about_MBS_FileMaker_Plug/monkeybreadsoftware_blog_filemaker)
- [Embrace JSON](https://www.mbsplugins.de/archive/2020-09-29/Embrace_JSON/monkeybreadsoftware_blog_filemaker)
- [Swiss QR-Codes for invoices as vector graphics](https://www.mbsplugins.de/archive/2020-06-12/Swiss_QR-Codes_for_invoices_as/monkeybreadsoftware_blog_filemaker)
- [New Examples 2020](https://www.mbsplugins.de/archive/2020-03-23/New_Examples_2020/monkeybreadsoftware_blog_filemaker)
- [Whats new in MBS FileMaker Plugin version 9.3](https://www.mbsplugins.de/archive/2019-08-17/Whats_new_in_MBS_FileMaker_Plu/monkeybreadsoftware_blog_filemaker)
- [Combine MBS functions to automate processes in FileMaker](https://www.mbsplugins.de/archive/2019-04-11/Combine_MBS_functions_to_autom/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2025, Seite 32](https://filemaker-magazin.de/neuigkeit/4309-Appetithappen-FMM_202506)
- [Ausgabe 3/2019, Seite 37](https://filemaker-magazin.de/neuigkeit/4046-Appetithappen-FMM_201903)
- [Ausgabe 5/2018, Seite 26 bis 29](https://filemaker-magazin.de/neuigkeit/4011-Appetithappen-FMM_201805)

### Example Databases

- [Barcode/Barcode Detection](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/Barcode%20Detection.shtml#1ScriptAnchor_)
- [Barcode/Barcode Generation JSON](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/Barcode%20Generation%20JSON.shtml#2ScriptAnchor_)
- [Barcode/Barcode Generation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/Barcode%20Generation.shtml#1ScriptAnchor_)
- [Barcode/Barcodes from Invoices](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/Barcodes%20from%20Invoices.shtml#2ScriptAnchor_)
- [Barcode/EPC-QR-Code](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/EPC-QR-Code.shtml#1ScriptAnchor_)
- [Barcode/Generate vCard QR](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/Generate%20vCard%20QR.shtml#12930FieldAnchor_)
- [Barcode/QRCode PDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/QRCode%20PDF.shtml#2ScriptAnchor_)
- [Barcode/Swiss QR-Code for invoices/ISO20022 QR v2.3](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/Swiss%20QR-Code%20for%20invoices/ISO20022%20QR%20v2.3.shtml#1ScriptAnchor_)
- [Barcode/Swiss QR-Code for invoices/Swiss QR-Code for invoices ISO 20022](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/Swiss%20QR-Code%20for%20invoices/Swiss%20QR-Code%20for%20invoices%20ISO%2020022.shtml#11ScriptAnchor_)
- [DynaPDF/Swiss QRCode](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Swiss%20QRCode.shtml#2ScriptAnchor_)

[HTML Version](component_Barcode.shtml)