0

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

2
Contributors
1
Reply
7
Views
5 Years
Discussion Span
Last Post by LastMitch
0

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.

The code you provided is incomplete. You need to used the add-on:

http://www.fpdf.de/downloads/addons/29/

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.