Jump to content
You must now use your email address to sign in [click for more info] ×

Designing labels: How to auto-generate numbers (Serializing).


Recommended Posts

I am producing Raffle Tickets for clubs. There are 5 tickets on an A4 page and each ticket is sequentially numbered, with the number being shown twice - once on the ticket and once on the ticket tab. The numbering sequence in this case starts at 2021-001.

Is there a way to have the numbering automatically insert and advance in the two fields on each ticket, and continue on as many pages as needed?

At the moment I dublicate each page of 5 tickets and manually increase the number.

Thanks,

Ben

Link to comment
Share on other sites

Should be easy to do with Publisher's Data Merge function and an xlsx file containing all the numbers.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

You need the Data Merge function but that is only available in Affinity Publisher

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

You can create a single label in Publisher and use the page-number feature on that. Change their style to one with leading zeroes. Create as many pages as you need labels.

When printing, use the N-up feature in order to print multiple pages onto one page. You might have to adjust the original label's size so it includes the margins needed for getting placed correctly onto pre-cut label printing papers.

»A designer's job is to improve the general quality of life. In fact, it's the only reason for our existence.«
Paul Rand (1914-1996)

Link to comment
Share on other sites

1 hour ago, Andy05 said:

When printing, use the N-up feature in order to print multiple pages onto one page.

Or you can work with nested artboards, sharing an afdesign document between Designer and Publisher for whichever specific tools you need.
Similar to what I've demoed here:

 

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

14 minutes ago, loukash said:

Or you can work with nested artboards,

True, but it might get a bit confusing, if you try that with 100 or 1000 labels. 

»A designer's job is to improve the general quality of life. In fact, it's the only reason for our existence.«
Paul Rand (1914-1996)

Link to comment
Share on other sites

10 hours ago, MojoTojo said:

I'm designing multiple labels which we will print on a letter sized paper and cut up. One paper will have around 30 or so labels and each label needs to have a unique number serialized from 00001 and onward.

Without Publisher and it's data merge, one would have to export the labels doc in an outside of Affinity editable format (as SVG XML text format), where each label needs to have some pseudo placeholder text for the number then (as a unique layer name/id). So the labels inside the SVG file could be edited/altered/manipulated by some script or little program then.

One would read in the SVG file, inititialize a counter variable for incrementation accordingly and iterate (with a for loop etc.) over the placeholder text occurences, where each placeholder occurence would be replaced by the incremented counter variable (with left padded zeros) as text.

### --- python sample for counter & autoincrement ---

def counter(start, interval):
    count = start
    while True:
        yield count
        count += interval

count = counter(start=1, interval=1)

def autoIncrement():
    return str(count.next()).zfill(5)
  
### -------- test increment --------

>> print autoIncrement()
00001
>> print autoIncrement()
00002
>> print autoIncrement()
00003
>> print autoIncrement()
00004
>> ...

Afterwards when the SVG file(s) have been altered you would reopen them in Affinity, check and print them.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

If you're on macOS I can drop you an AppleScript that will generate a .csv for the ticket numbers (any starting number, any number of tickets) which could be used as the basis of a data merge.

Affinity Photo 2.0.3,  Affinity Designer 2.0.3, Affinity Publisher 2.0.3, Mac OSX 13, 2018 MacBook Pro 15" Intel.

Link to comment
Share on other sites

On 4/18/2021 at 11:06 AM, walt.farrell said:

Should be easy to do with Publisher's Data Merge function and an xlsx file containing all the numbers.

I thought of that, but seems to be just as much work as individually numbering.

21 hours ago, Andy05 said:

You can create a single label in Publisher and use the page-number feature on that. Change their style to one with leading zeroes. Create as many pages as you need labels.

When printing, use the N-up feature in order to print multiple pages onto one page. You might have to adjust the original label's size so it includes the margins needed for getting placed correctly onto pre-cut label printing papers.

I didn't think of that, but have actually used this method for printing numbered labels with another program.
Will give that a fly in Publisher.

Thanks.

Link to comment
Share on other sites

  • 9 months later...

Hello @bananafrenchtoast and welcome to the forums.

AD stand here for Affinity Designer. But back to your question,

There are many videos on Youtube that describe the data merge function of Affinity Publisher in detail. A very detailed video is this one:

 

 

AMD Ryzen 7 5700X | INTEL Arc A770 LE 16 GB  | 32 GB DDR4 3200MHz | Windows 11 Pro 23H2 (22631.3296)
AMD A10-9600P | dGPU R7 M340 (2 GB)  | 8 GB DDR4 2133 MHz | Windows 10 Home 22H2 (1945.3803) 

Affinity Suite V 2.4 & Beta 2.(latest)
Better translations with: https://www.deepl.com/translator  
Interested in a robust (selfhosted) PDF Solution? Have a look at Stirling PDF

Life is too short to have meaningless discussions!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.