Jump to content

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

Desktop:  Windows 11 Home, version 22H2 (22621.1413) 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 
Laptop:  Windows 10 Home, version 21H2 (19044.2728) 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
        Affinity Photo 1.10.6 (.1665) and 2.0.4  and 2.1.0.1732 beta/ Affinity Designer 1.10.6 (.1665)  and 2.0.4  and 2.1.0.1732 beta / Affinity Publisher 1.10.6 (.1665)  and 2.0.4  and 2.1.0.1732 beta
iPad Pro M1, 12.9", iPadOS 16.3.1, Apple Pencil 2, Magic Keyboard

      Affinity Photo 1.10.7 and 2.0.4 and 2.1.0.1732 beta/ Affinity Designer 1.10.7 and 2.0.4 and 2.1.0.1732 beta/ Affinity Publisher 2.0.4 and 2.1.0.1732 beta

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:

 

MacBookPro9,1: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 9th: iPadOS 15.7.2 > 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.6 ◆ Affinity Photo 1.10.6 ◆ Affinity Publisher 1.10.6 ◆ OSX El Capitan
☛ Affinity V2 apps still not installed and thus momentary not in use under MacOS

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 | 32 GB DDR4 3200MHz | Windows 11 Pro (22621.1485)
Affinity Suite V2.0.4 & Beta 2.1.0.1736
Better translations with: https://www.deepl.com/translator  
SVG preview in Windows Explorer with "SVG-See  Download SVG-See

Impossible things are done immediately, miracles take a bit longer!

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...
 Share

×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | 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.