[TxMt] Re: Open PDF as .txt file

Allan Odgaard mailinglist at textmate.org
Thu Dec 19 23:56:37 UTC 2013


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.


More information about the textmate mailing list