{ "info": { "author": "Zest software", "author_email": "info@zestsoftware.nl", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Programming Language :: Python" ], "description": "Introduction\n============\n\nThe main goal of this product is to allow PDF into ImageFields in\nPlone. It uses code written by David Brenneman for\ncollective.pdfpeek.\n\nInstall\n=======\n\nJust add the following lines in your buildout::\n\n collective.pdfpeek\n collective.pdftransform\n\nYou must install pdftransform with the quick installer (no need to\ninstall pdfpeek, but it must be in the buildout as we use its methods)\n\n\nUsing pdftransform in your site\n===============================\n\ncollective.pdftransform adds a ``pdf_to_image`` transform in Plone\nportal_transform.\nAs transforms can not be used with FileField (or at least I did not\nfind how ...) it also provides a method in utils called update_form.\nYou can use it in the ``post_validate`` method of your Archetype\nobjects.\n\nHere is an example (from Products.plonehrm, the Employee Archetype\nobject)::\n\n ...\n from collective.pdftransform.utils import update_form\n ...\n class Employee(BaseFolder):\n ...\n\n security.declarePrivate('post_validate')\n def post_validate(self, REQUEST, errors):\n update_form(self, REQUEST)\n\n ...\n\nWith this, all files submitted in the edit form, if they are PDF, are\ntransformed into jpg files.\nYou can specify an extra argument in update_form which is the list of\nfields, for example, if we had written this::\n\n security.declarePrivate('post_validate')\n def post_validate(self, REQUEST, errors):\n update_form(self, REQUEST,\n ['portrait_file', 'idScan_file'])\n\nonly the files submitted in the portrait and idScan fields would have\nbeen transformed.\n\nYou can also use the validator called ``isValidImageOrPDF`` in your\nImage fields.\n\n\nChangelog\n=========\n\n0.5 (2015-08-27)\n----------------\n\n- Code cleanup.\n [maurits]\n\n\n0.4 (2013-06-04)\n----------------\n\n- Do not explicitly require collective.pdfpeek 1.2, but make that a\n minimum.\n [maurits]\n\n\n0.3 (2012-10-30)\n----------------\n\n- Patched pdfpeek to use the default 1.2 release. [vincent]\n\n- Allow setting PDF resolution in update_form. [vincent]\n\n\n0.2 (2010-06-21)\n----------------\n\n- Bugfix in utils/is_transformable_pdf. [vincent]\n\n\n0.1 (2010-05-19)\n----------------\n\n- added translations for french and dutch. [vincent]\n\n- updated the validator to return an error if the PDF file can not be\n transformed. [vincent]\n\n- added is_transformable_pdf in utils, tells if the PDF file uploaded\n can be transformed with pdf_to_image. [vincent]\n\n- added validator called 'isValidImageOrPDF' that checks that the\n submitted if is a PDF or an image (except BMP images as it can cause\n problems). [vincent]\n\n- added update_form in utils, that can be used in \n the post_validate method of your Archetype objects. [vincent]\n\n- Added transform to the portal_transform. [vincent]", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/zestsoftware/collective.pdftransform", "keywords": null, "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "collective.pdftransform", "package_url": "https://pypi.org/project/collective.pdftransform/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/collective.pdftransform/", "project_urls": { "Homepage": "http://github.com/zestsoftware/collective.pdftransform" }, "release_url": "https://pypi.org/project/collective.pdftransform/0.5/", "requires_dist": null, "requires_python": null, "summary": "A set of portal transform to change pdf into images", "version": "0.5" }, "last_serial": 1695482, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "c9395a4cff4900a2254a1e5700c575b9", "sha256": "d1446b57adb60ce119a33e1f007396c407652339e9a31af55649e2e25e55e7a3" }, "downloads": -1, "filename": "collective.pdftransform-0.1.tar.gz", "has_sig": false, "md5_digest": "c9395a4cff4900a2254a1e5700c575b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15477, "upload_time": "2010-05-19T11:31:03", "url": "https://files.pythonhosted.org/packages/cd/ca/a5e5a7f7d3d01e088af6e7c869cdece515f4ee9dd5cf6f9460f8586ee5b3/collective.pdftransform-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "2cfb3eb13f8b6c47a8be6384bed2d634", "sha256": "87e77d3b6dfba1b8c4a75e3bb504ea2947fbb907d5414899a5960f0cf1850215" }, "downloads": -1, "filename": "collective.pdftransform-0.2.zip", "has_sig": false, "md5_digest": "2cfb3eb13f8b6c47a8be6384bed2d634", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25847, "upload_time": "2010-06-21T15:42:12", "url": "https://files.pythonhosted.org/packages/42/6f/38b20d5a757b064c1f85799d5342b27cc6e4ba8b8ed6aa3736f4471fd71e/collective.pdftransform-0.2.zip" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "19a7293435843def5086eabbd602b0ec", "sha256": "f8cf7465c43fe8ecd49c5b00882e457b6732367063ff74415b2a8e5575d40ba1" }, "downloads": -1, "filename": "collective.pdftransform-0.3.zip", "has_sig": false, "md5_digest": "19a7293435843def5086eabbd602b0ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27450, "upload_time": "2012-10-30T10:15:03", "url": "https://files.pythonhosted.org/packages/68/d3/8e6b60c7802daff919681d2f056dd559f459959f791018a746e5cd77c437/collective.pdftransform-0.3.zip" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "d969aad6ea81eb1a20ba7108be5a5bb4", "sha256": "c3fca1cbac3e1ee617bf040f76e15c202787703253692d24600d7a1a899e4e86" }, "downloads": -1, "filename": "collective.pdftransform-0.4.zip", "has_sig": false, "md5_digest": "d969aad6ea81eb1a20ba7108be5a5bb4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29666, "upload_time": "2013-06-04T10:03:43", "url": "https://files.pythonhosted.org/packages/a8/4d/44aa689c063001b0647d139965778909ac30adcf9f10a42432cc58b81f7e/collective.pdftransform-0.4.zip" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "a1fb2d1b7bbd8b6f2c12a6e36a449bbe", "sha256": "6cbc1e114f916c733fb78d96eac02bf5434626f1947f2ef39aab01ef72187b3a" }, "downloads": -1, "filename": "collective.pdftransform-0.5.tar.gz", "has_sig": false, "md5_digest": "a1fb2d1b7bbd8b6f2c12a6e36a449bbe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17507, "upload_time": "2015-08-26T23:05:51", "url": "https://files.pythonhosted.org/packages/fd/cb/0411f8dcc427c59904ec8431e3d1a3fdbd44d3e77ad69526f3399a587816/collective.pdftransform-0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a1fb2d1b7bbd8b6f2c12a6e36a449bbe", "sha256": "6cbc1e114f916c733fb78d96eac02bf5434626f1947f2ef39aab01ef72187b3a" }, "downloads": -1, "filename": "collective.pdftransform-0.5.tar.gz", "has_sig": false, "md5_digest": "a1fb2d1b7bbd8b6f2c12a6e36a449bbe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17507, "upload_time": "2015-08-26T23:05:51", "url": "https://files.pythonhosted.org/packages/fd/cb/0411f8dcc427c59904ec8431e3d1a3fdbd44d3e77ad69526f3399a587816/collective.pdftransform-0.5.tar.gz" } ] }