SVG42PDF
========
.. image:: https://badge.fury.io/py/svg42pdf.svg
:target: https://badge.fury.io/py/svg42pdf
Unlike other graphic formats, SVG is usually hard to convert to PDF.
Existing tools often suffer from the following limitations:
* Do not work on all operating systems
* Versions for different operating systems have different command-line interfaces
* SVG is interpreted incorrectly
* Dependencies are difficult to install
* Have licencing issues
SVG42PDF is a tool for converting SVG to PDF using existing tools and
libraries. Method of conversion can be specified by user, or it can be
selected automatically.
Installation
------------
From PyPI::
pip install --upgrade svg42pdf
From Github::
pip install --upgrade git+https://github.com/karel-brinda/svg42pdf
Examples
--------
Use first working method::
svg42pdf input.svg output.pdf
Use `Cairo <https://cairographics.org/>`_::
svg42pdf -m cairo input.svg output.pdf
Use `ReportLab <http://www.reportlab.com/>`_::
svg42pdf -m reportlab input.svg output.pdf
Use `Inkscape <https://inkscape.org>`_::
svg42pdf -m inkscape input.svg output.pdf
Use `ImageMagick <https://www.imagemagick.org>`_ (does not keep vector representation)::
svg42pdf -m imagemagick input.svg output.pdf
Use `Wkhtmltopdf <https://wkhtmltopdf.org>`_ (using the Qt WebKit, creates big white margins)::
svg42pdf -m wkhtmltopdf input.svg output.pdf
FAQ
---
* Why is there 42 in the name?
There are already too many tools called svg2pdf.
Raw data
{
"_id": null,
"home_page": "https://github.com/karel-brinda/svg42pdf",
"name": "svg42pdf",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Graphics",
"author": "Karel Brinda",
"author_email": "kbrinda@hsph.harvard.edu",
"download_url": "https://files.pythonhosted.org/packages/e0/88/9216c0f4133ca6bac954cc72c3a675a0ae9c772f5fb095fe29de772783fe/SVG42PDF-0.2.2.tar.gz",
"platform": "",
"description": "SVG42PDF\n========\n\n.. image:: https://badge.fury.io/py/svg42pdf.svg\n :target: https://badge.fury.io/py/svg42pdf\n\nUnlike other graphic formats, SVG is usually hard to convert to PDF.\nExisting tools often suffer from the following limitations:\n\n* Do not work on all operating systems\n* Versions for different operating systems have different command-line interfaces\n* SVG is interpreted incorrectly\n* Dependencies are difficult to install\n* Have licencing issues\n\nSVG42PDF is a tool for converting SVG to PDF using existing tools and\nlibraries. Method of conversion can be specified by user, or it can be\nselected automatically.\n\n\nInstallation\n------------\n\nFrom PyPI::\n\n\tpip install --upgrade svg42pdf\n\nFrom Github::\n\n\tpip install --upgrade git+https://github.com/karel-brinda/svg42pdf\n\n\nExamples\n--------\n\nUse first working method::\n\n\tsvg42pdf input.svg output.pdf\n\nUse `Cairo <https://cairographics.org/>`_::\n\n\tsvg42pdf -m cairo input.svg output.pdf\n\nUse `ReportLab <http://www.reportlab.com/>`_::\n\n\tsvg42pdf -m reportlab input.svg output.pdf\n\nUse `Inkscape <https://inkscape.org>`_::\n\n\tsvg42pdf -m inkscape input.svg output.pdf\n\nUse `ImageMagick <https://www.imagemagick.org>`_ (does not keep vector representation)::\n\n\tsvg42pdf -m imagemagick input.svg output.pdf\n\nUse `Wkhtmltopdf <https://wkhtmltopdf.org>`_ (using the Qt WebKit, creates big white margins)::\n\n\tsvg42pdf -m wkhtmltopdf input.svg output.pdf\n\n\nFAQ\n---\n\n* Why is there 42 in the name?\n\n\tThere are already too many tools called svg2pdf.\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Program for SVG to PDF conversion.",
"version": "0.2.2",
"project_urls": {
"Homepage": "https://github.com/karel-brinda/svg42pdf"
},
"split_keywords": [
"graphics"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e0889216c0f4133ca6bac954cc72c3a675a0ae9c772f5fb095fe29de772783fe",
"md5": "f4ac3222f1352c92d1b30e45627d123b",
"sha256": "1f1614d52773c86d8b3cf9e0f0baf1d2e081eac3c05b01399c9f8d8c9b222b76"
},
"downloads": -1,
"filename": "SVG42PDF-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "f4ac3222f1352c92d1b30e45627d123b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 28549,
"upload_time": "2018-10-31T20:01:15",
"upload_time_iso_8601": "2018-10-31T20:01:15.873156Z",
"url": "https://files.pythonhosted.org/packages/e0/88/9216c0f4133ca6bac954cc72c3a675a0ae9c772f5fb095fe29de772783fe/SVG42PDF-0.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2018-10-31 20:01:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "karel-brinda",
"github_project": "svg42pdf",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "svg42pdf"
}