Add Reader Initialisation mode

This commit is contained in:
hooper114 2009-12-04 23:18:48 +00:00
parent 1ac256c223
commit e3e9c67f93
5 changed files with 50 additions and 7 deletions

View file

@ -577,6 +577,13 @@ int maxicode(struct zint_symbol *symbol, unsigned char source[], int length)
}
memset(maxi_codeword, 0, sizeof(maxi_codeword));
if(symbol->output_options & READER_INIT) { mode = 6; }
if((mode == 6) && (symbol->input_mode == GS1_MODE)) {
strcpy(symbol->errtxt, "Cannot encode GS1 and Reader Initialisation at the same time");
return ERROR_INVALID_OPTION;
}
if(mode == -1) { /* If mode is unspecified */
lp = strlen(symbol->primary);
if(lp == 0) {