Lower resolution of .PDF
-
We are producing proofs of files we intend to print; however, the files are sometimes 80 mg in size. Producing a proof with variable data is not an issue. The issue is the amount of time it takes to open and view the pdf's over the web; therefore, the question is... Is there a way to automatically reduce the resolution of the pdf using C#, VB, C++ or iTextSharp? Thanks, Steve
-
We are producing proofs of files we intend to print; however, the files are sometimes 80 mg in size. Producing a proof with variable data is not an issue. The issue is the amount of time it takes to open and view the pdf's over the web; therefore, the question is... Is there a way to automatically reduce the resolution of the pdf using C#, VB, C++ or iTextSharp? Thanks, Steve
You'd have to recompose the entire document in order to do that. Any "oversized" pictures would need to be resampled to a lower resolution and put back into the document to reduce it's size. You might just want to compose two documents instead. One with reduced size pictures and another with "normal". If they want the "good" one, you can provide a link to the second download.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
We are producing proofs of files we intend to print; however, the files are sometimes 80 mg in size. Producing a proof with variable data is not an issue. The issue is the amount of time it takes to open and view the pdf's over the web; therefore, the question is... Is there a way to automatically reduce the resolution of the pdf using C#, VB, C++ or iTextSharp? Thanks, Steve
This: http://www.websupergoo.com/abcpdf-5.htm[^] will let you do anything you want to PDFs through C#. You can also change the compression scheme used, which can speed transmission up considerably.
-
We are producing proofs of files we intend to print; however, the files are sometimes 80 mg in size. Producing a proof with variable data is not an issue. The issue is the amount of time it takes to open and view the pdf's over the web; therefore, the question is... Is there a way to automatically reduce the resolution of the pdf using C#, VB, C++ or iTextSharp? Thanks, Steve
Are you accidentally including text as images, instead of text? That is usually why PDFs get huge. For included images (or other large resources e.g. embedded fonts) within a document, make sure you're using a sensible compression scheme (JPEG or gzip). Complex page streams should also be compressed, but simple ones shouldn't (it makes the file bigger).