Skip to main content

Print PDF files to a local installed printer

Project description

License?

printfactory

printfactory is a package, primarily for printing PDF files to a physical printer.

Table of Contents

Why?

The motivation for this project was to have a simple Python interface for printing PDF files to a physical printer. Only public available and free software should be used on the client or server using this package.

printfactory package

printfactory
    .list_printers()        # list/get available printers in system

    Printer()               # Generic Printer class for printing a file with a PrintTool
        .send()             # send a file to a printer using a PrintTool

    AcroPrinter(Printer)    # Subclass of Printer() for Adobe Acrobat
    AcroRdPrinter(Printer)  # Subclass of AcroPrinter() for Adobe Reader
   [FoxitPrinter(Printer)]  # Subclass of Printer() for Foxit Reader
   [LPRPrinter(Printer)]    # Subclass of Printer() for LPR printing on Linux like systems

    PrintTools()            # List/Enum of implemented tools for printing a file
        .find()             # Find a PrintTool in system

    PrintTool()             # List/Enum of implemented tools for printing a file
        Adobe Acrobat
        Adobe Reader
        Foxit Reader
        LPR


printer = printfactory.Printer('PrinterName')   # return Printer class
printer.tool => AdobeReader                     # autodetect path
printed = printer.send('PathToPDFDocument')     # return True or False

Changelog

All notable changes to this project will be documented in the CHANGELOG.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

printfactory-0.1.0a0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

printfactory-0.1.0a0-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page