How to add OMR depending on which page of a record it is?

Hello!

I want to add OMR’s to a Designer template which has a dynamic table, so each record might have a different amount of pages. The omr’s i require are made up of lines and I have made them as omr_1.png for the first pages and omr_2.png for all the other non-first pages.

I have considered making the image conditional, but the datamapper can’t contain info on the page count for the current record.

What would be the best way to go about it ? Is there a way to condition something based on page for the current record ?

You should add your OMR images through an Output Preset, not through the Designer.

Go to File > Print Presets > Output Creation Settings, create a new configuration and make sure to tick the Add additional content option. Then, specify which images you want to add. You can set a condition for both of them (page.nr==1 and page.nr!==1).

Create an Output Preset and select “Add additional Content” and click Next. In the Additional Images section, you can add the images you need and control them with conditions.

For instance, the first page condition would be:

page.nr == 1

For other pages:

page.nr !== 1

Alternatively, instead of using images, you could click on the Barcodes and OMR Marks tab and add your OMR marks and control them with conditions.

Ah, thank you for pointing out the Barcodes and OMR Marks tab.

Tried adding the marks as images - they showed up in the preview (of the output creation) but not in the generated pdf, while creating the marks in the specified tab showed up nicely both in the preview as well as in the generated pdf.