Author Topic: PDF to TXT line by line  (Read 1962 times)

0 Members and 1 Guest are viewing this topic.

FELIX

  • Bull Frog
  • Posts: 242
PDF to TXT line by line
« on: May 06, 2017, 12:43:30 AM »
Is it possible to read a PDF and write row by line in a TXT file?
OK.

VovKa

  • Water Moccasin
  • Posts: 1632
  • Ukraine
Re: PDF to TXT line by line
« Reply #1 on: May 06, 2017, 07:20:09 AM »
Is it possible to read a PDF and write row by line in a TXT file?
you can use a command line tool to convert pdf to txt and then read it by lisp
http://www.foolabs.com/xpdf/download.html

BIGAL

  • Swamp Rat
  • Posts: 1428
  • 40 + years of using Autocad
Re: PDF to TXT line by line
« Reply #2 on: May 07, 2017, 08:52:39 PM »
Does 2018 do a better job of reading a pdf ?
A man who never made a mistake never made anything

FELIX

  • Bull Frog
  • Posts: 242
Re: PDF to TXT line by line
« Reply #3 on: May 08, 2017, 09:45:29 PM »
It is to read PDF as texts.

Many thanks VovKa. Perfect.
OK.

FELIX

  • Bull Frog
  • Posts: 242
Re: PDF to TXT line by line
« Reply #4 on: May 09, 2017, 11:51:22 PM »
A problem. I run the program with the STARTAPP function and then open the created text file to read. The problem is that Autolisp does not wait for the STARTAPP to finish and the text file is not always ready to be opened for reading. How do I get Autolisp to wait for STARTAPP to finish running the program so I can continue?
OK.

VovKa

  • Water Moccasin
  • Posts: 1632
  • Ukraine
Re: PDF to TXT line by line
« Reply #5 on: May 10, 2017, 04:44:11 AM »
How do I get Autolisp to wait for STARTAPP to finish running the program so I can continue?
https://www.theswamp.org/index.php?topic=20222.msg245793#msg245793

FELIX

  • Bull Frog
  • Posts: 242
Re: PDF to TXT line by line
« Reply #6 on: May 10, 2017, 11:41:17 PM »
Thank you, one more time.
OK.