Datamatrix on existing PDF

How can I add datamatrix on already generated large PDF file in planet press? As of now I could achive results using the steps mentioned below:
-datamapper from generated PDF
-created datamatrix fields
-use input datamapper as template design
-placed datamatrix placeholders in template
-Job preset
-Output Preset
Using this I got the output but to generate result for almost 3000 pages PDF it has taken more than an hour. So how can I optimize this process and get results in less time.

I’ve a couple of questions I want to share with you:

  1. Which application are you using for generating the PDF output? Are you executing a print job via the OL Connect Designer application for this or are you generating the PDF output by the OL Connect Workflow application (as in: by executing a Workflow process)?
  2. In case of the later: Which Workflow plugins (tasks) have you applied? Have you applied the Execute Data Mapping, Create Print Content, Create Job and Create Output tasks or the All in One task?

When you’re generating the output by executing a Workflow process and you aren’t using the All in One task for this I would recommend you to replace the separated OL Connect tasks with the All in One task as this task makes creating print content easier and, more importantly, faster*.

Tip: Please check this help webpage or more information about the All in One task.

  1. We are using OL Connect workflow application and executing the workflow process.
    2.I have used Execute Data mapping, create print content, create job and create output plug-ins not All in one task.

we have tried using All in one plug-in , still the output generation takes more than an hour. @Marten, any other suggestions?

I ran a similar process on my machine.

My original PDF contains about 400 multi-page invoices (for a total of 3800 pages) and my process is adding a very simple DataMatrix barcode to the first page of each document. The datamatrix barcode contains the Postal address that I extract as a single HTML field.

The All-in-One took about 2 minutes to produce the resulting file.
With 4000 invoices (almost 40,000 pages), the All-In-One took around 20 minutes.

My CPU is a Ryzen 5 with 32GBs of RAM, hardly a powerhouse!

So is your process, your datamapper or your template doing something else than just adding a data matrix barcode to the PDF?

1 Like

No, we are just adding datamatrix on the already generated PDF. Our server has RAM of what could be the reason of taking these much time?
In datamapper we are extracting data from the same PDF and in the template we are just binding the datamatrix.

There are many possible reasons:

  • The original PDF could be very large and unoptimized, requiring a lot of memory to process
  • The number of Merge Engines (or their memory configuration) is not optimal
  • The CPU isn’t up to par
  • The hard drive is slow
  • Anti-virus software interfering with the process
  • etc.

It’s very difficult to analyze these kinds of issues through a forum like this one. You should open a ticket with our Support team so they can dig through the logs and find a few clues.

@djinkal content creation can be expensive, and it sounds like you don’t really need it.

You can bypass content creation and still add your barcode:

  • Don’t use the Create Print Content task (this would normally produce a content set)
  • Use ‘Bypass content creation’ in the Execute Data Mapping task (this will produce the content set instead)
  • Use ‘Additional content’ with a barcode in the preset for the Create Output task

I assume the variable data for the barcode would need to be added to metadata somehow. Sorry for being a bit vague about that part, I’m not that familiar with Workflow, metadata, and output presets.

1 Like

@Sander , as you have suggested about the option of ‘Bypass content creation’, will it create layers of PDF as in Base Pdf and on that there will be a layer of PDF with Data matrix ? And how it will affect the size of the PDF and Printing of the PDF?

@djinkal ‘additional content’ adds content (the barcode) directly to the original PDF, it should be quite efficient. I don’t expect there to be an issue with output size, but this is not really my area. I’m working on content creation, which is the part you would be skipping.

@djinkal: using @Sander’s previous instructions, I shaved another 25% off the production time (the job took around 15 minutes for about 40000 pages).

In my case, my input PDF was not optimized at all, so the resulting PDF was actually five times smaller than the original one, but that’s not a guarantee that you`ll get the same results in terms of size.