Forum Discussion
Very tricky text extraction
seedrs91 is there any other data format avaialble other than PDF for the download? such as XML/HTML?
Unfortunately not, It is only available in PDF.
- smpa013 years agoCommunity Champion
Like you said there is no apparent pattern to this and trying to come up with a pattern and then translate that into regex and then using js within power query seems like a difficult task for this (from performance standpoint too).
There is one thing that comes to my mind; if use node.js; there is a package called pdf2json. So you can create a node project and utilize pdf2json to convert that to a json first and then pass the json to power bi. I am not 100% sure though if it would still give you what you need.Or if you have direct access to data vendor, you can ask them to format the data with desired delimiter between tenants and corresponding fields before making it avaialble to clients. I did exactly this in similar situation like you at past.
- seedrs913 years agoFrequent Visitor
Sorry, I'm still a beginner so may I ask what is it that pdf2json does that helps with my goal?
smpa01 wrote:Or if you have direct access to data vendor, you can ask them to format the data with desired delimiter between tenants and corresponding fields before making it avaialble to clients. I did exactly this in similar situation like you at past.
Apologies but this won't be possible. This is a bid whereby the vendor doesn't provide preferntial treatment to any bidder.