PHP Classes

Not great but still works

Recommend this page to a friend!

      Labels  >  All threads  >  Not great but still works  >  (Un) Subscribe thread alerts  
Subject:Not great but still works
Summary:Needed some tweaking but I got my sheet of labels
Messages:1
Author:rob webster
Date:2022-12-20 17:30:58
 

  1. Not great but still works   Reply   Report abuse  
Picture of rob webster rob webster - 2022-12-20 17:30:58
labels.php seems to be set up for Avery L7163 (14 labels per A4 sheet). For other layouts you need to enter all the measurements.

sample.php works if "format" is changed from PDF to WORD (outputs .doc, not docx). If you need PDF then save as PDF from the Word doc worked OK.
Label contents (address details) are hard-coded into sample.php

I'd written something more versatile using the FPDF library (uses PHP to create PDFs) a few years ago but it relied on an obsolete version of PHP. I see FPDF has been updated now so I need to find my old code but that too may have needed PHP3.