{"id":20196515,"url":"https://github.com/endalk200/render_pdf","last_synced_at":"2025-08-01T23:34:58.978Z","repository":{"id":41930905,"uuid":"291688710","full_name":"endalk200/render_pdf","owner":"endalk200","description":"Source code to PDF renderer. Renders PDF files from source code with syntax highlighting, Can be used for teaching and assignment purposes.","archived":false,"fork":false,"pushed_at":"2023-02-08T00:45:24.000Z","size":359,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-24T23:34:14.224Z","etag":null,"topics":["pdf","render","render-pdf","source-code-rendering"],"latest_commit_sha":null,"homepage":"","language":"Python","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/endalk200.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":"2020-08-31T10:48:09.000Z","updated_at":"2024-07-19T12:54:15.000Z","dependencies_parsed_at":"2024-11-14T07:15:20.220Z","dependency_job_id":null,"html_url":"https://github.com/endalk200/render_pdf","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.34615384615384615","last_synced_commit":"cbc4a0fb9c04e46aacf06fce4f7b348c88d3597c"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/endalk200/render_pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endalk200%2Frender_pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endalk200%2Frender_pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endalk200%2Frender_pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endalk200%2Frender_pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endalk200","download_url":"https://codeload.github.com/endalk200/render_pdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endalk200%2Frender_pdf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268312293,"owners_count":24230554,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["pdf","render","render-pdf","source-code-rendering"],"created_at":"2024-11-14T04:24:33.204Z","updated_at":"2025-08-01T23:34:58.918Z","avatar_url":"https://github.com/endalk200.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Render PDF\n\nrender_pdf is python script based on weasyprint that converts any source code to pdf file. \n\n## Showcase\n\u003e Single Code Base\n![Rendered source code](https://github.com/endalk200/render_pdf/blob/master/example/render.png?raw=true)\n\n\u003e Two Source Codes Side By Side\n![Side By Side Rendered Source Code](https://github.com/endalk200/render_pdf/blob/master/example/render_side_by_side.png?raw=true)\n\n## Features\n\nThis script has the following features.\n\n* syntax highlighting for any source code using pygments.\n* line number for the source code.\n* rendering any online materials or source code by downloading it.\n\n## Installation\n\nYou can install this package from the pypi index using the following commands.\n\n\u003e For Linux Based OS\n```bash\npip install render_pdf\n```\n\n\u003e For windows\n```bash\npython -m pip install render_pdf\n```\n\n## Usage\n\nThis script can be used in variety of ways. The following examples and the results are stored in the example directory\nin this repository.\n\n* rendering single source code from local directory\n\n```bash\nrender ./example/render.py -o ./example/render.pdf\n```\n\n* rendering multiple source codes from local directory\n\n```bash\nrender ./setup.py ./example/render.py -o ./example/render.pdf\n```\n\n### rendering two source codes side by side for comparison.\n\n```bash\nrender -y ./setup.py ./example/render.py -o ./example/render.pdf\n```\n\n### rendering source code by downloading from the internet.\n\nTo render the [setup.py](https://raw.githubusercontent.com/endalk200/render_pdf/main/setup.py) file\nfrom this repository by downloading it from github server.\nP\n```bash\nrender https://raw.githubusercontent.com/endalk200/render_pdf/main/setup.py -o setup.pdf\n```\n\n## Source Code\n\nYou can see the source code by cloning the repository as follows.\n```bash\ngit clone https://github.com/endalk200/render_pdf.git\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendalk200%2Frender_pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendalk200%2Frender_pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendalk200%2Frender_pdf/lists"}