randallc Posted February 8, 2006 Share Posted February 8, 2006 hi, I know that people have this running; I need a "quick and dirty" "Save pdf as text" to add to a script.. Has anyone done this? -; I'm exhausted with ideas, researching methods... Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
seandisanti Posted February 8, 2006 Share Posted February 8, 2006 hi,I know that people have this running;I need a "quick and dirty" "Save pdf as text" to add to a script..Has anyone done this? -; I'm exhausted with ideas, researching methods...Randallgive me a minute and i'll try to whip something up. are we talking about a pdf that's being displayed, or just any arbitrary pdf file? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 8, 2006 Moderators Share Posted February 8, 2006 give me a minute and i'll try to whip something up. are we talking about a pdf that's being displayed, or just any arbitrary pdf file?It's been 33 minutes already, you have 30 + ones done already? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
seandisanti Posted February 9, 2006 Share Posted February 9, 2006 It's been 33 minutes already, you have 30 + ones done already? i actually haven't started yet because i asked for elaboration regarding what exactly the script should do. the last thing i want to do is write a script that doesn't do what it's supposed to. (again) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 9, 2006 Moderators Share Posted February 9, 2006 i actually haven't started yet because i asked for elaboration regarding what exactly the script should do. the last thing i want to do is write a script that doesn't do what it's supposed to. (again)I resemble that remark! Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
CyberSlug Posted February 9, 2006 Share Posted February 9, 2006 You might be able to incorporate a third-party program such as http://www.pdf-to-html-word.com/pdf-to-text/http://www.pdfzone.com/article2/0,1895,1864583,00.aspAnother route is to add a printer:Port is "FILE:"Manufacturer is "Generic"Model is "Generic / Text Only"But I don't know of a command line option with Adobe Reader (or Foxit Reader) for printing a PDF document. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
randallc Posted February 9, 2006 Author Share Posted February 9, 2006 Hi, yes, I was hoping to 1. use obj connector. 2. pass variable with name of pdf.. 3. not open adobe no hurry! Best, Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
Jamal Mazrui Posted February 9, 2006 Share Posted February 9, 2006 A COM based solution is available commercially for about $100 fromhttp://www.isedquickpdf.comUsing that library, I have developed a free PDF to text converter, including both GUI and command-line interfaces, available athttp://www.empowermentzone.com/p2tsetup.exe Link to comment Share on other sites More sharing options...
seandisanti Posted February 10, 2006 Share Posted February 10, 2006 A COM based solution is available commercially for about $100 fromhttp://www.isedquickpdf.comUsing that library, I have developed a free PDF to text converter, including both GUI and command-line interfaces, available athttp://www.empowermentzone.com/p2tsetup.exeneat Link to comment Share on other sites More sharing options...
randallc Posted February 10, 2006 Author Share Posted February 10, 2006 Hi,Great!Is the exe AutoIt? - ? sourceBut is it really that complicated?You couldn't use this in your own poogram for copyright reasons, I presume; so how is it "free"?We have at least one object....?$oPDF = ObjCreate("AcroPDF.PDF.1");$Version=$oPDF.GetVersionsIs it really hard to do with some obj calls?It is going to be part of (or already is in) Word12 beta, so will be fairly easily accessible soon for many of us.Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
Jamal Mazrui Posted February 11, 2006 Share Posted February 11, 2006 My "PDF to TXT" program is written in PowerBasic. The DLL for manipulating PDF files can be distributed with a program that uses it, as long as the license key is not exposed (the source code initializes the library with a function call that passes the developer's license key as a parameter). Let me clarify that the primary purpose of the library is creating PDF files and forms. I just took advantage of a feature that supports text extraction from an existing PDF. Unfortunately, I don't think there is a free COM-based solution for converting a PDF to text--I looked far and wide. The Adobe COM libraries are commercial--in fact, they require an installation of Adobe Acrobat or equivalent. There are other free executables (as opposed to COM or standard DLL libraries) for converting PDFs to text. Based on testing by myself and others, the one I developed with the ISEDQUICKPDF library works as well as any of them. Moreover, it permits convenient batch conversions, including converting all PDFs linked to an Internet web page. Link to comment Share on other sites More sharing options...
ReFran Posted February 11, 2006 Share Posted February 11, 2006 Command line option for Acrobat /Adobe Reader:http://partners.adobe.com/public/developer...FAQ.pdf#page=27Pdf to Text command line tool:http://www.foolabs.com/xpdf/download.htmlHTH, Reinhard Link to comment Share on other sites More sharing options...
randallc Posted February 11, 2006 Author Share Posted February 11, 2006 OK, I think I see the limits here; I'll just open reader and "saveas" txt; or use a command line tooll. anyone keen to do the dll program!! Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
Jamal Mazrui Posted February 12, 2006 Share Posted February 12, 2006 As far as I know, Adobe Reader allows one to open or print a PDF with command line parameters, but not save to text (doing that requires operation of the user interface). I have tried automating save as text by sending keystrokes, but found that it does not work reliably--at least for converting a batch of PDFs to text. Apparently, Adobe Reader is programmed to defy such automation attempts. No matter what delays I tried between keystrokes, etc., a lock up would occur. Also, Adobe Reader does not use standard menus, so the menu automation technique would not work either. If anyone can demonstrate an automation solution with Adobe Reader, I would also be interested. In the meantime, my suggestion, based on experience, is to use a 3rd party command-line utility (for a free approach). Link to comment Share on other sites More sharing options...
hemal Posted March 19, 2019 Share Posted March 19, 2019 On 2/9/2006 at 5:27 PM, Jamal Mazrui said: A COM based solution is available commercially for about $100 from http://www.isedquickpdf.com Using that library, I have developed a free PDF to text converter, including both GUI and command-line interfaces, available at http://www.empowermentzone.com/p2tsetup.exe Hi Dear, The Links on the site are DEAD. 🙄 Link to comment Share on other sites More sharing options...
Nine Posted March 19, 2019 Share Posted March 19, 2019 10 minutes ago, hemal said: Hi Dear, The Links on the site are DEAD. And you are surprised ? The original thread was created in 2006 ! “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Recommended Posts