************************************************************************************
1 - Downloading PDF forms and Reading PDF files
************************************************************************************

* Downloading PDF forms
***********************
"2000XPDF" folders contain PDF files downloaded from AMF website.
The "fail_notes.txt" file is a manual summary of failures and present actions taken (if any).

See "BDIF_READ_ME.text" for details about the "BDIF_200X" .xlsx and .csv files.

Download executed in April 2019.

* Reading PDF files
*******************
Content of files contained in each of the "2000XPDF" folders were extracted and assembled in a single "text_200X.txt" file.

************************************************************************************
2 - Stata programs to clean and organize data
************************************************************************************

"clean_data_0_master.do" defines the Stata working directory
.
"clean_data_2006.do", "clean_data_2007.do" and "clean_data_2008.do" clean "text_200X.txt" files for 2006, 2007 and 2008.
- temp_200X.dta files are created in the "clean" folder. These are "almost clean" files.

"clean_data_append_2006_to_2008.do" appends 2006 to 2008 data and clean dates.
- clean_2006-2008_document-level.dta file is created in the "clean" folder.

"clean_data_2009_2013.do" clean the "text_20XX.text" files for 2009 to 2013
- temp_2009_2013.dta file is created in the "clean" folder. This is an "almost clean" file.

"clean_data_append_2009_to_2013.do" adds meta-data and clean dates
- clean_2009-2013_document-level.dta file is created in the "clean" folder.