Skip to content

ocinpp/599c-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

599C CSV Generator

Known Vulnerabilities

Convert the 599C PDF file at https://www.chp.gov.hk/files/pdf/599c_tc.pdf to a csv file.

Setup

Clone the repository and install the dependencies.

npm install

Prepare a .env file as below.

PDF_FILE_PATH=<Path to PDF>

Usage

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>

Sample Output

"id","districtTC","districtEN","address","date"
"1","中西區","Central & Western","ABC XYZ","27/02/2020"
"2","中西區","Central & Western","Addr1 Addr2","27/02/2020"

Releases

No releases published

Packages

No packages published