| 1 | #!/bin/perl | ||
| 2 | |||
| 3 | use PDF::Create; | ||
| 4 | use PDF::Labels; | ||
| 5 | |||
| 6 | $pdf = new PDF::Labels( | ||
| 7 | $PDF::Labels::PageFormats[2], | ||
| 8 | filename=>'labels.pdf', | ||
| 9 | Author=>'PDF Labelmaker', | ||
| 10 | Title=>'My Labels' | ||
| 11 | ); | ||
| 12 | |||
| 13 | $pdf->setlabel(35); # Start with label 5 on first page | ||
| 14 | |||
| 15 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 16 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 17 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 18 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 19 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 20 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 21 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 22 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 23 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 24 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 25 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 26 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 27 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 28 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 29 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 30 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 31 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 32 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 33 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 34 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 35 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 36 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 37 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 38 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 39 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 40 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 41 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 42 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 43 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 44 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 45 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 46 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 47 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 48 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 49 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 50 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 51 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 52 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 53 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 54 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 55 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 56 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 57 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 58 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 59 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 60 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 61 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 62 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 63 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 64 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 65 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 66 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 67 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 68 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 69 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 70 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 71 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 72 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 73 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 74 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 75 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 76 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 77 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 78 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 79 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 80 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 81 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 82 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 83 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 84 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 85 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 86 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 87 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 88 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 89 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 90 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 91 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 92 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 93 | $pdf->label('John Doe', '1234 Some Street', 'Anytown, ID', '12345'); | ||
| 94 | $pdf->label('Jane Doe', '5493 Other Drive', 'Nowhere, CA', '92213'); | ||
| 95 | $pdf->label('Bob Smith', '392 Cedar Lane', 'Deep Shit, AR', '72134'); | ||
| 96 | |||
| 97 | $pdf->close(); |