14.2 GET_CODE128_SVG Function
This function generates a Code 128 barcode, configured according to the specified options, and returns a CLOB in SVG format.
Syntax
APEX_BARCODE.GET_CODE128_SVG (
p_value IN VARCHAR2,
p_size IN NUMBER DEFAULT c_default_size,
p_foreground_color IN VARCHAR2 DEFAULT c_default_foreground_color,
p_background_color IN VARCHAR2 DEFAULT NULL )
RETURN CLOB;
Parameters
Parameter | Description |
---|---|
p_value |
Value to be encoded into the Code 128 barcode. |
p_size |
Size of the Code 128 barcode (in pixels). Default 256px. |
p_foreground_color |
Foreground color. Must be in hex code. Default #000000 .
|
p_background_color |
Background color. Must be in hex code. Default null (transparent). |
Returns
The SVG value of the Code 128 barcode.
Example
The following example generates an SVG Code 128-type barcode with specified foreground color and background color.
DECLARE
l_output clob;
BEGIN
l_output := apex_barcode.get_code128_svg(
p_value => 'apex.oracle.com',
p_foreground_color => '#4cd964',
p_background_color => '#c7c7cc' );
sys.dbms_outout.put_line( l_output );
END;
Parent topic: APEX_BARCODE