Skip to content

a cobbled together script to make my life slightly less painful when asked to print a large number of pdf files every so often

License

Notifications You must be signed in to change notification settings

hen0014/adobe-pdf-print

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

adobe-pdf-print


adobe-pdf-print


Explore the project »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Making changes
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

I have to sometimes print a lot of PDFs at once, for example, 20+ documents at a time every blue moon. It takes a lot of time to open Adobe Reader> print > printer settings> print.

I am basing this script around Adobe Reader command line options, not because it is a good idea (you can't run Adobe Headless), but because it is a standard app a lot of workplaces have and trust to process their PDFs. there are additional Python libraries you can install with pip, or pdf printer binaries, but you are trusting a third-party bit of code from the internet which you might have to explain to someone. far easier to say it's just an automation script for the default pdf reader app than it's a program using another program or library set no one has heard of.

this is an initial commit to get it revision-controlled, buggy junk which i have not fully tested yet.

Getting Started

The script comes in two parts:

  1. pdfprint.py -- file containing the class implementation for printing
  2. pdf_print.py -- the file you run and uses the pdfprint.py class file

Prerequisites

The following python libraries are required.

python

  • N/A

software

  • Adobe reader

Installation

  1. Open the project at .insert local path of script here with an editor. Preferrably vscode
  2. You could also clone the repo
    git clone https://github.com/hen0014/adobe-pdf-print.git
    

Usage

command line options ./pdf_printer.py <--readOptions> <--debug> <--silent> <--options> <--all>

'directory', help='Directory to print PDFs from, specify "pwd" or directory', default='pwd' 'printer', help='Printer to print PDFs to', default='lexy=print' '-ro', '--readOptions', help='Read options from file' '-d', '--debug', help='Debug mode', action='store_true' '-s', '--silent', help='Silent mode', action='store_true' '-o', '--options', help='Options to print PDFs', nargs='+' '-all', '--all', help='Print all PDFs in directory', action='store_true'

Notes:

  1. N/A

Making Changes

Roadmap

  1. tidy up the scripts
  2. implement a read files to print from file
  3. fix option names for the main script (change --readOptions to --file, --options to --printlist, etc)

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Project Link: aodbe-pdf-print

About

a cobbled together script to make my life slightly less painful when asked to print a large number of pdf files every so often

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages