{"id":17172950,"url":"https://github.com/20tab/mutant","last_synced_at":"2025-04-13T16:13:10.027Z","repository":{"id":4009849,"uuid":"5108343","full_name":"20tab/mutant","owner":"20tab","description":"Mutant is a django application to transform your html template or external link in a pdf file in a simple way.","archived":false,"fork":false,"pushed_at":"2012-10-10T10:35:00.000Z","size":217,"stargazers_count":6,"open_issues_count":7,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-13T16:13:05.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/20tab.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":"2012-07-19T10:09:14.000Z","updated_at":"2024-11-28T16:30:20.000Z","dependencies_parsed_at":"2022-08-06T14:30:30.419Z","dependency_job_id":null,"html_url":"https://github.com/20tab/mutant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Fmutant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Fmutant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Fmutant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Fmutant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/20tab","download_url":"https://codeload.github.com/20tab/mutant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741194,"owners_count":21154255,"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-14T23:49:07.332Z","updated_at":"2025-04-13T16:13:10.006Z","avatar_url":"https://github.com/20tab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"mutant\n=============\n\nMutant is a django application to transform your html template or external link in a pdf file in a simple way.\u003cbr/\u003e\nMutant has some dependences:\u003cbr/\u003e\n1) You have to install wkhtmltopdf. You can find it at: http://code.google.com/p/wkhtmltopdf/\u003cbr/\u003e\n2) You have to install pyzmq. For more informations look at: https://github.com/zeromq/pyzmq\u003cbr/\u003e\n3) It works only with uWSGI application server and its documentation is here: http://projects.unbit.it/uwsgi/\u003cbr/\u003e\n4) Obviously it's a django application, so...\u003cbr/\u003e\n\u003cbr/\u003e\n\u003ci\u003eRemember: to use special characters you must include in your template following meta information:\u003cbr/\u003e\n\u003cb\u003e\u0026lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"\u0026gt;\u003c/b\u003e\u003c/i\u003e\n\n## Usage\n\nFirst af all you have to configure config.py in mutant package.\n\nThen, set uwsgi parameters in your ini configuration:\n\n``` ini\nimport = mutant\nmule = 1\n\n```\n\n``` py\nfrom mutant.views import pdf_to_response\n\ndef myview(request): \n    html= \"template_name.html\" #or external link like 'www.google.com'. In this case you have to set ext_url = True in pdf_to_response\n    dest = \"/path_to_destination_file/filename.pdf\"\n    \n    return pdf_to_response(request,html,dest)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F20tab%2Fmutant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F20tab%2Fmutant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F20tab%2Fmutant/lists"}