Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Read lines from a specific point in a pdf?

$
0
0
Hey all,
  • I am trying to open the below file which I can.
  • I then go to the power consumption section using ctrl + f
Here I want to read the next 4-5lines from the pdf and have them paste into a notepad- text file.
Below in the picture I only want the first 5 columns so excluding the one with lots of text.

Can anyone point me in the right direction???



[ autoit ]      
; TODO: change filename to input argument Local Const $PDFFileName = 'c:\acra\datasheet\adc_126.pdf' ; TODO:? pdf viewer Local Const $PDFViewer = "C:\Program Files\SumatraPDF\SumatraPDF.exe" ; how to concatenate multiple strings into one Local $RunString = $PDFViewer & " " & $PDFFileName local $testFun2Result_string = TestFunc2('PDF will open now...') ; open pdf viewer with the file Run( $RunString ) ;Navigate to power consumption table within the ADC_126 pdf _WinWaitActivate("ADC_126.pdf - [untitled] - SumatraPDF","") Send("{CTRLDOWN}f{CTRLUP}power{SPACE}consumption{ENTER}")

Attached Files

  • Attached File  pic.docx   160.71K   4 downloads

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>