Barcode with inceasing number that applies to odd pages only

Post Reply
zurek
Newbie
Posts: 4
Joined: Thu May 26, 2022 10:23 am

Barcode with inceasing number that applies to odd pages only

Post by zurek »

hi guys,

i'm looking for a way to add barcodes on all odd pages that (on top of other values) has an inceasing value n+1, starting with 1.
result i'm aiming for:
page 1 = barcode xxxxx0001
page 2 = nothing
page 3 = barcode xxxxx0002
page 4 = nothing
page 5 = barcode xxxxx0003
page 6 = nothing
page 7 = barcode xxxxx0004
page 8 = nothing
and so on

any idea how to achieve that?
this will be used as pitstop element in switch with mixture of: switch variables + fixed numbers + pitstop variables like %Page Number%
loicaigon
Advanced member
Posts: 373
Joined: Wed Jul 10, 2013 10:22 am

Re: Barcode with inceasing number that applies to odd pages only

Post by loicaigon »

Hi,

A possible option would be to create a dummy document (you could insert a 1 page blank PDF document). Then set page boxes and add pages in a way that you end up with the reference document page count /2.
For ex: if the job pdf is 48pages, you create a 24 pages pdf.
Then you add barcodes to this 24 pages document. So you have barcodes from page 1 to 24 using %Page Number% as a variable.
Next, you simply select odd pages and add 1 blank pages after each odd pages.
When completed, you can overlay that dummy PDF to your job PDF and have the barcodes on the odd pages with a sequential value.
Note that yes you need a switch flow.

If someone has a better option, would love to hear it.
zurek
Newbie
Posts: 4
Joined: Thu May 26, 2022 10:23 am

Re: Barcode with inceasing number that applies to odd pages only

Post by zurek »

Hi Loic,
The way i've figured this out after all:
QI splits pdf into two pdfs with only odd and only even pages, I run action on odd pages and then Callas is splitting pdf into separate pages named <firstpage>0 for odd and <fistpage>1 for even. Merge PDF is merging them in alphabetical order so final file is same as input file.
Attachments
image (1).png
image (1).png (27.67 KiB) Viewed 234 times
Post Reply