Re: [iText-questions] colorspace exception during images extraction on a existing pdf

2014-05-28 Thread giansluca
thanks a lot .. i need to improve my Itex knowledge .. today is arrived a copy of Itext in Action second edition , i hope it can help me a little bit ;) if you have some advice to try to solve my problem .. i'm listening :) Gian -- View this message in context: http://itext-general.2136553.

Re: [iText-questions] Problem with remaining space

2014-05-28 Thread Aritz
You don’t need to take care of the other classes, just run the Main method of the PdfGenerator class. But don’t worry, I’ll try to find what is happening by myself. I understand that include the itextpdf5.3.2 as referenced library, the ARIALUNI.ttf in the src and run the main takes too much tim

Re: [iText-questions] Problems when using iTextSharp in a multithreaded application.

2014-05-28 Thread Paulo Soares
I suspect that the embedding of the full font file is not thread safe, only the subset. I'll check it out. Paulo On Wed, May 28, 2014 at 11:02 AM, iText mailing list wrote: > On 5/28/2014 11:11 AM, Kostas wrote: > > Note that we are using iTextSharp version 5.4.5.0. > > > Hmm... That's strang

Re: [iText-questions] Problems when using iTextSharp in a multithreaded application.

2014-05-28 Thread iText mailing list
On 5/28/2014 11:11 AM, Kostas wrote: Note that we are using iTextSharp version 5.4.5.0. Hmm... That's strange. I expected you to say it was a version predating 5.4.2.0 because that's when we made the FontFactoryImp class threadsafe. ---

Re: [iText-questions] Problem with remaining space

2014-05-28 Thread iText mailing list
On 5/28/2014 11:24 AM, Aritz wrote: Hope you can help me, because I don't understand why it works in some cases. I opened the ZIP-file and I saw that your code contains plenty of things that is irrelevant to the question. Use Occam's Razor to simplify your example. You are asking me to spend ti

Re: [iText-questions] Problems when using iTextSharp in a multithreaded application.

2014-05-28 Thread iText mailing list
On 5/28/2014 10:31 AM, Kostas wrote: > We are using iTexSharp in an ASP.NET MVC web site and we have noticed > that when two requests arrive that utilize the same iTextSharp > functionality we get an exception. Which version of iTextSharp are you using? --

Re: [iText-questions] Problems when using iTextSharp in a multithreaded application.

2014-05-28 Thread Kostas
Note that we are using iTextSharp version 5.4.5.0. From: Kostas [mailto:k...@dataverse.gr] Sent: Wednesday, May 28, 2014 11:32 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Problems when using iTextSharp in a multithreaded application. We are using iTexSharp in an

[iText-questions] Problems when using iTextSharp in a multithreaded application.

2014-05-28 Thread Kostas
We are using iTexSharp in an ASP.NET MVC web site and we have noticed that when two requests arrive that utilize the same iTextSharp functionality we get an exception. No apparent problem exist when testing in one request at a time. Here is the exception: System.Reflection.TargetInvocationExc

Re: [iText-questions] colorspace exception during images extraction on a existing pdf

2014-05-28 Thread iText mailing list
On 5/27/2014 11:02 PM, giansluca wrote: > byte[] barray = PdfReader.getStreamBytesRaw((PRStream) stream); You're reading the stream, but... this stream is useless without the corresponding stream dictionary. The stream dictionary will inform you about the Filter that is used, e.g. DCTDecode means

Re: [iText-questions] colorspace exception during images extraction on a existing pdf

2014-05-28 Thread giansluca
thaks Leonard yes you're right! it isn't a jgp image and i can not find what type of image is it! :/ in this way (with direct reference) i can get the byte array of image ... PdfReader reader = new PdfReader("filePath"); PdfObject o = reader.getPdfObject(renderInfo.getRef()); PdfStream stream =