I'm implementing some parsing algorithm and for that I need to convert pdfs into html and I picked pdf2htmlEX for this purpose. I want to parse data on basis of headings and paragraphs.
The pdf2HTMLEx library works great in terms of UX, but the HTML text produced is full of
<div> tags and might result difficult to understand as it is not very much readable neither it includes any heading tags etc.
1. The model of perfect competition is more useful for analy <span class="_ _0"> <span>zing situations in which firms <span class="_ _1"></span> </div><div class="t m0 x5 h2 y35 ff2 fs1 fc0 sc0 ls1 ws0">a. engage in price wars in order to secure a position in the market </div>
My questions are:
- How can I separate each heading along with their paragraphs out of it?
- Is there any way to do it using pdf2htmlEX?