The included specification for Avery 8600 labels produces output which exceeds the height of the page. I don't use these labels, so I need someone to confirm the dimensions for me. Thanks!

Comments

martinst’s picture

Not answering your problem directly but one of my suggestions would be to remove the label definitions from the code and read them from a file or files.
The glabels program has a template directory that contains a number of xml files that describe many of the standard labels. The format is simple and would be easy to insert into your module. If you could read in all the files in a directory it would allow users to easily add a new file with a new page/label definition.

An example of the format is below

 <!-- =================================================================== -->
  <!-- Avery 7161 family: Mailing labels, 63.5 x 46.6 mm, 18 per sheet     -->
  <!-- =================================================================== -->
  <Template brand="Avery" part="7161" size="A4" _description="Mailing labels">
    <Meta category="label"/>
    <Meta category="mail"/>
    <Label-rectangle id="0" width="180.2" height="132.6" round="7">
      <Markup-margin size="5"/>
      <Layout nx="3" ny="6" x0="21" y0="23" dx="186.9" dy="132.5"/>
    </Label-rectangle>
  </Template>
ezheidtmann’s picture

Cool! Are you handy with PHP? Can you write and/or find some parsing code?

ezheidtmann’s picture

Thanks for the tip, martin. I've split that into its own issue: #1353572: Add support for glabels-style template definitions