Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread Suresh Amsala
Is there any way for do that without REFRYING operation. On Tue, Jul 8, 2014 at 9:22 PM, Leonard Rosenthol wrote: > Just remember that doing that is considered a REFRYING operation and is > quite LOSSY. If that's OK for your content - feel free, but just make sure > you understand the risks i

Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread Leonard Rosenthol
Just remember that doing that is considered a REFRYING operation and is quite LOSSY. If that’s OK for your content – feel free, but just make sure you understand the risks involved in doing so. Leonard From: Carlos Arturo Bernal Carvajal mailto:bernalcarva...@gmail.com>> Reply-To: Post here

Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread Suresh Amsala
Dear TVT, Thanks for Reply. Some of the pdf's contains images and text and some of them are contains plain text some of them both. So, what ever the pdf's content I want to compress it to KB's and quality should be 70%-80%. On Tue, Jul 8, 2014 at 8:48 PM, TvT wrote: > Ok Suresh, > > that is no

Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread Carlos Arturo Bernal Carvajal
You could try using Ghostscript after generating the PDF width iText. http://www.ghostscript.com/ It works really good for me. I work at a photobook internet company and we generate the print PDF's using iText, but the output can be huge, like 500mb, so we use Ghostscript to compress the resulting

Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread Leonard Rosenthol
I understand your end goal – but doing that ONCE will show if it’s even possible to reduce the size of your file… As we’ve been trying to explain, there are MANY THINGS that you could POSSIBLY do to reduce a PDFs size…BUT ONLY YOU can decide which ones you are willing to accept and then if thos

Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread TvT
Ok Suresh, that is not possible. Some pdfs do not contain any images, nor any unused objects - size reduction is not possible in that case even if the pdf is 200 MB. I am guessing you want to reduce the size of Pdfs which mostly (or only) contain images (e.g. PDFs created from a scanner etc). You

Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread Suresh Amsala
Dear Leonard Rosenthol, I didn't try using Adobe Acrobat but i want to do through programmatically not manually why because that is not a fixed size it may vary and the files should be uploaded by users. The quality should maintain 70%-80% compare to original pdf.The remaining things I don't mine

Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread Leonard Rosenthol
Did you try using Adobe Acrobat (even a trial version) to see if it can reduce the size of your PDFs? Depending on what is in there, and what options are important to you (embedded fonts, high quality images, etc.) it may not be possible to reduce the size. Leonard From: Suresh Amsala mailto:

Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread Suresh Amsala
I am uploading 20 MB pdf file it contains images and text and i want to compress this file size to bellow 1 MB using iTextSharp in C#. How to do this? I tried TVT's Sample code but the file does not compressing I mean the file size is same before uploading and after uploading. On Tue, Jul 8, 201

Re: [iText-questions] Extracting content from Pdf document throws exception

2014-07-08 Thread iText mailing list
On 7/8/2014 2:04 PM, göktürk mavuş wrote: > I donot understand what you are trying to say in the below paragraph; thus, > may you clearify it. To remind, I just tried to extract the text from pdf. You assume that all text is in the Content stream. That assumption is wrong. Text can be in an exte

Re: [iText-questions] Why is PdfName.ON lower case and how to submit patch/trigger a code change?

2014-07-08 Thread Leonard Rosenthol
PDF Names are case sensitive - so Acrobat is behaving correctly and the Chrome browser is being lenient (though not necessarily in a good way!) Leonard On 7/8/14, 9:25 AM, "Linda Briesemeister" wrote: >Hello, > >We are evaluating iText 5.5.1 for our needs and I came upon the following >peculiar

[iText-questions] Why is PdfName.ON lower case and how to submit patch/trigger a code change?

2014-07-08 Thread Linda Briesemeister
Hello, We are evaluating iText 5.5.1 for our needs and I came upon the following peculiarity. We want to generate a PDF that has layers (optional content groups or OCGs) where one layer is only shown when viewed in a reader and not when printed and the other layer is only shown when printed bu

Re: [iText-questions] Extracting content from Pdf document throws exception

2014-07-08 Thread göktürk mavuş
I donot understand what you are trying to say in the below paragraph; thus, may you clearify it. To remind, I just tried to extract the text from pdf. My last question, how can I fix the problem and as I understand, I am ddoing something wrong. Can you show me proper way? > Also: what is the p

[iText-questions] Extracting content from Pdf document throws exception

2014-07-08 Thread göktürk mavuş
To extract content from a pdf file, I have used below code segment working with the iText library. However, for some pdf documents, it throws an exception which is shown at below of the code. I donot understand why this exception is sent for some document but for some other it is not thrown. Mor

Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread TvT
There are several options but mkl is right: You need to be certain that there are unused things in your pdf. To get an idea whats possible try the following two options in adobe acrobat: "File > Save As > Optimized PDF...", and "File > Save As > Reduced Size PDF...". In iText you got several optio

[iText-questions] [SPAM] Re: Extracting content from Pdf document throws exception

2014-07-08 Thread mkl
göktürk mavuş wrote > for some pdf documents, it throws an exception which is shown at below of > the code. I donot understand why this exception is sent for some document > but for some other it is not thrown. Moreover and urgently, how can I > solve this problem? > > > ... >

Re: [iText-questions] Extracting content from Pdf document throws exception

2014-07-08 Thread iText mailing list
On 7/8/2014 1:45 PM, göktürk mavuş wrote: > reference = (PRIndirectReference) > dictionary.get(PdfName.CONTENTS); > /*line 166*/contentStream = (PRStream) > PdfReader.getPdfObject(reference); You are assuming that the Contents of a page is ALWAYS a

Re: [iText-questions] [SPAM] Re: itext with dynamic headers

2014-07-08 Thread iText mailing list
On 7/8/2014 1:10 PM, mkl wrote: > I.e. essentially a > generic programming task. That was the point I tried to make. I fail to see the problem as far as iText is concerned. -- Open source business process management suite

[iText-questions] [SPAM] Re: itext with dynamic headers

2014-07-08 Thread mkl
Randy Hoover, Randy E. Hoover wrote > I am calling the event when the CreatePDF method is called and looping > thru each day (setting the member variable in foreach loop) ... the > EndOfPage event is called during creation of PDF from stream after > CreatePDF ... hence the only stored value in the

[iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread mkl
Amsala Suresh, Suresh Amsala wrote > 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 500 KB or 600 KB). What information in those PDFs is superfluous in your context and can be thrown away? Regards, Michael PS: Kn

[iText-questions] Reduce PDF file size

2014-07-08 Thread Suresh Amsala
Hi, 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 500 KB or 600 KB). How can I achieve this using iTextSharp in C#. -- Thanks and Regards Amsala Suresh 9966151913 -

Re: [iText-questions] AddImage Parameters

2014-07-08 Thread babard
How about this one? http://www.keepautomation.com/products/java_barcode/ -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community E