{"id":17942728,"url":"https://github.com/b1f6c1c4/draw.io-export","last_synced_at":"2025-03-24T14:32:50.155Z","repository":{"id":41296909,"uuid":"135878128","full_name":"b1f6c1c4/draw.io-export","owner":"b1f6c1c4","description":"Convert draw.io xml to pdf/png within command line. (diagrams.net)","archived":false,"fork":false,"pushed_at":"2024-06-19T13:59:01.000Z","size":243,"stargazers_count":63,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-19T03:54:52.002Z","etag":null,"topics":["automation","diagramsnet","draw-io","drawio","mxgraph","pdf","png"],"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/b1f6c1c4.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-03T06:01:02.000Z","updated_at":"2024-11-01T08:12:24.000Z","dependencies_parsed_at":"2023-11-11T18:28:10.046Z","dependency_job_id":"eb9e03aa-13d8-4bd0-b073-18166b5cacad","html_url":"https://github.com/b1f6c1c4/draw.io-export","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1f6c1c4%2Fdraw.io-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1f6c1c4%2Fdraw.io-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1f6c1c4%2Fdraw.io-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1f6c1c4%2Fdraw.io-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b1f6c1c4","download_url":"https://codeload.github.com/b1f6c1c4/draw.io-export/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245289799,"owners_count":20591134,"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":["automation","diagramsnet","draw-io","drawio","mxgraph","pdf","png"],"created_at":"2024-10-29T03:07:00.408Z","updated_at":"2025-03-24T14:32:49.842Z","avatar_url":"https://github.com/b1f6c1c4.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# draw.io-export\n\nConvert [draw.io](https://app.diagrams.net/) xml file (usually `*.drawio`) to `pdf`/`png` within command line.\n\nWorks nicely with `make` and/or `latexmk`. Useful if you are writing a paper or thesis with many figures.\n\n## Usage with `npm`\n\n```bash\nnpm install --global draw.io-export\ndrawio \u003csource.drawio\u003e -o \u003cdest.pdf\u003e\ndrawio \u003csource.drawio\u003e -o \u003cdest.png\u003e\ndrawio \u003csource.drawio\u003e -F \u003cformat\u003e -o \u003cdest\u003e\n```\n\n## Supported formats `-F|--fmt`\n\n- If not specified, automatically detect `png` or `pdf`\n- `png` Only the first page is used\n- `pdf` Only the first page is used\n- `cat-pdf` All pages used, concatenated\n- `split-png` All pages used, separate files with name `\u003cdest\u003e\u003c#\u003e.png`\n- `split-pdf` All pages used, separate files with name `\u003cdest\u003e\u003c#\u003e.pdf`\n- `split-index-png` Alias for `split-png`\n- `split-index-pdf` Alias for `split-pdf`\n- `split-id-png` All pages used, separate files with name `\u003cdest\u003e\u003cdiagram-id\u003e.png`\n- `split-id-pdf` All pages used, separate files with name `\u003cdest\u003e\u003cdiagram-id\u003e.pdf`\n- `split-name-png` All pages used, separate files with name `\u003cdest\u003e\u003cpage-name\u003e.png`\n- `split-name-pdf` All pages used, separate files with name `\u003cdest\u003e\u003cpage-name\u003e.pdf`\n\n## Usage with Docker\n\n```bash\ndocker run --rm \\\n         -v \u003cyour folder with .drawio files\u003e:/files \\\n         b1f6c1c4/draw.io-export [\u003cfmt\u003e]\n```\n\n- All above formats are supported\n- If not specified, generate both `png` and `cat-pdf`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb1f6c1c4%2Fdraw.io-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb1f6c1c4%2Fdraw.io-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb1f6c1c4%2Fdraw.io-export/lists"}