https://github.com/chasestarr/pdfmerge
Walks through file system tree and merges pdf documents in 'leaf' directories
https://github.com/chasestarr/pdfmerge
go jar leaf pdf tree
Last synced: 12 months ago
JSON representation
Walks through file system tree and merges pdf documents in 'leaf' directories
- Host: GitHub
- URL: https://github.com/chasestarr/pdfmerge
- Owner: chasestarr
- Created: 2017-01-10T00:47:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-10T17:55:40.000Z (over 9 years ago)
- Last Synced: 2025-05-31T19:23:16.635Z (about 1 year ago)
- Topics: go, jar, leaf, pdf, tree
- Language: Go
- Size: 6.68 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Mergepdf
Walks through file system tree and merges pdf documents in 'leaf' directories
```shell
$ go run main.go
```
### Jar file info:
This repo contains the pdfbox.jar file already, but if you want to download it yourself get it from apache [here](https://pdfbox.apache.org/download.cgi)
### Example folder structure:
- root_folder
- sub_folder
- pdf_a.pdf
- pdf_b.pdf
- sub_folder
- pdf_c.pdf
- pdf_d.pdf
- sub_folder
- pdf_e.pdf
- pdf_f.pdf
### Example command:
```shell
$ go run main.go ./root_folder ./jar/pdfbox.jar output.pdf
```
### Example output folder structure:
- root_folder
- sub_folder
- pdf_a.pdf
- pdf_b.pdf
- output.pdf
- sub_folder
- pdf_c.pdf
- pdf_d.pdf
- output.pdf
- sub_folder
- pdf_e.pdf
- pdf_f.pdf
- output.pdf