CMSplugin PDF
A reusable Django app to add PDFs to Django-CMS.
Installation
You need to install the following prerequisites in order to use this app:
pip install Django pip install django-cms pip install django-filer pip install Pillow
If you want to install the latest stable release from PyPi:
$ pip install cmsplugin-pdf
If you feel adventurous and want to install the latest commit from GitHub:
$ pip install -e git://github.com/bitmazk/cmsplugin-pdf.git#egg=cmsplugin_pdf
Add cmsplugin_pdf to your INSTALLED_APPS:
INSTALLED_APPS = (
...,
'cmsplugin_pdf',
)
Usage
Create a CMS page with a placeholder, upload a pdf file using filer and simply insert the plugin PDF File.
Note that currently the thumbnail size is adjusted only in the template at cmsplugin_pdf/partials/pdf.html.
Settings
CMSPLUGIN_PDF_DISPLAY_TYPE_CHOICES
Default:
[
('standard', _('standard')),
('small', _('small')),
('highlight', _('highlight')),
]
When using the PDF File plugin in your django-cms placeholders you will notice that you have three choices for the Display type. This field can be helpful when you want to render a file differently in different parts of your site. If you need even more display types, just set this setting to a different list of tuples.
Contribute
If you want to contribute to this project, please perform the following steps:
# Fork this repository # Clone your fork $ mkvirtualenv -p python2.7 cmsplugin-pdf $ pip install -r test_requirements.txt $ ./logger/tests/runtests.sh # You should get no failing tests $ git co -b feature_branch master # Implement your feature and tests # Describe your change in the CHANGELOG.txt $ git add . && git commit $ git push origin feature_branch # Send us a pull request for your feature branch
Whenever you run the tests a coverage output will be generated in tests/coverage/index.html. When adding new features, please make sure that you keep the coverage at 100%.
Roadmap
Check the issue tracker on github for milestones and features to come.
Metadata
Release files for cmsplugin-pdf 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cmsplugin-pdf-0.5.1.tar.gz | 26.1 kB | Without provenance | Details for cmsplugin-pdf-0.5.1.tar.gz |
Release files / cmsplugin-pdf-0.5.1.tar.gz
| Download URL | cmsplugin-pdf-0.5.1.tar.gz |
|---|---|
| Size | 26.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ba0e72d916c6220772435211e57861654ec404d73603a7cf95e32baae94900a
|
|
BLAKE2b-256 checksum How to use checksums |
53cdad9d108e5bbc7e5b165aaa2f29032463cd813e02299ebb13b6d5acaa2207
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cmsplugin-pdf 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.