{ "info": { "author": "Miguel \u00c1ngel Garc\u00eda", "author_email": "miguelangel.garcia@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "============== =============== ========= ============\nVERSION DOWNLOADS TESTS COVERAGE\n============== =============== ========= ============\n|pip version| |pip downloads| |travis| |coveralls|\n============== =============== ========= ============\n\nCompares two PDF files by appearance, not by content. It can be used in the command line, in order to use it inside bigger scripts.\n\nInstallation\n------------\n\nIt requires some libraries. In Debian or Ubuntu, you can install them by apt::\n\n # apt-get install libpoppler-glib-dev python-gtk2 python-cairo-dev python-gobject-dev python-gobject\n\nEnsure you have an actual version of `gcc`, because `pycairo` will require it (it adds the option `-fstack-protector-strong` to the compilation options). This library is hard to install, so here you have the command line I use:\n\n $ pip install pycairo==1.8.8 --allow-unverified pycairo --allow-external pycairo\n\nThen you can install it as usual::\n\n $ pip install pdfcomparator\n\nUsage\n-----\n\nThe format is the next one:\n\n $ pdfcompare.py pattern current\n\nIt will compare the files under \"pattern\" and \"current\".\n\nIf they are equal, it will print nothing. If they are different, it will print the first page that is different and the script will return 2.\n\nSimilarity\n__________\n\n\nUsually, two pages are equal or not. But maybe you only requires a similarity percentage. So, you can use a percentaje. Usually, this makes the comparision slower.\n\nSo, it will use different algoritms to check the upper similarity ratio. When any of them fails, the whole comparision fails.\n\nYou can enable the precise algoritm by using the option `--precise` and you can set the similarity ratio with `--ratio=0.8`, using any number between 0 and 1.\n\n\nEnjoy it!\n\n\nContribute\n----------\n\nIf you want to contribute, please, create a VirtualEnv environment::\n\n $ virtualenv venv --system-site-packages\n $ . venv/bin/activate\n\nIt is important to use the system packages in order to find the python-gobject library.\n\nNow, you should be able to install the pdfcomparator package:\n\n $ python setup.py develop\n\nAnd to test it:\n\n $ python setup.py test\n\n\n.. |travis| image:: https://travis-ci.org/magmax/pdfcomparator.png\n :target: `Travis`_\n :alt: Travis results\n\n.. |coveralls| image:: https://coveralls.io/repos/magmax/pdfcomparator/badge.png\n :target: `Coveralls`_\n :alt: Coveralls results_\n\n.. |pip version| image:: https://pypip.in/v/pdfcomparator/badge.png\n :target: https://pypi.python.org/pypi/pdfcomparator\n :alt: Latest PyPI version\n\n.. |pip downloads| image:: https://pypip.in/d/pdfcomparator/badge.png\n :target: https://pypi.python.org/pypi/pdfcomparator\n :alt: Number of PyPI downloads\n\n.. _Travis: https://travis-ci.org/magmax/pdfcomparator\n.. _Coveralls: https://coveralls.io/r/magmax/pdfcomparator", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/magmax/pdfcomparator", "keywords": "pdf comparator", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pdfcomparator", "package_url": "https://pypi.org/project/pdfcomparator/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pdfcomparator/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/magmax/pdfcomparator" }, "release_url": "https://pypi.org/project/pdfcomparator/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Compares two PDF files by appearance, not by content.", "version": "0.3.0" }, "last_serial": 1496828, "releases": { "0-1-0": [ { "comment_text": "", "digests": { "md5": "cb7d3d098b6ce3428dddbbabcaa200dc", "sha256": "e5320b5f582ff38b035a77ed89f4114e16168a178ad588801d06cbbbfaf4f02c" }, "downloads": -1, "filename": "pdfcomparator-0_1_0-py2-none-any.whl", "has_sig": false, "md5_digest": "cb7d3d098b6ce3428dddbbabcaa200dc", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7076, "upload_time": "2014-11-22T15:02:37", "url": "https://files.pythonhosted.org/packages/0e/e4/204f8bd16aba1151bc8948b3238aff22ab6cf8bb6e416df2d74a482b9d14/pdfcomparator-0_1_0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "27bcb6449f9cad8fbb30b7b3d4afd73f", "sha256": "f197fc05c54b00ea411ae2c66406d185490193cf834758231a707faad6d65296" }, "downloads": -1, "filename": "pdfcomparator-0-1-0.tar.gz", "has_sig": false, "md5_digest": "27bcb6449f9cad8fbb30b7b3d4afd73f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4896, "upload_time": "2014-11-22T15:02:34", "url": "https://files.pythonhosted.org/packages/b4/a6/7c11f099d174faa2cdbf62ef4730ef08d34f96bc4cab7b2af4c9324ff32d/pdfcomparator-0-1-0.tar.gz" } ], "0-2-0": [ { "comment_text": "", "digests": { "md5": "7eb201010e3673bd978f9c459bf5cc93", "sha256": "0d4dc2a9b188cdbb902190506bfdb98892b8bdfd7efe403607c0fd4c03de2085" }, "downloads": -1, "filename": "pdfcomparator-0_2_0-py2-none-any.whl", "has_sig": false, "md5_digest": "7eb201010e3673bd978f9c459bf5cc93", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7078, "upload_time": "2014-11-22T15:02:52", "url": "https://files.pythonhosted.org/packages/2f/a1/082027766fb05727b1ac8a204b6181aac7d49919ae4f93ba987d95fbb4a5/pdfcomparator-0_2_0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1539f6f57ed3e677ce768acaeda17d69", "sha256": "76df2246b479d5c744419a6eaad06e8ec36b2884848beec81310f77d5f24b9c9" }, "downloads": -1, "filename": "pdfcomparator-0-2-0.tar.gz", "has_sig": false, "md5_digest": "1539f6f57ed3e677ce768acaeda17d69", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4889, "upload_time": "2014-11-22T15:02:49", "url": "https://files.pythonhosted.org/packages/80/fd/425ea119f150bda3bbf09f08af5eb1e9a46a3a6e1540c175c102cb08989c/pdfcomparator-0-2-0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "1840a9292e3265bcb40fc69efd370139", "sha256": "51c93d949558cad3cb77ecf0341256c50fe3fe0ba03cd5ebaa60eeeab83dafdd" }, "downloads": -1, "filename": "pdfcomparator-0.3.0-py2-none-any.whl", "has_sig": false, "md5_digest": "1840a9292e3265bcb40fc69efd370139", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7071, "upload_time": "2015-04-09T07:00:07", "url": "https://files.pythonhosted.org/packages/df/bb/f3bf9c25dd9227a5e2fd78cebd58f0509c4820b3795b264a61ed59ddf76b/pdfcomparator-0.3.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f557ba1110ea2ff11a911bcdd9ebe63a", "sha256": "9a41e675475de8ff26d39fdc752830dc358f171f590130fbe89cbb30270c37af" }, "downloads": -1, "filename": "pdfcomparator-0.3.0.tar.gz", "has_sig": false, "md5_digest": "f557ba1110ea2ff11a911bcdd9ebe63a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4860, "upload_time": "2015-04-09T06:59:54", "url": "https://files.pythonhosted.org/packages/c5/63/4a08aa9ffb2363945bae30204d2dbf8fb6a5ef71acb9ddc5dcf832f7f3ad/pdfcomparator-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1840a9292e3265bcb40fc69efd370139", "sha256": "51c93d949558cad3cb77ecf0341256c50fe3fe0ba03cd5ebaa60eeeab83dafdd" }, "downloads": -1, "filename": "pdfcomparator-0.3.0-py2-none-any.whl", "has_sig": false, "md5_digest": "1840a9292e3265bcb40fc69efd370139", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7071, "upload_time": "2015-04-09T07:00:07", "url": "https://files.pythonhosted.org/packages/df/bb/f3bf9c25dd9227a5e2fd78cebd58f0509c4820b3795b264a61ed59ddf76b/pdfcomparator-0.3.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f557ba1110ea2ff11a911bcdd9ebe63a", "sha256": "9a41e675475de8ff26d39fdc752830dc358f171f590130fbe89cbb30270c37af" }, "downloads": -1, "filename": "pdfcomparator-0.3.0.tar.gz", "has_sig": false, "md5_digest": "f557ba1110ea2ff11a911bcdd9ebe63a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4860, "upload_time": "2015-04-09T06:59:54", "url": "https://files.pythonhosted.org/packages/c5/63/4a08aa9ffb2363945bae30204d2dbf8fb6a5ef71acb9ddc5dcf832f7f3ad/pdfcomparator-0.3.0.tar.gz" } ] }