md2pdf-cli


Namemd2pdf-cli JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/yourusername/md2pdf
SummaryA command-line tool to convert Markdown files to PDF
upload_time2025-08-31 03:42:54
maintainerNone
docs_urlNone
authorYour Name
requires_python>=3.7
licenseNone
keywords markdown pdf conversion cli
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Markdown to PDF Converter

A command-line tool to convert Markdown files to PDF using Python.

## Installation

```bash
pip install .    
pip install md2pdf-cli
```

## Usage
 
 need to install wkhtmltox from 

```
https://gitlink.org.cn/dnrops/my_tools/releases/download/0.0.1/wkhtmltox-0.12.6-1.mxe-cross-win64.7z
```


```
# Basic conversion
md2pdf input.md output.pdf

# With custom CSS
md2pdf input.md output.pdf --style style.css
```



Sample CSS

```css
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 2cm;
}
h1 { color: #2c3e50; }
h2 { color: #34495e; }
code {
    background-color: #f8f8f8;
    padding: 2px 4px;
    border-radius: 3px;
}
pre {
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}
```

```bash
md2pdf/
├── setup.py
├── README.md
└── md2pdf/
    ├── __init__.py
    └── cli.py
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yourusername/md2pdf",
    "name": "md2pdf-cli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "markdown pdf conversion cli",
    "author": "Your Name",
    "author_email": "your.email@example.com",
    "download_url": "https://files.pythonhosted.org/packages/00/16/bbd12e243b668a1c933d06f8e79c02e66cc7ca296e3a8d6acb86c39d013a/md2pdf_cli-0.1.0.tar.gz",
    "platform": null,
    "description": "# Markdown to PDF Converter\r\n\r\nA command-line tool to convert Markdown files to PDF using Python.\r\n\r\n## Installation\r\n\r\n```bash\r\npip install .    \r\npip install md2pdf-cli\r\n```\r\n\r\n## Usage\r\n \r\n need to install wkhtmltox from \r\n\r\n```\r\nhttps://gitlink.org.cn/dnrops/my_tools/releases/download/0.0.1/wkhtmltox-0.12.6-1.mxe-cross-win64.7z\r\n```\r\n\r\n\r\n```\r\n# Basic conversion\r\nmd2pdf input.md output.pdf\r\n\r\n# With custom CSS\r\nmd2pdf input.md output.pdf --style style.css\r\n```\r\n\r\n\r\n\r\nSample CSS\r\n\r\n```css\r\nbody {\r\n    font-family: Arial, sans-serif;\r\n    line-height: 1.6;\r\n    margin: 2cm;\r\n}\r\nh1 { color: #2c3e50; }\r\nh2 { color: #34495e; }\r\ncode {\r\n    background-color: #f8f8f8;\r\n    padding: 2px 4px;\r\n    border-radius: 3px;\r\n}\r\npre {\r\n    background-color: #f8f8f8;\r\n    padding: 10px;\r\n    border-radius: 5px;\r\n    overflow-x: auto;\r\n}\r\n```\r\n\r\n```bash\r\nmd2pdf/\r\n\u251c\u2500\u2500 setup.py\r\n\u251c\u2500\u2500 README.md\r\n\u2514\u2500\u2500 md2pdf/\r\n    \u251c\u2500\u2500 __init__.py\r\n    \u2514\u2500\u2500 cli.py\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A command-line tool to convert Markdown files to PDF",
    "version": "0.1.0",
    "project_urls": {
        "Bug Reports": "https://github.com/yourusername/md2pdf/issues",
        "Homepage": "https://github.com/yourusername/md2pdf",
        "Source": "https://github.com/yourusername/md2pdf"
    },
    "split_keywords": [
        "markdown",
        "pdf",
        "conversion",
        "cli"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9844a5846466cc5dc2d18b2e5cbc422480767ee5708758a943f2c504938cd21e",
                "md5": "e7382a220b16a904d1007762582fb703",
                "sha256": "e4f05d9f3550e62feba41559a52e5aa75cf34c4a1bcaa00d242c884dbdd9b055"
            },
            "downloads": -1,
            "filename": "md2pdf_cli-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e7382a220b16a904d1007762582fb703",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4157,
            "upload_time": "2025-08-31T03:42:52",
            "upload_time_iso_8601": "2025-08-31T03:42:52.080048Z",
            "url": "https://files.pythonhosted.org/packages/98/44/a5846466cc5dc2d18b2e5cbc422480767ee5708758a943f2c504938cd21e/md2pdf_cli-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0016bbd12e243b668a1c933d06f8e79c02e66cc7ca296e3a8d6acb86c39d013a",
                "md5": "072495f2f3d1b611e2556d9f3b489b78",
                "sha256": "198de1c04122465c7f5c17bb1b7faee526119e44f562b0b4f3b92f8df5b8cabe"
            },
            "downloads": -1,
            "filename": "md2pdf_cli-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "072495f2f3d1b611e2556d9f3b489b78",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3837,
            "upload_time": "2025-08-31T03:42:54",
            "upload_time_iso_8601": "2025-08-31T03:42:54.526074Z",
            "url": "https://files.pythonhosted.org/packages/00/16/bbd12e243b668a1c933d06f8e79c02e66cc7ca296e3a8d6acb86c39d013a/md2pdf_cli-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-31 03:42:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yourusername",
    "github_project": "md2pdf",
    "github_not_found": true,
    "lcname": "md2pdf-cli"
}
        
Elapsed time: 1.64048s