Print PDF files to a local installed printer using a print tool
Project description
printfactory
printfactory
is a package, primarily for printing PDF files to a physical printer.
Example
import pathlib
import printfactory
printer = printfactory.Printer(
printer_name='My Printers Name',
)
print_file = pathlib.Path('pth/to/my.pdf')
printer.send(print_file)
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.0a1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for printfactory-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c80a0c52ec9b9b4378eaad84a4696915e8c02d9500738ea8d3382089e1d9dae |
|
MD5 | 999f994f4792c13bf440918d9eeca13a |
|
BLAKE2b-256 | a800b221670de6f0a03042eb80887eb00251a09f6b013deb3f5c83f62e3d4659 |