|
|
File: /var/www/html/php_jh_pdf-1.1.0/class.jh_pdf_barcode-1.1.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 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.
|
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 |
|
|
Private Field Details |
$pdf |
private unknown $pdf
>> <<
|
|
$text |
private unknown $text
>> <<
|
|
$type |
private unknown $type
>> <<
|
|
|
|
|
PHPDoc 1.0beta |