I tested part of this on Windows in a git bash shell:
$ pdftotext -v
pdftotext version 0.14.5
Copyright 1996-2004 Glyph & Cog, LLC
and then this works:
$ pdftotext.exe kitchin-2015-examp.pdf - | grep DOI
ACS Catal., Just Accepted Manuscript • DOI: 10.1021/acscatal.5b00538 • Publicati
on Date (Web): 11 May 2015
readers and citable by the Digital Object Identifier (DOI®). “Just Accepted” is
an optional service offered
sharing site which assigned the data set a DOI. 19 An alternative data repositor
y could be an
institutional data repository which also provides a DOI for citing. It remains t
o be seen if
stores that provide a citable DOI for the data set. The point is that this appro
ach is very
However, I see that in emacs, it appears another pdftotext is getting used, which does not work.
~/Desktop $ pdftotext -v
pdftotext version 2.03
Copyright 1996-2003 Glyph & Cog, LLC
that is the same version that runs in a cmd shell.
The version that seems to work for me is at "C:\Program Files (x86)\Git\bin\pdftotext".
I added a variable to set the location of this program, and then rely on the executable path. It was a little tricky to set this right, note the escaped quotes.
#+BEGIN_SRC emacs-lisp
(setq pdftotext-executable "\"C:/Program Files (x86)/Git/bin/pdftotext\"")
#+END_SRC
It turned out there was another issue with the uri in the drag-n-drop needing to be unescaped on windows because of the : in the path, which is also done now.
I pushed these out. hopefully that makes some progress for you! or at least gives some hints on where to look for the problem.
Merry Xmas!