Convert the 599C PDF file at https://www.chp.gov.hk/files/pdf/599c_tc.pdf to a csv file.
Clone the repository and install the dependencies.
npm install
Prepare a .env
file as below.
PDF_FILE_PATH=<Path to PDF>
As the result is now printed using console.log
, you may need to redirect the output to a file.
node index.js > result.csv
If the output is not parsed correctly, you may switch to another parsing method by switching the below property in .env
PARSE_METHOD=<1 or 2>
"id","districtTC","districtEN","address","date"
"1","中西區","Central & Western","ABC XYZ","27/02/2020"
"2","中西區","Central & Western","Addr1 Addr2","27/02/2020"