Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /var/www/html/php_jh_pdf-1.2.0/class.jh_pdf_barcode-1.2.0.inc.php
php_jh_pdf -

jh_pdf_barcode

jh_pdf_base
   |
  +-- jh_pdf_barcode

Class for barcode rendering

 

public class jh_pdf_barcode extends jh_pdf_base

Class for barcode rendering
Renders barcodes directly onto a PDF document using lineswith different widths.

 
Direct known subclasses: jh_pdf_barcode_jhpci

Methods inherited from jh_pdf_base

setcolor

Public Method Summary

void

jh_pdf_barcode( &$pdf)

Constructor
void

settext(string $text)

Set the text
void

settype(string $type)

Set the type
void

putcode(float $xpos, float $ypos, float $width, float $height)

Output the barcode

Private Method Summary

void

char2code39(string $char)

Convert a character into its code 39 barcode representation
void

char2code25i(string $char)

Convert a character into its code 25 interleaved barcode representation
void

char2code128aindex( $char)

Warning: documentation is missing.
void

char2code128bindex( $char)

Warning: documentation is missing.
void

char2code128cindex( $char)

Warning: documentation is missing.

Private Field Summary

unknown

$pdf

unknown

$text

unknown

$type

unknown

$asciicode

array

$code128table

Public Method Details

jh_pdf_barcode

public void jh_pdf_barcode( &$pdf )

  Constructor

Parameter
&$pdf
Warning: documentation is missing.
Returns void


settext

public void settext( string $text )

  Set the text
Sets the text which should later be output as barcode.

Parameter
string $text
The string to output as barcode
Returns void


settype

public void settype( string $type )

  Set the type
Sets the barcode type that will be output. Currentlysupported are code 3 of 9 ("39"), code 2 of 5 interleaved ("25i")and code 128a/b/c ("128a", "128b", "128c")

Parameter
string $type
The barcode type
Returns void


putcode

public void putcode( float $xpos, float $ypos, float $width, float $height )

  Output the barcode
Puts the barcode specified via settext() onto the PDF document.The barcode is scaled to fit into the specified space.

Parameter
float $xpos
The left starting position
float $ypos
The top starting position
float $width
The width of the barcode
float $height
The height of the barcode
Returns void


Private Method Details

char2code39

private void char2code39( string $char )

  Convert a character into its code 39 barcode representation
Converts a character into a string consisting of 0s and 1srepresenting its code 39 representation in narrow (0) and wide (1)bars.

Parameter
string $char
character to be converted
Returns void


char2code25i

private void char2code25i( string $char )

  Convert a character into its code 25 interleaved barcode representation
Converts a character into a string consisting of 0s and 1srepresenting its code 25 interleaved representation in narrow (0) andwide (1)bars.

Parameter
string $char
character to be converted
Returns void


char2code128aindex

private void char2code128aindex( $char )

 

Warning: documentation is missing.

Parameter
$char
Warning: documentation is missing.
Returns void


char2code128bindex

private void char2code128bindex( $char )

 

Warning: documentation is missing.

Parameter
$char
Warning: documentation is missing.
Returns void


char2code128cindex

private void char2code128cindex( $char )

 

Warning: documentation is missing.

Parameter
$char
Warning: documentation is missing.
Returns void


Private Field Details

$pdf

private unknown $pdf

>><<



$text

private unknown $text

>><<



$type

private unknown $type

>><<



$asciicode

private unknown $asciicode

>><<



$code128table

private array $code128table

>>array( // 0-4 '212222','222122','222221','121223','121322', // 5-9 '131222','122213','122312','132212','221213', // 10-14 '221312','231212','112232','122132','122231', // 15-19 '113222','123122','123221','223211','221132', // 20-24 '221231','213212','223112','312131','311222', // 25-29 '321122','321221','312212','322112','322211', // 30-34 '212123','212321','232121','111323','131123', // 35-39 '131321','112313','132113','132311','211313', // 40-44 '231113','231311','112133','112331','132131', // 45-49 '113123','113321','133121','313121','211331', // 50-54 '231131','213113','213311','213131','311123', // 55-59 '311321','331121','312113','312311','332111', // 60-64 '314111','221411','431111','111224','111422', // 65-69 '121124','121421','141122','141221','112214', // 70-74 '112412','122114','122411','142112','142211', // 75-79 '241211','221114','413111','241112','134111', // 80-84 '111242','121142','121241','114212','124112', // 85-89 '124211','411212','421112','421211','212141', // 90-94 '214121','412121','111143','111341','131141', // 95-99 '114113','114311','411113','411311','113141', // 100-104 '114131','311141','411131','211412','211214', // 105-106 '211232','2331112' )<<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta