PDF Compression like smallpdf.com programmatically in C# -


i using itextsharp c# stamp information/merge fields pdf. working well.

my problems that pdfs little large, 1.1m sometimes. make them smaller. tried compression itextsharp did not much.

i found website called smallpdf.com can drag , wonderful job in compressing them. want, except want programmatically, because emailing files afterwards.

anyone know if have c# version or there other software guys can suggest compresses file? dont mind paying reasonable amount if gets results smallpdf.com , easy use.

you can compress pdf files ghostscript:

gs -q -dnopause -dbatch -dsafer \     -sdevice=pdfwrite \     -dcompatibilitylevel=1.3 \     -dpdfsettings=/screen \     -dembedallfonts=true \     -dsubsetfonts=true \     -dcolorimagedownsampletype=/bicubic \     -dcolorimageresolution=144 \     -dgrayimagedownsampletype=/bicubic \     -dgrayimageresolution=144 \     -dmonoimagedownsampletype=/bicubic \     -dmonoimageresolution=144 \     -soutputfile=output.pdf input.pdf 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -