# Paragraph numbering extraction

I am curious on how to tag a text paragraph with the designated paragraph numbering. The problem is the layout and numbering of the paragraphs of the pdf documents I am working with differ. For example imagine this is an extract of an example pdf document:

1.SECTION
_____ 1. FIRST SUBSECTION
_____ 2. SECOND SUBSECTION
__________Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
__________eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
__________voluptua. ITERATION:
______________a) Lorem ipsum dolor sit amet,
______________b) Lorem ipsum dolor sit amet,
______________c) THIS PARAGRAPH CONTAINS THE ANSWER TEXT AND SHOULD BE TAGGED WITH 1.2.c)


As you can see in the example I would like to tag the paragraph where the answer text can be found with a numbering: 1.2.c).

Has anyone experience with such problem? Any help is highly appreciated.