The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grabbing text from a PDF
#1
I've got a standard text PDF (no images) and I'd like to be able to just grab the text out of the PDF and be able to assign it to a string variable to process.  Right now I'm having to rely on CTRL-C to copy the PDF text to the clipboard and then grab the clipboard in QM and assign it to a string varible.  The only problem with that is that every PDF viewer selects the text a little differently and all the information isn't always in the same spot across different PDF viewers (PDFComplete, Acrobat, Edge, etc).  I noticed there are PDF COM Libraries available, but have no idea how to use them or even if they would help do what I'm trying to do.  

Each PDF I am working with is basically a Form that is automatically generated from another program.  I am trying to extract the information from that form to be able to process and save it in a different format.  Does this make sense?

Thanks ahead of time...


Messages In This Thread
Grabbing text from a PDF - by lrdsatyr8 - 06-09-2021, 02:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)