mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-28 14:04:19 -04:00
Add SVG support
This commit is contained in:
parent
0feb6152d6
commit
b151e526f4
5 changed files with 738 additions and 6 deletions
|
@ -124,6 +124,7 @@ int png_handle(struct zint_symbol *symbol, int rotate_angle);
|
|||
#endif
|
||||
|
||||
extern int ps_plot(struct zint_symbol *symbol);
|
||||
extern int svg_plot(struct zint_symbol *symbol);
|
||||
|
||||
void error_tag(char error_string[], int error_number)
|
||||
{
|
||||
|
@ -515,9 +516,13 @@ int ZBarcode_Print(struct zint_symbol *symbol)
|
|||
if(!(strcmp(output, "EPS"))) {
|
||||
error_number = ps_plot(symbol);
|
||||
} else {
|
||||
strcpy(symbol->errtxt, "Unknown output format [Z20]");
|
||||
error_tag(symbol->errtxt, ERROR_INVALID_OPTION);
|
||||
return ERROR_INVALID_OPTION;
|
||||
if(!(strcmp(output, "SVG"))) {
|
||||
error_number = svg_plot(symbol);
|
||||
} else {
|
||||
strcpy(symbol->errtxt, "Unknown output format [Z20]");
|
||||
error_tag(symbol->errtxt, ERROR_INVALID_OPTION);
|
||||
return ERROR_INVALID_OPTION;
|
||||
}
|
||||
}
|
||||
#ifndef NO_PNG
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue