This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

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()
Release History

Release History

0.1.7

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pypostscript-0.1.7.tar.gz (112.6 kB) Copy SHA256 Checksum SHA256 Source Feb 28, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting