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:
Scanned: https://www.dropbox.com/s/7a8p5y7csnfbto3/FORM%2001%20-%20Screening_scanned.pdf?dl=0
Original: https://www.dropbox.com/s/p1z9tuj641h92xg/_Form%2001%20-%20Screening%20Form%20020817.pdf?dl=0

Can you please check what am I doing wrong.

Thank you

Question information

Language:
English Edit question
Status:
Answered
For:
queXF Edit question
Assignee:
No assignee Edit question
Last query:
2017-10-04
Last reply:
2017-10-05
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:

https://bazaar.launchpad.net/+branch/quexf/revision/352

Adam

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.