Commit b6b1b5c7 authored by Skia's avatar Skia

Hotfix: eticket pdf rending

parent 3ad58b26
......@@ -175,7 +175,7 @@ class PDF_C128AObject extends PDF_BarcodeObject
function PDF_C128AObject($Width, $Height, $Style, $Value, $FPDF, $x=0, $y=0)
{
$this->PDF_BarcodeObject($Width, $Height, $Style, &$FPDF, $x, $y);
$this->PDF_BarcodeObject($Width, $Height, $Style, $FPDF, $x, $y);
$this->mValue = $Value;
$this->mChars = " !\"#$%&'()*+-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_";
$this->mCharSet = array ("212222", /* 00 */
......
......@@ -86,7 +86,7 @@ class eticket_pdf extends FPDF
{
/* We try to use the same informations as carteae.inc.php */
$code = strtoupper ($code);
$barcode = new PDF_C128AObject(67, 25, BCS_ALIGN_CENTER | BCS_DRAW_TEXT, $code, &$this, $this->GetX (), $this->GetY ());
$barcode = new PDF_C128AObject(67, 25, BCS_ALIGN_CENTER | BCS_DRAW_TEXT, $code, $this, $this->GetX (), $this->GetY ());
if (!$barcode->DrawObject (0.25))
echo "Error occured with barcode : ".$barcode->GetError ()."\n";
}
......@@ -119,4 +119,4 @@ class eticket_pdf extends FPDF
}
}
?>
\ No newline at end of file
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment