Zend_Barcode RenderersRenderers have some common options. These options can be set in four ways:
Example #1 Different ways to parameterize a renderer object
Common OptionsIn the following list, the values have no unit; we will use the term "unit." For example, the default value of the "thin bar" is "1 unit." The real units depend on the rendering support. The individual setters are obtained by uppercasing the initial letter of the option and prefixing the name with "set" (e.g. "barHeight" => "setBarHeight"). All options have a correspondant getter prefixed with "get" (e.g. "getBarHeight"). Available options are:
An additional getter exists: getType(). It returns the name of the renderer class without the namespace (e.g. Zend_Barcode_Renderer_Image returns "image"). Zend_Barcode_Renderer_ImageThe Image renderer will draw the instruction list of the barcode object in an image resource. The component requires the GD extension. The default width of a module is 1 pixel. Available option are:
Zend_Barcode_Renderer_PdfThe PDF renderer will draw the instruction list of the barcode object in a PDF document. The default width of a module is 0.5 point. There are no particular options for this renderer. Zend_Barcode_Renderer_SvgThe SVG renderer will draw the instruction list of the barcode object in a SVG document. The default width of a module is 1 pixel. Available option are:
|