{"id":17038157,"url":"https://github.com/modesty/p2jsvc","last_synced_at":"2025-06-26T20:32:49.569Z","repository":{"id":7810963,"uuid":"9181635","full_name":"modesty/p2jsvc","owner":"modesty","description":"A RESTful web service adaptor for pdf2json, built with restify and nodejs.","archived":false,"fork":false,"pushed_at":"2022-04-11T19:30:28.000Z","size":25938,"stargazers_count":33,"open_issues_count":3,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-12T13:59:19.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/modesty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-02T22:21:12.000Z","updated_at":"2025-01-25T07:13:53.000Z","dependencies_parsed_at":"2022-08-30T10:12:08.321Z","dependency_job_id":null,"html_url":"https://github.com/modesty/p2jsvc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/modesty/p2jsvc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modesty%2Fp2jsvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modesty%2Fp2jsvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modesty%2Fp2jsvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modesty%2Fp2jsvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modesty","download_url":"https://codeload.github.com/modesty/p2jsvc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modesty%2Fp2jsvc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262139825,"owners_count":23265236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T08:56:07.252Z","updated_at":"2025-06-26T20:32:44.505Z","avatar_url":"https://github.com/modesty.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"p2jsvc\n======\n\nA RESTful web service adaptor for [pdf2json](https://github.com/modesty/pdf2json), built with restify and nodejs.\n\n##Installation\n\n\n                git clone https://github.com/modesty/p2jsvc\n                cd p2jsvc\n                npm install\n\n##Start the Server\n\n                cd p2jsvc\n                node index\n\nYou should see '[time_stamp] - PDFFORMServer1 listening at http://0.0.0.0:8001' in termial window.\n\n##Service Status Check\n\n                curl -isv http://0.0.0.0:8001/p2jsvc/status\n\nResponse should include something like this:\n\n                {\"status\":{\"code\":200,\"message\":\"OK\",\"fieldName\":\"PDFFORMServer1\"}}\n\n\n##Test with GET\n\n                curl -isv http://0.0.0.0:8001/p2jsvc/data/xfa_1040ez\n                curl -isv http://0.0.0.0:8001/p2jsvc/data/xfa_1040a\n                curl -isv http://0.0.0.0:8001/p2jsvc/data/xfa_1040\n\n##Test with POST\n\n                curl -isv -H \"Content-Type: application/json\" -X POST -d '{\"folderName\":\"data\", \"pdfId\":\"xfa_1040ez\"}' http://0.0.0.0:8001/p2jsvc\n                curl -isv -H \"Content-Type: application/json\" -X POST -d '{\"folderName\":\"data\", \"pdfId\":\"xfa_1040a\"}' http://0.0.0.0:8001/p2jsvc\n                curl -isv -H \"Content-Type: application/json\" -X POST -d '{\"folderName\":\"data\", \"pdfId\":\"xfa_1040\"}' http://0.0.0.0:8001/p2jsvc\n\n##Concurrency Benchmark Test\n\n                ab -n 10 -c 10 http://0.0.0.0:8001/p2jsvc/data/xfa_1040ez\n                ab -n 10 -c 10 http://0.0.0.0:8001/p2jsvc/data/xfa_1040a\n                ab -n 10 -c 10 http://0.0.0.0:8001/p2jsvc/data/xfa_1040\n\n##More Info\n\n[Restful Web Service for PDF2JSON](http://www.codeproject.com/Articles/573297/Restful-Web-Service-for-PDF2JSON)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodesty%2Fp2jsvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodesty%2Fp2jsvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodesty%2Fp2jsvc/lists"}