1549. Class

1549.1. Zend\Barcode\Renderer\Svg

Class for rendering the barcode as svg

1549.1.1. Methods

1549.1.1.1. setHeight

setHeight()

Set height of the result image

Parameters:null|integer
Throws ExceptionOutOfRangeException:
 
Return type:Svg

1549.1.1.2. getHeight

getHeight()

Get barcode height

Return type:int

1549.1.1.3. setWidth

setWidth()

Set barcode width

Parameters:mixed
Throws ExceptionOutOfRangeException:
 
Return type:self

1549.1.1.4. getWidth

getWidth()

Get barcode width

Return type:int

1549.1.1.5. setResource

setResource()

Set an image resource to draw the barcode inside

Parameters:DOMDocument
Return type:Svg

1549.1.1.6. initRenderer

initRenderer()

Initialize the image resource

Return type:void

1549.1.1.7. readRootElement

readRootElement()

1549.1.1.8. appendRootElement

appendRootElement()

Append a new DOMElement to the root element

Parameters:
  • string
  • array
  • string

1549.1.1.9. createElement

createElement()

Create DOMElement

Parameters:
  • string
  • array
  • string
Return type:

DOMElement

1549.1.1.10. checkSpecificParams

checkSpecificParams()

Check barcode parameters

Return type:void

1549.1.1.11. checkDimensions

checkDimensions()

Check barcode dimensions

Return type:void

1549.1.1.12. draw

draw()

Draw the barcode in the rendering resource

Return type:mixed

1549.1.1.13. render

render()

Draw and render the barcode with correct headers

Return type:mixed

1549.1.1.14. drawPolygon

drawPolygon()

Draw a polygon in the svg resource

Parameters:
  • array
  • integer
  • bool

1549.1.1.15. drawText

drawText()

Draw a polygon in the svg resource

Parameters:
  • string
  • float
  • array
  • string
  • integer
  • string
  • float