Skip to content

A Clojure library that splits and merges PDFs

License

Notifications You must be signed in to change notification settings

stefanhengl/pdfsplit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

pdfsplit

A Clojure library that splits and merges PDFs.

Installation

Clojars Project

Usage

Split

split splits a pdf, saves the individual pages to disk, and returns a lazy sequence of the file-names (string)

(:require [pdfsplit.split :refer [split]])
(split "path/to/file.pdf")

Given a multi-page pdf "file.pdf", the indiviudal pages are saved next to "file.pdf" as file_0.pdf, file_1.pdf and so on.

Merge

merge-pdfs merges arbitraily many source PDFs into one target PDF

(:require [pdfsplit.merge :refer [merge-pdfs]])
(merge-pdfs "path/to/target.pdf" "path/to/source1.pdf" "path/to/source2.pdf" "path/to/source3.pdf")

About

A Clojure library that splits and merges PDFs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published