wzMRTD

A free Electronic Passport software library

Documentation

wzMRTD exported functions

Documentation coming soon


wzMRTD internal functions

Documentation coming soon


wzMRTD command line tool

wzMRTD library (wzmrtd.dll on Windows) comes with a command-line tool (wzmrtd.exe on Windows).

Using this tool you can read your passport and save its content either to a single XML file (with pictures embedded using base64 encoding, or detached in external files), or to numerous raw files (one file per DG).

XML file (with detached pictures) can later be displayed in wzPASS.

Here's wzMRTD command line help :

Usage: wzmrtd [INPUT] [-z MRZ] [-x FILE] [-d DIRECTORY] [OPTIONS]

Input specifier:
  -r #i           use PC/SC reader number i to read the passport
  -r "NAME"       use PC/SC reader named NAME to read the passport
  -r SPX [DEVICE] use Pro-Active SpringProx reader to read the passport
                  if DEVICE is specified, it is specified to SpringProx
                  library as the communication device to be used

MRZ:
  -z "MRZ"        second line of the machine readable zone of the
                  document. It is needed for basic authentication.

Output specifier:
  -f FILE         passport content is saved in one single XML file
                  XML output options are enabled
  -t DIRECTORY    passport content is saved as binary files (one file
                  for each DG)
                  Raw output options are enabled

XML output options:
  -xsi            Create separe files for images, instead of putting
                  them into the XML file itself

Raw output options:
  -pfx NAME       Use NAME as prefix for naming the output files

Miscellaneous options:
  -y              Overwrite already existing files
  -s(ilent)       Suppress startup banner and any kind of output
  -v(erbose)      Show details on operation being performed
  -d(ebug)        Enable debug output (to stderr)
  -Version        Show version, and exits right now