|
wxMaxima
|
Labels. More...
Labels.
This example demonstrates the PDF label printing.
The code is based on the PHP script PDF_Label of Laurent PASSEBECQ.
Following are the comments from the original PHP code:
//////////////////////////////////////////////////// // PDF_Label // // Class to print labels in Avery or custom formats // // Copyright (C) 2003 Laurent PASSEBECQ (LPA) // Based on code by Steve Dillon : steve.nosp@m.d@ma.nosp@m.d.sci.nosp@m.enti.nosp@m.st.co.nosp@m.m // //----------------------------------------------------------------— // VERSIONS : // 1.0 : Initial release // 1.1 : + : Added unit in the constructor // + : Now Positions start @ (1,1).. then the first image @top-left of a page is (1,1) // + : Added in the description of a label : // font-size : defaut char size (can be changed by calling Set_Char_Size(xx); // paper-size : Size of the paper for this sheet (thanx to Al Canton) // metric : type of unit used in this description // You can define your label properties in inches by setting metric to 'in' // and printing in millimiter by setting unit to 'mm' in constructor. // Added some labels : // 5160, 5161, 5162, 5163,5164 : thanx to Al Canton : acant.nosp@m.on@a.nosp@m.dams-.nosp@m.blak.nosp@m.e.com // 8600 : thanx to Kunal Walia : kunal.nosp@m.@u.w.nosp@m.ashin.nosp@m.gton.nosp@m..edu // + : Added 3mm to the position of labels to avoid errors // 1.2 : + : Added Set_Font_Name method // = : Bug of positioning // = : Set_Font_Size modified -> Now, just modify the size of the font // = : Set_Char_Size renamed to Set_Font_Size ////////////////////////////////////////////////////