1 person found this helpful
What you are doing (PDF->PS->PDF - something usually referred to as "refrying" the PDF) is not optimizing a PDF document. Yes, you may end up with a smaller file, that that is not because it's optimized, it's because you've eliminated information that should be part of a well made PDF file. You end up with a lower quality PDF file. Take a look here for some background information about what you are doing by refrying the PDF: http://www.gwg.org/wp-content/uploads/RefryingPDF.pdf
Regarding your problems, the first thing I would check is to see if the files that are causing problems are protected. If they are, you will not be able to refry them.
Firstly thank you very much for your valuable input and the article on "Refrying".
Actually we are building a dot net application that splits pdf pages and store them into a specific disk path. Now for some PDF files the extracted pages [saved as PDF] are of very large size which actually reduces our disk space and also affecting user experience when showing them through a viewer. When these PDF files are optimized as stated in my previous post, the extracted pages size get reduced. Also the quality is not heavily compromised.
"Optimzed" isn't an on/off state you can test for.
You need to find out what is causing these large files. You can do that with Adobe Acrobat Pro when you select to save as an optimized PDF file, and then select the "Audit Space Usage" button in the upper right corner:
The results will tell you what you need to do to shrink the file size. This could for example be to subset embed all fonts, or to downsample images or whatever else is necessary to get to a more appropriate file size. Once you know what it is, you can then look for mechanisms to do that in your programming environment.
Thanks for your input Karl.
I done some further investigation on the original PDF and the splitted PDF [each page].
I checked for that and it reveals that 99% of space is used for the images in pdf. The initial file was of 30 MB and when extracted to the pages all the pages [there are 2800 pages] are of 22 MB of size. That is why I am running out of space when splitting the PDF into pages. I think there are some common images in every page [company log] that is very large in size. In the original PDF somehow acrobat refers the same image in all pages that is why it was of 30 MB, But when splitted into pages all the page have the common image and hence they are altogether bigger in size than of the original file. I need to somehow compress the logo to get size reduced in individual pages by using acrobat JS API.
Please let me know your thoughts on this, if I am going in correct direction.