https://github.com/stefanhengl/pdfsplit
A Clojure library that splits and merges PDFs
https://github.com/stefanhengl/pdfsplit
clojure merge pdf pdfbox split
Last synced: 2 months ago
JSON representation
A Clojure library that splits and merges PDFs
- Host: GitHub
- URL: https://github.com/stefanhengl/pdfsplit
- Owner: stefanhengl
- License: mit
- Created: 2018-05-23T10:48:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-24T09:38:18.000Z (about 7 years ago)
- Last Synced: 2025-02-05T05:27:30.871Z (4 months ago)
- Topics: clojure, merge, pdf, pdfbox, split
- Language: Clojure
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/stefanhengl/pdfsplit)
# pdfsplitA Clojure library that splits and merges PDFs.
## Installation
[](http://clojars.org/pdfsplit)
## Usage
### Split
`split` splits a pdf, saves the individual pages to disk, and
returns a lazy sequence of the file-names (string)```clojure
(: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
```clojure
(:require [pdfsplit.merge :refer [merge-pdfs]])
(merge-pdfs "path/to/target.pdf" "path/to/source1.pdf" "path/to/source2.pdf" "path/to/source3.pdf")
```