{"id":22935101,"url":"https://github.com/vinyll/flask-pdf","last_synced_at":"2025-09-06T22:36:35.861Z","repository":{"id":136464195,"uuid":"83354407","full_name":"vinyll/flask-pdf","owner":"vinyll","description":"Make any page downloadable as a PDF","archived":false,"fork":false,"pushed_at":"2017-02-28T03:24:27.000Z","size":1,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-12T18:44:49.902Z","etag":null,"topics":["flask","html-convert","pdf-generation","print-friendly","wkhtmltopdf"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vinyll.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-02-27T20:38:33.000Z","updated_at":"2024-04-20T15:58:12.000Z","dependencies_parsed_at":"2023-04-21T07:02:15.250Z","dependency_job_id":null,"html_url":"https://github.com/vinyll/flask-pdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vinyll/flask-pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyll%2Fflask-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyll%2Fflask-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyll%2Fflask-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyll%2Fflask-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinyll","download_url":"https://codeload.github.com/vinyll/flask-pdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyll%2Fflask-pdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273973956,"owners_count":25200578,"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-09-06T02:00:13.247Z","response_time":2576,"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":["flask","html-convert","pdf-generation","print-friendly","wkhtmltopdf"],"created_at":"2024-12-14T11:46:25.552Z","updated_at":"2025-09-06T22:36:35.852Z","avatar_url":"https://github.com/vinyll.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask PDF - render any page in PDF\n\nGreat for a best printing result or an easy downloadable version\nof a Flask web page.\n\n## Requirements\n\n- a Flask project with Python 3\n- [wkhtmltopdf](http://wkhtmltopdf.org/) installed on the server\n\n\n## Installation\n\n    pip install -e git+https://github.com/vinyll/flask-pdf.git#egg=flaskpdf\n\nIn your flask file, add:\n\n    from flask import Flask\n    import flaskpdf\n\n    app = Flask(__name__)\n    flaskpdf.init_app(app)\n\nNow browse any of your webpage adding '_.pdf_' extensions.\neg: http://example.org/page/1 is downloadable at http://example.org/page/1.pdf.\n\nYou could easily make a printer-friendly version of your current page:\n\n    \u003ca href=\"{{ request.path }}.pdf\"\u003ePrint this page\u003c/a\u003e\n\n\n## Configuration\n\nYou may want to tune the default configuration.\nTo do so, [read the Flask config documentation](http://flask.pocoo.org/docs/0.12/config/),\nand play with these settings:\n\n    # The URL to access a webpage download in PDF format\n    PDF_URL_RULE = '/\u003cpath:path\u003e.pdf'\n\n    # The path and options for wkhtmltopdf executation.\n    # `{url}` will be replaced by the url of the page to transform\n    # and `{output}` will be a temporary output file (auto-deleted).\n    PDF_WKHTMLTOPDF_COMMAND = 'wkhtmltopdf --print-media-type {url} {output}'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinyll%2Fflask-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinyll%2Fflask-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinyll%2Fflask-pdf/lists"}