pypostscript
Create A4 Portrait PostScript output with Python Objects
- Version 0.1:
Portrait A4 only 4 Font choices TextLines Code39Barcodes Code93Barcodes Circles Rectangles
Usage
Example of usage:
from pypostscript.barcode import Code39Barcode, Code93Barcode
from pypostscript.shapes import Circle, Rectangle
from pypostscript.text import HelveticaBoldFont, TextLine, TimesPlainFont
from pypostscript.page import Page
def sample_page():
page = Page()
page.extend(TextLine(x_pts=40,
y_pts=740,
font=HelveticaBoldFont(size_pts=22),
text='A Test Portrait Page'))
page.extend(TextLine(x_pts=40,
y_pts=650,
font=TimesPlainFont(size_pts=12),
text='PostScript library, test portrait page.'))
page.extend(Code39Barcode(x_pts=40,
y_pts=500,
chars='ABC123'))
page.extend(Code93Barcode(x_pts=40,
y_pts=400,
chars='ABC987'))
page.extend(Rectangle(x_pts=30,
y_pts=390,
width_pts=170,
height_pts=185,
line_width_pts=2))
page.extend(Circle(centre_x_pts=80,
centre_y_pts=150,
radius_pts=72,
line_width_pts=1))
return page
if __name__ == '__main__':
page = sample_page()
print page.render()
Metadata
Release files for pypostscript 0.1.7
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 | |
|---|---|---|---|---|
| pypostscript-0.1.7.tar.gz | 112.6 kB | Without provenance | Details |
Release files / pypostscript-0.1.7.tar.gz
| Download URL | pypostscript-0.1.7.tar.gz |
|---|---|
| Size | 112.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c9f44e9df343361819c925426720071330b6d076aa81f4dbe5821086f8313c4
|
|
BLAKE2b-256 checksum How to use checksums |
3a8d28142177b72b6886ab65b002467b57b1ae9d12185756f4aa07705b3aa06e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pypostscript 0.1.7
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.