Hello
I have almost completed the code for pdf_labels. However, I am stuck on the fronts. First, the format is not exactly as it should be. Please follow the following URL to see what I am talking about. http://www.weststreet.org.uk/MembersDBLive/reports/labelTest.php As you can see, it starts with label 5 instead of 1, then labels 1 -4 are "doubled up" on labels 21 - 24. Below is the code that the labels currently uses
function PDF_Label($format, $unit='mm', $posX=1, $posY=1) {
if (is_array($format)) {
// Custom format
$Tformat = $format;
} else {
// Built-in format
if (!isset($this->_Avery_Labels[$format]))
$this->Error('Unknown label format: '.$format);
$Tformat = $this->_Avery_Labels[$format];
}
parent::FPDF('L', $unit, $Tformat['paper-size']);
$this->_Metric_Doc = $unit;
$this->_Set_Format($Tformat);
$this->SetFont('Arial');
$this->SetMargins(0,0);
$this->SetAutoPageBreak(false);
$this->_COUNTX = $posX-2;
$this->_COUNTY = $posY-1;
}
Please help