Coder Social home page Coder Social logo

pdfbooklet's Introduction

PDF Booklet

OS X / macOS command line utility to reorder pages in a PDF file for booklet printing.

pdfbooklet copies pages from a pdf file to a new pdf file in an order appropriate for booklet printing. If the number of pages in the input file is not a multiple of 4, empty pages get inserted. The inserted pages have the same size as the first page.

Order of pages in the output:

  • last page
  • first page
  • second page
  • second-last page
  • third-last page
  • third page
  • fourth page
  • ...

Print layout settings to use for the newly created PDF:

  • Pages per Sheet: 2
  • Layout direction: 1st option (looks like a Z) or 3rd option (looks like mirrored N)
  • Two-Sided: Short-Edge binding

Print dialog screenshot

Runtime Requirements

OS X 10.9 (Mavericks), OS X 10.10 (Yosemite), OS X 10.11 (El Capitan), or macOS 10.12 (Sierra), or macOS 13.x (Ventura).

Install via Homebrew

You can simply install it by executing:

	brew install sptim/formulae/pdfbooklet

Build and Install from Source

There are no extra requirements except Xcode.

To build from command line simply run xcodebuild in the project root folder. If you prefer to use the Xcode IDE, open pdfbooklet.xcproject and choose Build from the Product Menu.

Installation steps:

  • Copy the pdfbooklet executable to /usr/local/bin/
  • Copy the pdfbooklet.1 man page to /usr/local/share/man/man1/

Alternatively you can also invoke xcodebuild install DSTROOT=/ to build and install the executable in one step. This does not install the man page.

pdfbooklet's People

Contributors

flagsoft avatar sptim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.