I want to split a big PDF document with a specific criteria. Each page has the following header:
The code (in the PDF Header image is 000084292) can change after a random number of pages (I can have a new code after 1 page or maybe 3 or 10 ...). So everytime I found a new code in the header, I must create a new file with file name = code (for example: if my current code is 000084292 when I find the code 000084345, I must create the file 000084292.pdf, keep reading the original PDF document, if I find the code 000087209, I must create the file 000084345.pdf ....).