Closed bcamp1973 closed 9 years ago
Could you upload an example PDF file somewhere, so I can play with your example command lines?
Sure, here's a file i've been playing with. Thx for looking into it!
Your mistake here is that -label-startval is to do with page labels, and nothing to do with the names of split files. So your second set of split files are overwriting the first set.
If you're intending to buy a commercial license for cpdf (it looks like you're doing some commercial work), please email me directly using the contact address on the website, and we can consider adding a feature which does what you are trying to do with -label-startval 37 in your example.
Thanks for looking into it @johnwhitington, in the meantime I've composed some scripts for Automator (Mac OS) that are meeting my needs. I'll see how these work for a bit and reconsider cpdf in the future if my needs change.
I have a common pattern that I need to handle, but I think I'm making it more complicated than it needs to be (I'm not very comfortable in the terminal). The requirements are:
p%%%.pdf
p036.pdf
My first thought was to use 4 separate commands:
cpdf source.pdf 1-37,39-end -o source.pdf
`cpdf source.pdf 1-35 AND -split -o p-%%%.pdf
cpdf source.pdf 36-37 -o p-036.pdf
cpdf source.pdf 38-end AND -split -label-startval 37 -o p-%%%.pdf
Long story short...lots of typing and not getting the results I want :(