{"id":40740632,"url":"https://github.com/lula/xml2pdf","last_synced_at":"2026-01-21T15:06:21.810Z","repository":{"id":34894772,"uuid":"187792481","full_name":"lula/xml2pdf","owner":"lula","description":"xml-pdf","archived":false,"fork":false,"pushed_at":"2022-12-09T03:21:36.000Z","size":97,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T16:55:25.100Z","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/lula.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-21T08:15:50.000Z","updated_at":"2019-06-18T13:40:14.000Z","dependencies_parsed_at":"2023-01-15T10:01:12.542Z","dependency_job_id":null,"html_url":"https://github.com/lula/xml2pdf","commit_stats":null,"previous_names":["lula/xml-pdf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lula/xml2pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lula%2Fxml2pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lula%2Fxml2pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lula%2Fxml2pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lula%2Fxml2pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lula","download_url":"https://codeload.github.com/lula/xml2pdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lula%2Fxml2pdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28635123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T14:50:40.221Z","status":"ssl_error","status_checked_at":"2026-01-21T14:48:59.225Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-21T15:06:21.041Z","updated_at":"2026-01-21T15:06:21.805Z","avatar_url":"https://github.com/lula.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xml2pdf\n\nThis repo has been inspired from [xml-pdf](https://gitlab.com/poster983/XML-PDF). \n\n## Basic usage\n\n```language=javascript\nconst { xml2pdfAsync } = require('./index');\n\nconst xml = '...';\nconst options = {\n    template: '\u003cmain template\u003e'\n};\n\nxml2pdfAsync(xml, options).then(res =\u003e {\n    // res is the pdf\n}).catch(err =\u003e ...));\n```\n\n## Header and Footer\n\n```language=javascript\nconst { xml2pdfAsync } = require('./index');\n\nconst xml = '...';\nconst options = {\n    template: '...',\n    header: {\n        height: '10mm', // see html-pdf height options\n        template: '\u003cheader template\u003e'\n    },\n    footer: {\n        height: '10mm', // see html-pdf height options\n        template: '\u003cfooter template\u003e'\n    }\n};\n\nxml2pdfAsync(xml, options).then(res =\u003e {\n    // res is the pdf\n}).catch(err =\u003e ...));\n```\n\nSee `test` folder with header and footer examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flula%2Fxml2pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flula%2Fxml2pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flula%2Fxml2pdf/lists"}