Giter Site home page Giter Site logo

mergepdfs's Introduction

mergepdf

Simple personal commandline utility to merge all pdfs in a directory. Only tested on OSX, built using lein-bin. Built because I often find myself with a directory full of PDFs (chapters of bigger writing project, anonymized student work that needs to be compiled and shared, etc.) that need to be merged and it's an annoying hassle to do it with big icky GUI apps or web services.

Installation

Download the binary merge-pdfs either in the binary directory here or from the releases page. Stick it on your path. Make it executable.

(or use one of the JAR files, or build it yourself, or whev.)

Usage

$ merge-pdfs outfile.pdf

will take every PDF in the directory you run it from and merge them into a file called output.pdf

it's basically alphabetical order, I think it goes in the order that directory listings show up in.

Also, it will produce a bunch of PDFBox warnings about not closing PDF files. This comes from one of the libraries I use, and I'm not worrying about it. I like to think that the OS or the JVM's garbage collector will manage to free up the resources left by leaving a few files open. But if you use this to merge LOTS of files, it might be an issue. Sorry about that. :-(

Options

You get to specify the filename of the generated file. That's about it.

License

All the code here is trivial, and some of it is straight cookbook code, so I'm not claiming any kind of copyright at all. Any bits that I could claim copyright in are hereby committed to the public domain. Ignore any cruft floating around in the files leiningen created to the contrary.

mergepdfs's People

Contributors

paultopia avatar

Watchers

Mayorga M. F. avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.