Raffle Ticket Generator
Operator: Abdulla Al Fahad. How tools are built and checked
A raffle runs smoothly only when the number on each ticket matches the number on its stub, and when the sheet can be cut along clear marks without trimming a number in half. Set the first and last number, the digits to pad to and an optional prefix, and every ticket and stub is numbered, laid out in two columns and cut-marked.
Event text, prizes, the price and a logo go on the main part; name and phone lines go on both the ticket and the stub, so the buyer's details survive on the stub that stays in the book. The draw list CSV has one row per number with blank columns for buyer, contact, payment and prize.
Key features
- Any range from 0 to 999,999,999, up to 5,000 tickets, with 0 to 9 digits of zero padding and a prefix of up to 12 characters
- 8 tickets per page (2 by 4) or 10 (2 by 5) on A4 or US Letter, with the stub on the left or the right
- The number printed on the main part and on the stub, so a drawn stub can be matched to a ticket held by the winner
- Title, date-and-place line, prize lines, price, accent colour and an optional PNG or JPG logo
- A dashed perforation line, a thin cut outline and cut marks outside the grid, a page-by-page preview that draws exactly what the PDF contains, and a draw-list CSV
How the sheet is laid out and numbered
The sheet has a 12 mm margin on every side. The two columns share the remaining width equally and the rows share the remaining height, so a ticket is 93.0 by 68.3 mm at 8 per page on A4 and 93.0 by 54.6 mm at 10, and 95.95 by 63.85 mm or 95.95 by 51.08 mm on Letter. The stub is 27 percent of the ticket width.
Typical uses
- A school fair sells 250 tickets on two colours of card. It makes one run of 1 to 125 with prefix A- for the blue card and a second run of 1 to 125 with prefix B- for the yellow, so a stub reads A-0042 or B-0042 and the draw list files stay separate.
- A sports club prints 8 per page on US Letter for 400 tickets, which is 50 pages, and adds the club crest as a PNG so it sits left of the title.
Building one
- Enter the first and last number, the digits and any prefix; the line under the fields shows the ticket count and the first label.
- Fill in the title, the date and place, the prizes and the price, and add a logo if you have one.
- Choose paper, tickets per page and the stub side, then page through the preview to check that the text fits.
- Download the tickets PDF and the draw list CSV.
Example
Numbers and sheet
First 1, last 100, digits 4, no prefix, 10 per page, A4, stub on the rightWhat you get
A 10-page PDF. Each ticket is 93.0 × 54.6 mm with a 25 mm stub; the first prints No. 0001 on the main part and 0001 on the stub. The draw list has 100 rows under the headings Ticket, Number, Buyer name, Phone or email, Paid and Prize won.Things to check before you rely on it
The dashed line only marks where to perforate or fold. It does not cut anything, so use pre-perforated card or run a perforating wheel along the line before the tickets are sold.
Helvetica limits the text to the Windows-1252 set: other characters become the nearest plain letter or a question mark, and each replaced character is listed under the preview. Line breaks survive only in the prize details; in the title, the date line, the price and the prefix they become spaces.
Keep the prefix short, because the stub number has to fit a stub about 25 mm wide. The number starts at 17 pt bold and shrinks in half-point steps to fit: 0001 and A-0042 print at the full 17 pt, a nine-digit 000000001 drops to 11 pt, and RAFFLE-0042 to 8.5 pt on A4 (9 pt on Letter). Shrinking stops at 8 pt, so a label like RAFFLE2026-000123, about 28 mm wide even at 8 pt, runs past the stub and across the perforation line, and no warning is shown for it.
- Prize lines are cut after four wrapped lines. When the details do not fit, a notice reads "The prize details did not fit and was cut: shorten it or choose 8 per page." Switching to 8 per page makes each ticket 13.7 mm taller on A4.
Common errors and how to fix them
- "That is 6,000 tickets. The limit is 5,000 (625 pages at 8 per page)."
- Split the range into runs of at most 5,000, for example 1 to 5000 and 5001 to 6000, and print each with its own file name.
- "The last number must not be smaller than the first."
- Swap the two fields, or check that the first number was not typed with an extra digit.
Numbering, padding and the draw list
A label is the prefix, then the number padded with leading zeros to the digit count; a number longer than the digit count simply keeps its extra digits. With prefix A-, digits 3 and the range 7 to 9 the labels are A-007, A-008 and A-009, and the CSV carries the same labels in its Ticket column and the plain number in its Number column.
Frequently asked questions
Can two stubs be printed for the same number, one for the seller and one for the draw drum?
Not on one ticket: each has a single stub. Print the range twice and cut the second copy down to its stubs, or keep the first stub and use the main part of the ticket as the second.