Copy link to clipboard
Copied
Is it possible to extract text from a pdf on the basis of any properties of that text, like its font?
I have a set of pdfs and an excel file.
The set of pdfs have different types of fields or questions(the general content of the pdfs is same but questions slightly vary for each pdf document ) and a more general list of all the questions and many more are in the excel file.
I wanna know which of these questions(in excel file) are present in each of the documents and make a matrix of that.
I could use the advanced search but due to the nature of the data i have to perform the search on the excel file using the pdf questions.
If anything is possible pls help
Thanks in Advance
Copy link to clipboard
Copied
I don't believe that's possible. A script might be able to extract texts of a specific font size, but not based on the font type itself.
It probably can be done using a stand-alone tool or maybe even a plugin, though.
Copy link to clipboard
Copied
Can you direct me to the script that can do it by font sizes? I'll see if it can lead me somewhere.
Copy link to clipboard
Copied
This is complex, you aren't likely to find a script already written to do this. It would use JavaScript GetPageNthWord and GetPageNthWordQuads to get each word and its size, then try to deduce from the bounding quadrilateral what actual size the text was.
Copy link to clipboard
Copied
It's not a pre-existing thing. I've developed scripts that do something similar to it in the past, so if you're interested feel free to contact me privately (try6767 at gmail.com) and we could discuss it further.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now