1544. Class

1544.1. Zend\Barcode\Renderer\Pdf

Class for rendering the barcode in PDF resource

1544.1.1. Methods

1544.1.1.1. setResource

setResource()

Set a PDF resource to draw the barcode inside

Parameters:
  • PdfDocument –
  • integer –
Return type:

Pdf

1544.1.1.2. checkSpecificParams

checkSpecificParams()

Check renderer parameters

Return type:void

1544.1.1.3. render

render()

Draw the barcode in the PDF, send headers and the PDF

Return type:mixed

1544.1.1.4. initRenderer

initRenderer()

Initialize the PDF resource

Return type:void

1544.1.1.5. drawPolygon

drawPolygon()

Draw a polygon in the rendering resource

Parameters:
  • array –
  • integer –
  • bool –

1544.1.1.6. drawText

drawText()

Draw a polygon in the rendering resource

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

1544.1.1.7. widthForStringUsingFontSize

widthForStringUsingFontSize()

Calculate the width of a string: in case of using alignment parameter in drawText

Parameters:
  • string –
  • Font –
  • float –
Return type:

float