wubzz / pdf-merge

Merge multiple PDF Files into a single PDF document
127 stars 32 forks source link

How to specify a handle for each file ? #31

Closed seme1 closed 5 years ago

seme1 commented 5 years ago

I'm attempting to use the cat option which requires specifying a handle for each file as documented here: https://www.pdflabs.com/docs/pdftk-man-page/#dest-op-cat

How to specify file handles ? In particular, I'm trying to specify page numbers/ranges for each file to be merged

wubzz commented 5 years ago

This is currently not part of this module, but a Pull Request is welcome.

seme1 commented 5 years ago

This is embarrassing, but I don't know how to "make a pull request". I modified the code and it works perfectly fine for me. The code is in this pastebin: https://pastebin.com/zVB1rC12

Can you please merge it with the current code you have ? I simply added an option called 'catOpt' to specify the page range for each file.

wubzz commented 5 years ago

Unfortunately as you can probably tell by how slow I'm responding to issues I am much too busy. You can find out how to make Pull Requests or hope someone else who has time comes by and does this for you.