Code Monkey home page Code Monkey logo

pdf2tiff's Introduction

PDF2TIFF

A bash shell script to convert PDFs in a folder to bitonal multi-page tiff files

Getting Started

Run pdf2tiff.sh within a folder of PDFs you want to convert. TIFF files will be produced alongside your PDFs. PDFs are not changed in any way.

Prerequisites

This script requires GhostScript. If you don't have it, you can install it.

sudo apt install ghostscript

Installing

Copy or pull pdf2tiff to your machine

make the script executable

chmod u+x pdf2tiff.sh

Execute pdf2tiff

pdf2tiff.sh

Or run with bash if you don't want to make it executable

bash pdf2tiff.sh

You can refer back to the location of the script when you need to use pdf2tiff in another folder.

bash ~/somefolder/pdf2tiff.sh

Example

$ bash pdf2tiff.sh
Converting PDF to TIFF - demo.pdf...
GPL Ghostscript 9.19 (2016-03-23)
Copyright (C) 2016 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 24.
Page 1
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8
Page 9
Page 10
Page 11
Page 12
Page 13
Page 14
Page 15
Page 16
Page 17
Page 18
Page 19
Page 20
Page 21
Page 22
Page 23
Page 24
processed demo.pdf to TIFF in 1 seconds
1 processed in 1 seconds

pdf2tiff's People

Contributors

andrewpearce-digital 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.