Read from PDF
Hey guys i already searched on google but i find only pdf files for unreal engine.
Is there a way to make unreal engine read data (text and numbers) from a pdf document
Posted Apr 2, 2019, 11:17 AM UTC
16
Hey guys i already searched on google but i find only pdf files for unreal engine.
Is there a way to make unreal engine read data (text and numbers) from a pdf document
Posted Apr 2, 2019, 11:17 AM UTC
Sorry but that sounds like a pretty bad idea. Why do you want that?
[deleted]
Deciding if we should use unreal for our showcase of products or should stay at normal c++ scripring for our tool. If unreal has a function like thes we would change our project to unreal since it would be easier to handle some things. We sell hardware with contracts and the contract price list is changing every 2-3 weeks, would be to much work to change it everytime manually
It would be much easier for UE4 to read a sensible format like JSON. If your data really comes from a PDF and there's no way to change that (which seems doubtful) then you should probably write a small script to do a conversion first.
Even better - for data which changes frequently - would be to fetch the data from a web server with a HTTP GET request, e.g. when the application starts.
Well we get only this pdf file with prizes, they decline to handle it just for our little shop else. Sadly.
I also had the thought of getting it from a server, but if we cant read out the pdf file which also changes in amount of products, not only in prize. It makes no sense. The 3d showcase is just a little feature in our shop, so not worth to spend much time or resources on.
Are the PDFs always in the same layout? If so then you can probably use a tool like pdftotext (part of xpdf) to convert to text, followed by a small script that gets the parts that you're interested in (prices and amounts).