An open API service indexing awesome lists of open source software.

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

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