Jump to content

2D Barcode programming


Recommended Posts

I am trying to find the programming for a 2D barcode to pull random sheet counts. We have it working for jobs that have identical sheets counts (e.g. - pulls 2 sheets every time from the pdf file using starting digits of 02 in the 2D barcode). We now have a job where the sheet count ranges from 2 - 4 sheets and in random order - order such as 2-2-2-3-4-3-2-4-4-3.....so we are looking to program the 2d barcode to change based on sheet counts.
Link to comment
Share on other sites

You can get the number of pages in a record by calling FusionPro.Composition.totalPages. You can format it to two digits by using the FormatNumber function:

var pgs = FormatNumber('00', FusionPro.Composition.totalPages);
// Whatever barcode logic here

Link to comment
Share on other sites

You mention sheets, so I assume you're using imposition. Therefore, you probably want to do something similar to the QR barcode rule in this example:


return MakeQRBarcodeGraphic(FusionPro.Composition.impositionSheetNumber +
   (FusionPro.Composition.impositionSheetIsBack ? "b" : "f") + "/" +

The example in that other post also demonstrates how to use a custom imposition sheet background, which would be the logical place to put such a barcode.

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.

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.

  • Create New...