Skip to content

Walks through file system tree and merges pdf documents in 'leaf' directories

Notifications You must be signed in to change notification settings

chasestarr/pdfmerge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mergepdf

Walks through file system tree and merges pdf documents in 'leaf' directories

  $ go run main.go <root directory> <path to pdfbox.jar> <output file name>

Jar file info:

This repo contains the pdfbox.jar file already, but if you want to download it yourself get it from apache here

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:

  $ 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

About

Walks through file system tree and merges pdf documents in 'leaf' directories

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages