Barcode Not Detected on Scanned PDF

Asked by John Mhegelele on 2017-10-04

Dear Adam,

When i test form compatibility with the original pdf the barcode is detected. But when i use the scanned pdf (because i am manually banding) the barcode is not detected

here are the files:

Can you please check what am I doing wrong.

Thank you

Question information

English Edit question
queXF Edit question
No assignee Edit question
Last query:
Last reply:
John Mhegelele (jmduda) said : #1

I forgot to mention the following are my settings:

//Barcode positions on page defined as portions of the page
//Defaults to the top right hand side of the page, from half the page width down to 20% of the height of the page
define('BARCODE_TLX_PORTION',0); //Top left X
define('BARCODE_TLY_PORTION',0); //Top left Y
define('BARCODE_BRX_PORTION',1); //Bottom right X
define('BARCODE_BRY_PORTION',0.2); //Bottom right Y

//Barcode positions on page defined as portions of the page (second location)
define('BARCODE_TLX_PORTION2',0); //Top left X
define('BARCODE_TLY_PORTION2',0); //Top left Y
define('BARCODE_BRX_PORTION2',1); //Bottom right X
define('BARCODE_BRY_PORTION2',0.2); //Bottom right Y

//The length of a barcode for the page id
define('BARCODE_LENGTH_PID',9); //Length in chars of a barcode identifying a page
define('BARCODE_LENGTH_PID2',8); //Length in chars of a barcode identifying a page (second location)

Adam Zammit (adamzammit) said : #2

Hi John,

Thanks for this detailed report.

There was a bug in the barcode detection process that was confusing the corner edge line as part of the barcode.

This has now been fixed - you will need to patch your code from here:


Can you help with this problem?

Provide an answer of your own, or ask John Mhegelele for more information if necessary.

To post a message you must log in.