not sure if this is the right board. anyway: i'm trying to split a pdf file into multiple parts (example: file has 5 pages, page 1 and 2 should be one file, 3 to 5 the other one) in my C++ project.
i decided to go with the ghostscript API. first i looked at the "official" documentation and the ghostscript tutorial from thomas merz.
however i haven't been able to find out how to split pdf files with GS.
if i understood the documentation correctly, i'd have to initialize an array with various arguments and call some (seemingly four) functions.
my problem is that i don't know which arguments the GS API needs to split a pdf file (and apparently i wasn't smart enough to figure it out on my own). does somebody here have some experience with ghostscript (and is willing to help me ;-)?
thanks in advance