Document Scanner

Scan QR codes and physical documents with PDF417 or MRZ encoded data

PDF417 encoded barcodes are commonly found on physical identity and travel documents, such as driver's licenses, ID cards, boarding passes and secure access cards. MRZ encoded data is typically found on travel documents such as passports, refugee travel permits, and visas.

// SpruceKit Mobile SDK Scanner Types
let qrCodeScanner = QRCodeScanner(
                        title: "Scan QR Code",
                        subtitle: "Looking...",
                        onRead: scanningParams.onRead,
                        onCancel: onCancel,
                        // example font values
                        titleFont: .customFont(font: .inter, style: .bold, size: .h0),
                        subtitleFont: .customFont(font: .inter, style: .bold, size: .h4),
                        cancelButtonFont: .customFont(font: .inter, style: .medium, size: .h3),
                        readerColor: .white
                    )

let pdf417Scanner = PDF417Scanner(
                        title: "Scan Barcode",
                        subtitle: "Looking...",
                        onRead: scanningParams.onRead,
                        onCancel: onCancel,
                        // example font values
                        titleFont: .customFont(font: .inter, style: .bold, size: .h0),
                        subtitleFont: .customFont(font: .inter, style: .bold, size: .h4),
                        cancelButtonFont: .customFont(font: .inter, style: .medium, size: .h3),
                        readerColor: .white
                    )
                    
let mrzScanner = MRZScanner(
                        title: "Scan MRZ",
                        subtitle: "Looking...",
                        onRead: scanningParams.onRead,
                        onCancel: onCancel,
                        // example font values
                        titleFont: .customFont(font: .inter, style: .bold, size: .h0),
                        subtitleFont: .customFont(font: .inter, style: .bold, size: .h4),
                        cancelButtonFont: .customFont(font: .inter, style: .medium, size: .h3),
                        readerColor: .white
                    )

Last updated

Was this helpful?