I am trying to add metadata for creation of datamatrix on PDF, when I am using following expression
${document.metadata.A} ${document.metadata.B} ${sheet.sequence.job,000000} ${sheet.sequence.set,00} ${set.count.sheets,00} ${document.metadata.F}${document.metadata.G} ${(document.metadata.change_flag ==1 ? 3 : (sheet.sequence.set === set.count.sheets ? 1 : 0))} ${sheet.sequence.set === set.count.sheets ? 1 : 0} ${document.metadata.J} ${document.metadata.K}
set.count.sheets is giving me 02 even of the document has single sheet.
The PDF has front page as well as back page design.
Also I am combining the document on basis of certain parameters.
I want to show in datamatrix that the set has suppose 5 sheet and current sheet being printed is 1/2/3/4/5 sheet.
Thank you for answering my query. The thing is I do combining for this single sheet document , so one set can have multiple document.
I want to define the current sheet being printed is what number of total sheet in that set. hence I am using set.count.sheets.
If I use document.count.sheets then it will give me Total count of that document only.
@Marten , I need to complete this task and this is the only issue that has kept it on hold, Please let me know how I can make it work. datamatrix should be on front side of the sheet only. For that I have already added the condition.
For (1) you can use the output variable ${sheet.sequence.set}, which returns the sheet number within the document set, and for (2) you can use the output variable ${set.count.sheets}, which returns the total number of sheets in the document set. Please play around with this a bit and let us know if you were able to achieve the result you were looking for.
@Marten I have same formula applied for other template where it is working. At that time my document is simplex-like front side of sheet is printed and back is blank.The problem is with template as it is duplex , both side has designs. Planetpress is considering each as single sheet not as front and back of single sheet. Hence this is not working. Let me know What settings I need to do so that it works?
Also for this OL forum post, I would like to recommend you to submit a support ticket via our support portal. Because then someone from your local support team would be able to help you with the issue you’re currently facing and schedule a call with you, if necessary.