What is Django PDF Reactor?
Use PDFGen wrapper for Pyppeteer to create PDF files in Django. Support for async generation in Django Channels worker or with Django 3.1 async views.
Channels
More about generating PDF in channels with Websocket support.
Async view
More about generating PDF in async view
Stunnel Support
Chromium will not visit https://localhost:8000, so run
brew install stunnel
Add ssl_proxy file
pid=
cert=/usr/local/etc/stunnel/stunnel.pem
foreground=yes
debug=7
[https]
accept=8000
connect=8001
TIMEOUTclose=1
Start
sudo stunnel ssl_proxy
Support for PDF/A
For MacOSX:
brew install poppler ghostscript
For Ubuntu / Debian:
apt-get install poppler ghostscript
A PDF/A document is just a PDF document that uses a specific subset of PDF that is designed to ensure it is 'self-contained'. It's not permitted to be reliant on information from external sources (e.g. font programs and hyperlinks).
From wikipedia:
Other key elements to PDF/A compatibility include:
- Audio and video content are forbidden.
- JavaScript and executable file launches are forbidden.
- All fonts must be embedded and also must be legally embeddable for
unlimited, universal rendering. This also applies to the so-called
PostScript standard fonts such as Times or Helvetica. - Colorspaces specified in a device-independent manner.
- Encryption is disallowed.
- Use of standards-based metadata is mandated.
Is it any good?
Credits
Metadata
Release files for django-pdf-reactor 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-pdf-reactor-0.1.3.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_pdf_reactor-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / django-pdf-reactor-0.1.3.tar.gz
| Download URL | django-pdf-reactor-0.1.3.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
065729ba7e3964b8726173ec7c23bd2fc34c114f86a58857d204b76270ed16d7
|
|
BLAKE2b-256 checksum How to use checksums |
d1ad4f41b318ccc6aa9414f9ef45feceaabf1398233fb975811d80ade10b5269
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.7.9 Darwin/19.3.0
|
Release files / django_pdf_reactor-0.1.3-py3-none-any.whl
| Download URL | django_pdf_reactor-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
890f2b138f487dc69f50047d16c7254d146327dd4aadb125d94752e35a6dd1cb
|
|
BLAKE2b-256 checksum How to use checksums |
0efb8c425ac1f3931a088ea38fbd7a70ddc90d53ab18cf83b7130d71e3d18ed2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.7.9 Darwin/19.3.0
|