I have a user PDF upload submission system whereas quite often users will upload very large sized PDF's that have been originally meant for Print when we only need them for web sized viewing.
I need to automatically compress them on the server. We are running Windows Server 2003. Right now, we just have user upload PDF via SoftArtisans.FileUp
method.
My question is what is the best or easiest way to do this on the server automatically after user uploads PDF?
Why not try this site. Used it before and it works OK:
http://www.neeviapdf.com/PDFcompress/?w=code
Docotic.Pdf library may be useful in your case.
If I understand you right, you are willing to reduce size / quality of images in uploaded PDF files and apply other general compression options.
Below is a sample code for such scenario. The code:
Using a code like in the sample you should be able to optimize uploaded files.
Disclaimer: I work for Bit Miracle, the vendor of the library.