Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: strgroup

From   Neil Shephard <>
Subject   Re: st: strgroup
Date   Tue, 22 Feb 2011 12:18:54 +0000

On Tue, Feb 22, 2011 at 11:58 AM, Emily Farchy
<> wrote:
> Dear All,
> This is a long shot, but does anyone know if its possible to input data into stata directly from pdf's?  In the following for example, data on district level population is embedded in many different pdfs (eg table 5) where there is one pdf for each district?  A long shot I know, but I thought it worth throwing it out there.

Stata can't read PDFs (well, what I really mean is that there is no
way that I'm aware of to easily read such information).

My approach (on a GNU/Linux system) would be to use a tool like
pdf2html[1] to convert en mass the PDFs to html and then use some
combination of regular expression searching (either using sed/awk/grep
or do it all in Python/Perl) to pull out the dates.

Whether this is worth the effort would depend on how many files there
are and your familiarity with such tools.



“Truth in science can be defined as the working hypothesis best suited
to open the way to the next better one.” - Konrad Lorenz

Email -
Website -
Photos -

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index