I have some very large PDF files that are being created using C# and ItextSharp. One of the biggest files gets very close to the 10GB limit on file. iText will never compress an XMP metadata stream; all other content streams are compressed by default. You’ve already used the setCompressionLevel(). I want to compress a PDF file size from MB’s to KB’s (if the file size is 5 MB then it should be compressed in to KB’s like KB or KB).

Author: Akijind Akinoran
Country: Monaco
Language: English (Spanish)
Genre: Video
Published (Last): 21 December 2010
Pages: 218
PDF File Size: 9.6 Mb
ePub File Size: 1.44 Mb
ISBN: 650-2-48245-569-6
Downloads: 69026
Price: Free* [*Free Regsitration Required]
Uploader: Akinogul

On Tue, Jul 8, at 8: Treat my content as plain text, not as HTML. Articles Quick Answers Messages Use my saved content filters. Show message ; Process. How to itextaharp this?

Just a test so far. Irextsharp levels The next example uses different techniques to change the compression settings of a newly created PDF document.

You need a human being to make that decision. Essentially, I have a list of folders that contain many PDF files ranging from 1MB to 10MB in size, and the quantity of these folders keeps growing every day, so to save disk space I would like to be able to read in a PDF file once it has been processed, compress it, then save it to the designated folder location. If iTextSharp does not support compression, does anyone have suggestions for other. You need to be more specific here To get an idea whats possible try the following two options in adobe acrobat: Free Support If you have a technical question, and want an answer for free, you can post questions to: Read the question carefully.


BrunoLowagie, I absolutely agree that changing an image in any way could destroy the original intention of the image and make it not usable. PDFs created from a scanner etc.

C# and itextsharp PDF compression

In reply to this post by Carlos Arturo Bernal Carvajal. Have you considered compressing the images prior to adding them to the PDF? If you find any error, please report it then we will take actions to correct it as soon as possible.

You should do one of these too. Since all invoices had the same background, I solved my problem by using the “template” feature of iTextSharp, where you can set up a “template” once in the file and then include it on each page. Encrypting a PDF document iText 5.

PdfStamperImp is derived from PdfWriter and when you use stamper.

Community Websites Community Support. I’ve been on this for 3 days now, and frankly have run out of ideas. The result is a document whose PDF syntax can be seen in the content streams of each page when opened in a text editor. Understand that English isn’t everyone’s first language so be lenient of bad spelling and grammar. Please Sign up or sign in to vote.


Remove From My Forums. Depending on the version cojpression iTextSharp you’re using reader.

Forums – C# Corner

Video Tutorials C Fundamentals: One of the biggest files gets very close to the 10GB limit on file size. Request-for-help itextshafp should be made with effort Rule 5: Best Regards, We are trying to better understand customer views on social support experience, so your participation in this fompression project would be greatly appreciated if you have time. Below is the code for anyone who may ever need it. Provide an answer or move on to the next question. Insults are not welcome. The rest is actual image compression inside the PDF.

C# and ItextSharp PDF compression : csharp

This is only possible since PDF version 1. Chances are they have and don’t get it. Log in or sign up in seconds. Close ; With that said there are some 3rd party tools out there that will do it for you, but I don’t know of any free ones. Don’t tell someone to read the manual. I’ll remember itextwharp for a possible follow up project!

We store our scanned doc’s as PDF’s, which are stored as blobs in our database. No malicious, intentionally harmful software Rule 3: Post as a guest Name.