[TxMt] Re: Open PDF as .txt file
Walter Lee Davis
waltd at wdstudio.com
Fri Dec 20 14:36:32 UTC 2013
There's an ancient command-line tool called pdftotext that you might try here. I used it to index the text content of PDFs for a search engine. It doesn't always get all the words in the right order, but it does usually get all of the words.
Walter
On Dec 19, 2013, at 6:56 PM, Allan Odgaard wrote:
> On 19 Dec 2013, at 13:55, Ross Ahmed wrote:
>
>> Is it at all possible to open a PDF as a .txt file within TextMate?
>
> Not sure what you want here. A PDF is a binary file and it doesn’t embed its textual content as ASCII / unicode.
>
> If however you have something that can convert a PDF to some sort of textual representation, then you can setup that to run as an import hook, when TextMate opens a PDF file. We have done this for compiled AppleScript, binary property lists, and possibly a few other binary formats that can easily be converted to text.
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list