{"id":13850446,"url":"https://github.com/tecnospeed/pastor","last_synced_at":"2025-07-12T22:30:35.127Z","repository":{"id":115104499,"uuid":"98341475","full_name":"tecnospeed/pastor","owner":"tecnospeed","description":"A RESTful API to generate PDF converting from HTML","archived":true,"fork":false,"pushed_at":"2020-04-16T12:44:27.000Z","size":152,"stargazers_count":66,"open_issues_count":9,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-05T20:32:40.127Z","etag":null,"topics":["docker","headless-chrome","nodejs","pdf","restful-api","web"],"latest_commit_sha":null,"homepage":"","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/tecnospeed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-07-25T19:16:09.000Z","updated_at":"2023-09-08T17:27:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"10726a52-c29e-4ac6-9148-ecfcbdea5f7a","html_url":"https://github.com/tecnospeed/pastor","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnospeed%2Fpastor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnospeed%2Fpastor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnospeed%2Fpastor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnospeed%2Fpastor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tecnospeed","download_url":"https://codeload.github.com/tecnospeed/pastor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225839486,"owners_count":17532305,"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":["docker","headless-chrome","nodejs","pdf","restful-api","web"],"created_at":"2024-08-04T20:01:12.614Z","updated_at":"2024-11-22T03:31:25.757Z","avatar_url":"https://github.com/tecnospeed.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Pastor\n\nA RESTful API to generate Portable Document Format (PDF) converting from Hypertext Markup Language (HTML).\n\n## API Usage\n\n### Sending an URL\n\nIt's possible to request by GET for an URL (at the query string) to be converted:\n```\nhttp://localhost:8080?url=http%3A%2F%2Faddress\n```\nThe URL can also be informed as **multipart/form-data**, an example of `curl` command:\n```bash\ncurl -X POST \\\n  http://localhost:8080/ \\\n  -H 'cache-control: no-cache' \\\n  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \\\n  -F url=http://address\n```\nOr as JSON (`content-type: application/json`):\n```json\n{\n  \"url\": \"http://address\"\n}\n```\n\n### Sending a HTML file\n\nThe way to send the HTML to be converted is send it as **multipart/form-data**, follows an example of `curl` command:\n```bash\ncurl -X POST \\\n  http://localhost:8080/ \\\n  -H 'cache-control: no-cache' \\\n  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \\\n  -F 'html=@/example'\n```\n\n## Docker\n\nIt can be found at the Docker Hub as [tecnospeed/pastor](https://hub.docker.com/r/tecnospeed/pastor/).\n\nMore details can be found at the [pastor's Wiki](https://github.com/tecnospeed/pastor/wiki/Docker).\n\n## Demo\nThe project is running under the name TecnoSpeed Printer at:\n```\nhttps://api.tecnospeed.com.br/printer/v1\n```\nFor demonstration, feel free to use the token below:\n```\nx-api-key: xbVP99TsPA5ZvVTjg41BI9YNfYfxKB549wfZI3FC\n```\nJust here is necessary to explicitly request for a pdf:\n```\nAccept: application/pdf\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecnospeed%2Fpastor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftecnospeed%2Fpastor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecnospeed%2Fpastor/lists"}