{"id":17126412,"url":"https://github.com/kellpossible/source2pdf","last_synced_at":"2025-03-24T03:45:04.473Z","repository":{"id":9246890,"uuid":"11068604","full_name":"kellpossible/Source2PDF","owner":"kellpossible","description":"Tool for creating syntax highlighted pdf from source code","archived":false,"fork":false,"pushed_at":"2018-03-18T10:53:47.000Z","size":50,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-29T10:15:40.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"xmuSistone/android-vertical-slide-view","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kellpossible.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-30T11:13:03.000Z","updated_at":"2021-05-21T11:09:03.000Z","dependencies_parsed_at":"2022-09-02T08:30:41.207Z","dependency_job_id":null,"html_url":"https://github.com/kellpossible/Source2PDF","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2FSource2PDF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2FSource2PDF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2FSource2PDF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2FSource2PDF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kellpossible","download_url":"https://codeload.github.com/kellpossible/Source2PDF/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245206529,"owners_count":20577582,"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-14T18:47:55.542Z","updated_at":"2025-03-24T03:45:04.445Z","avatar_url":"https://github.com/kellpossible.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Source2PDF\n============\n\n**Source2PDF** is a commandline tool, and python library used for the creation of \nsyntax highlighted pdf documents containing software source code.\n\nSource2PDF is currently capable of generating a single pdf document of an entire \nproject by recursively scanning the project directory for relevant source files. \nIt is also possible to instruct Source2PDF to exclude certain documents or folders \nusing regular expressions.\n\nHere is an example of the output you can expect: [Source2PDF.pdf](https://github.com/kellpossible/Source2PDF/blob/master/Source2Pdf.pdf?raw=true)\n\nFor information about the license, check [Source2PDF.py](https://github.com/kellpossible/Source2PDF/blob/master/Source2Pdf.py)\n\nInstallation\n--------------\n\nUses python 2.7x\n\nRequired packages python libaries which can be installed\nusing pip. I have pip for python 2.7x aliased to *pip2* on my system.\n\n        $ pip2 install -r requirements.txt\n\nI have not tested this software on windows yet, but it should work provided you can get the dependencies installed.\n\nUsage\n--------------\nCommand line usage:\n\n        usage: Source2Pdf.py [-h] [-e [Ext [Ext ...]]] [-x [Regex [Regex ...]]]\n            [-o [File]] [-u [USERNAME]] [-n [PROJECT_NAME]]\n            [--style [{monokai,manni,rrt,perldoc,borland,colorful,default,murphy,vs,trac,tango,fruity,autumn,bw,emacs,vim,pastie,friendly,native}]]\n            [-l] [-i [File [File ...]]]\n\n            Convert code to PDF files\n\n            optional arguments:\n              -h, --help            show this help message and exit\n              -e [Ext [Ext ...]], --ext [Ext [Ext ...]]\n                                    the letters of the file extensions\n              -x [Regex [Regex ...]], --exclude [Regex [Regex ...]]\n                                    each element of exclude is a regex to be excluded\n              -o [File]             name of output file\n              -u [USERNAME], --user-name [USERNAME]\n                                    set custom user name\n              -n [PROJECT_NAME], --project-name [PROJECT_NAME]\n                                    set custom project name\n              --style [{monokai,manni,rrt,perldoc,borland,colorful,default,murphy,vs,trac,tango,fruity,autumn,bw,emacs,vim,pastie,friendly,native}]\n                                    set pygments style\n              -l, --line-numbers    use line numbers\n              -i [File [File ...]]  file names to be converted\n\nMake sure to check out [build_pdf.sh](https://github.com/kellpossible/Source2PDF/blob/master/build_pdf.sh) as an example of usage\n\nFuture Work\n------------\n\nI'm considering implementing the following functionality:\n* binary exe package and installer for windows\n* gui using python-pyside or wxpython\n* index page, possibly with links to other sections in the pdf\n* web application using [web2py](http://web2py.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkellpossible%2Fsource2pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkellpossible%2Fsource2pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkellpossible%2Fsource2pdf/lists"}