Print PDF files to a local installed printer
Project description
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for printfactory-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8110481f4c64df61950646dff5f9c902b8211a58a8c9314f06199f1d3fe22c36 |
|
MD5 | 4a3aac1c0d3ea1523be9696f8ae0a296 |
|
BLAKE2b-256 | b4d99efaa1fcd9ef834760c0eb3f09f447e64d6d5e3cf15ee2b8954fc3e5db78 |