We have a proces that merges multiple PDF files together to make a composite file. When done we can have a PDF file that 1 - n pages as well as exceed 200 MB in size. We are dealing with a downstream process that limits our uploading ability to file sizes around 50 MB so we need to break the combined file into smaller fractions. This is obtainable. Since we are building this composite file from multiple source we have both digital as well as scanned image files that make dividing the file based upon just page numbers not work. Is there a way to determine the relative (guess) size that the a PDF would be by looping through the composite PDF page by page so that when we exceeded 45 MB for example we would be able to extract those pages into a smaller fraction and then re-start the process for te next fraction.
Any suggestions would be helpful.