Extract details from PDF on change background color

i have a PDF invoice file with details in one or many lines, the unique separator in these is the line background color, what i can do to difference the details?

You can’t use the color to determine which lines belong to which detail item. Since there is no other characteristic that’s common to each line, I’m afraid you will have to use a different kind of data source, or ask the producer of the PDF to modify the format in order to have some kind of indicator for each detail line, ideally at the beginning of each detail line.

Thnaks Phil, i will talk with the client to change the data source. Have a nice day.