Skip to main content
PasGlop
Inspiring
February 8, 2018
Question

Datamatrix + Reader

  • February 8, 2018
  • 3 replies
  • 942 views

I found a PDF document containing a really complex code (at least from my point of view) where all the fields contains both "OnFocus" and OnBlur" the following action:

If(handleEvent!=undefined)handleEvent(event);

And the rest of the code is placed on a document level (more or less 15'000 lignes).

One part of te code is producing a readable barcode into Acrobat Reader. But I always thought that wasn't possible (grey rectangle on Reader, but readable only with DC).

Due to the complexity of the code, I am totally unable to understand how everything works.

As only the part regarding the codebarre routine interest me, is there, to your knowledge, an example of code freely available (even pay) able to produce a datamatrix (2d) readable and printable with Reader ?

Thanks in advance for your advices.

This topic has been closed for replies.

3 replies

Legend
February 12, 2018

Agreed, if there is a solution to build on, that’s much more likely to be cost effective. I’ve often looked into adding barcode support to my software but never considered writing it from scratch.  The hardware and time needed to systematically test it is perhaps most daunting.

Legend
February 12, 2018

I would expect, if you wanted someone else to develop it, to take at least a month of programmer's salaried time. Perhaps several months; if they have to study Q-Code technology before starting for example. This doesn't make it likely to fit a modest budget. You can license a server solution from Adobe (LiveCycle Barcoded Forms) I think for 5-6 figures.

You might be lucky to find someone who has invested already the time and will share the results for a different business model.

Joel Geraci
Community Expert
Community Expert
February 12, 2018

I'm guessing that 95% of the code is just a library to generate the datamatrix. There are a ton of JavaScript barcode generators available for free on Github that could be substituted, converting one to generate small square annotations instead of pixels shouldn't be that difficult. Another approach would be to send the data to a server that can generate the barcode as an image, wrap it in an FDF, and then return it to the PDF and drop it into a button face.

In either case, it would be a lot less a than a month of programmer time... more like a couple of days. 

try67
Community Expert
Community Expert
February 8, 2018

You can do it if you either apply a special right to the file (but then it would be locked and you wouldn't be able to edit it, I believe), or if you wrote a function that draws the barcode from scratch. That would be an immense task, so 15K lines of code makes sense...

PasGlop
PasGlopAuthor
Inspiring
February 9, 2018

Does anyone know if such a code would be available for free or to pay?

try67
Community Expert
Community Expert
February 9, 2018

Considering the amount of work involved, most likely for pay.