Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Kobty, Joseph
Actually, it is when I run it as part of an IIS process (WCF service) I get this behavior (regardless 32 or 64 bit IIS) It works if I run it as a console application. I do not get the memory leak -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: August 10, 2009 5:0

Re: [iText-questions] Capturing user events to add annotations/OT

2009-08-10 Thread Leonard Rosenthol
Don't look at Adobe - we've been offering OCR in Acrobat for almost a decade now... However, as you know, there are THOUSANDS of other ways to create PDF files that have nothing to do with our products. Or are you suggesting that Adobe Reader (get even larger and) have an integrated OCR engine

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Kobty, Joseph
Ok narrowed it down further. Problem seems to be happening on a 2003 server running IIS 64 bit. Works fine on Windows XP server running IIS 32 bit. -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: August 10, 2009 5:03 PM To: Post all your questions about iText here

Re: [iText-questions] Capturing user events to add annotations/OT

2009-08-10 Thread Mike Marchywka
> From: lrosenth > To: itext-questions@lists.sourceforge.net > Date: Mon, 10 Aug 2009 13:45:50 -0700 > Subject: Re: [iText-questions] Capturing user events to add annotations > > You are basically on your own (or starting from any of those various tools

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Paulo Soares
I have this code running and all is ok. for (int i = 0; i < 100; i++) { Document pdfDocument = new Document(); FileStream strm = new FileStream("c:\\atp.pdf", FileMode.Create); PdfWriter writer = PdfWriter.GetInstance(pdfDocument, strm); pdfDocument.Open(); pdfDocument.Add(new Paragraph("

Re: [iText-questions] Capturing user events to add annotations

2009-08-10 Thread Leonard Rosenthol
You are basically on your own (or starting from any of those various tools you mention) to present to the user your own UI for commenting on a PDF. However, since Adobe Acrobat works just fine inline in the browser - I guess I don't understand why that doesn't work? Leonard -Original Messa

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Kobty, Joseph
Yes I am using V4.1.6. The .NET I have installed has version 2.0.50727.42 Which I believe has the latest service packs. -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: August 10, 2009 4:16 PM To: Post all your questions about iText here Subject: Re: [iText-questio

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Kobty, Joseph
Hi I added that code after I encountered the problem thinking iTextSharp maybe doing something that is resulting in the stream being not closed. Since I suspect this memory leak has something to do with file handles or something like that, I was trying to force everything to close to see if it h

[iText-questions] License agreement

2009-08-10 Thread Patrick Dethioux
Dear  Mr. Lowagie,   I am working on the development of a java based web application that generates pdf files. I am not familiar with all the technical legal terms of the MPL and LGPL licenses and I am wondering if I am legally allowed to freely use all the iText libraries to generate PDF used

[iText-questions] Capturing user events to add annotations

2009-08-10 Thread cg2
We want to allow users to add annotations to PDF's through a web application. Ideally, there would be a standard toolbar with options that we limit to highlighting, rectangles, notes, etc. They would use the toolbar within the web app to add, edit and remove annotations to PDF documents (resulting

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Howard Shank
Joseph, A couple of questions for you. 1. Why are you closing the strm? It is inside a using block and that handles it for you. 2. Why are you closing the strm before finishing the PDF? You should consider the following, Remove strm.close(); Regards, Howard Shank

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Paulo Soares
Are you using iTextSharp 4.1.6? If you are using .NET 2.0 without SP1 you may have leaks due to leaks in the framework. Paulo - Original Message - From: "Kobty, Joseph" To: Sent: Monday, August 10, 2009 8:46 PM Subject: [iText-questions] out of Kernel memory Hi I am creating PDF doc

[iText-questions] out of Kernel memory

2009-08-10 Thread Kobty, Joseph
Hi I am creating PDF documents on the fly using iTextSharp. I noticed that the server where I am running this process runs out of Kernel memory (System memory) After about 50,000 files. I commented out all the code to see what is causing it, and it seems the mere fact of opening a PDF document an

Re: [iText-questions] Stamping on my Windows XP box doesn't copy thepdf elements.

2009-08-10 Thread Paulo Soares
This is something that can only be fixed by having access to the machine. It may be a file access problem or a broken Java install or something else. Paulo - Original Message - From: "z flaherty" To: Sent: Monday, August 10, 2009 4:33 PM Subject: [iText-questions] Stamping on my Windo

[iText-questions] Stamping on my Windows XP box doesn't copy the pdf elements.

2009-08-10 Thread z flaherty
Suppose my code looks something like this: PdfReader reader = new Reader("foo.pdf"); ByteArrayOutputStream out = new ByteArrayOutputStream();PdfStamper stamp = new PdfStamper(reader, out);Acrofields form = stamp.getAcroFields(); form.setField("fieldName", "test");form.setField("fieldName2", "tes

Re: [iText-questions] Adobe 9 complaining about PDF/A where as Adobe 8not

2009-08-10 Thread Paulo Soares
CIDset is set when creating a new document but not when changing an existing document because the conformance flag is not set or checked. Looks like a bug. Paulo - Original Message - From: "Leonard Rosenthol" To: Sent: Monday, August 10, 2009 2:28 PM Subject: Re: [iText-questions] Ad

Re: [iText-questions] HTML Snippits to Phrase

2009-08-10 Thread 1T3XT info
pbs wrote: > Thank you - I have had a look at these examples, but they all reference an > external html file whereas I want to pass just snippits of html. Yes, but this method is more or less what you need: public static boolean addText(String s, PdfContentByte canvas, float[] f, float si

Re: [iText-questions] HTML Snippits to Phrase

2009-08-10 Thread pbs
Thank you - I have had a look at these examples, but they all reference an external html file whereas I want to pass just snippits of html. Many thanks pbs wrote: > > Hi. > > I have been using Phrases to generate text on my pdf document. When I need > to an element of it to be bold, I add a C

Re: [iText-questions] HTML Snippits to Phrase

2009-08-10 Thread 1T3XT info
pbs wrote: > Is there a way I can pass something like this in one go. > > This is normal This is bold > > to result in this. > > This is normal This is bold > > I have looked at the the Html Parsers but they all seem to want a whole HTML > file, whereas I am looking for a simple way to p

Re: [iText-questions] Multiple digital signatures

2009-08-10 Thread Leonard Rosenthol
Yes, Parts 3, 4 and 5 are being submitted to ISO 32000 for inclusion in their Part 2. Leonard -Original Message- From: mkl [mailto:m...@wir-sind-cool.org] Sent: Monday, August 10, 2009 9:49 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Multiple digital sig

[iText-questions] HTML Snippits to Phrase

2009-08-10 Thread pbs
Hi. I have been using Phrases to generate text on my pdf document. When I need to an element of it to be bold, I add a Chunk to do it. This works but generates quite a lot of code. Is there a way I can pass something like this in one go. This is normal This is bold to result in this. T

Re: [iText-questions] Multiple digital signatures

2009-08-10 Thread mkl
Leonard, Leonard Rosenthol-3 wrote: > > Michael is correct that ISO 32000 only supports inclusion of the OCSP at > the time of signing - it can't be added after the fact. > > However, the multiple part PAdES standard, how offers a solution. While > Part 2 (which is based on ISO 32000-1) has t

Re: [iText-questions] Adobe 9 complaining about PDF/A where as Adobe 8not

2009-08-10 Thread Leonard Rosenthol
Acrobat 9 is much more rigid in its checking. Make sure you are using the latest update (9.1.3) of Acrobat 9. Now if the signing is taking place using PDF/A-compliant methodology - why should it remove the flags? Leonard -Original Message- From: Faisal Raza [mailto:faisal.r...@ascerti

Re: [iText-questions] Multiple digital signatures

2009-08-10 Thread Leonard Rosenthol
Michael is correct that ISO 32000 only supports inclusion of the OCSP at the time of signing - it can't be added after the fact. However, the multiple part PAdES standard, how offers a solution. While Part 2 (which is based on ISO 32000-1) has the same issue that pure 32000 does - the new Part

[iText-questions] Problem when registering and retrieving a truetype-font using an alias

2009-08-10 Thread Sascha Friederich
Hello All, I'm facing a problem using itext (version 2.1.4, also 2.1.7) when registering and retrieving a font using an alias: FontFactory.register("c:\\windows\\fonts\\arial.ttf", "arial.ttf"); Font alias = FontFactory.getFont("arial.ttf"); Font original = FontFactory.getFont("arial

Re: [iText-questions] Adobe 9 complaining about PDF/A where as Adobe 8not

2009-08-10 Thread Faisal Raza
Hi Paulo, Yes, I am embedding the font. The preflight tells about error that "CIDset in subset font missing". One more thing that when I performing invisible signing on PDF it’s not removing the PDF/A compliancy. For more details I am attaching the snap shot of the error. http://www.nabble.com/

Re: [iText-questions] Multiple digital signatures

2009-08-10 Thread Paulo Soares
The timestamp can be embedded any time later but not the OCSP. Paulo - Original Message - From: "Andrius Juozapaitis" To: "Post all your questions about iText here" Sent: Monday, August 10, 2009 10:06 AM Subject: Re: [iText-questions] Multiple digital signatures > Anyway, I would ex

Re: [iText-questions] Multiple digital signatures

2009-08-10 Thread Andreas Kuehne
Hi Andrius, Ok, I can't argue against the content of PDF32000 #12.8.3.3.1. If it's written there this way ... But as a hint that it doesn't make too much sense to include an OCSP response in the second of signing : Here is a short snippet of the OCSP response structure ... certStatus

Re: [iText-questions] Multiple digital signatures

2009-08-10 Thread mkl
Hi Andreas & Andrius, Andreas Kuehne-2 wrote: > > Anyway, I would expect an OCSP response to be an _un_signed property of > the signature. In some paranoid environments the OCSP response has to be > some hours younger than the signature. Moreover the signer doesn't know > anything about the OCS

Re: [iText-questions] Multiple digital signatures

2009-08-10 Thread Andrius Juozapaitis
> Anyway, I would expect an OCSP response to be an _un_signed property of the > signature. http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf section #12.8.3.3.1 states that: The PKCS#7 object should contain the following: •Time stamp information as an unsigned attribute (PDF 1.6): The

Re: [iText-questions] Multiple digital signatures

2009-08-10 Thread Andreas Kuehne
Hi Andrius, you got very interesting requirements ! Anyway, I would expect an OCSP response to be an _un_signed property of the signature. In some paranoid environments the OCSP response has to be some hours younger than the signature. Moreover the signer doesn't know anything about the OCSP r

Re: [iText-questions] Reuse the same file multiple time...

2009-08-10 Thread Xavier Sudan
Hello, Has someone try the code below ? Get the same result ? Thanks :-) 2009/8/4 Xavier Sudan > Thank you people behind i...@1t3xt.info :) > > There is an application reproducing the problem... I hope that someone > could find the source of the problem. This arrived with different PDF source

[iText-questions] Multiple digital signatures

2009-08-10 Thread Andrius Juozapaitis
Hey, One of our clients needs digital signing of pdf documents, he has all the ocsp/tsp services inhouse. I've already implemented this using using iText 2.1.7 - works like a charm, thanks Paulo! Now, they want something else: instead of applying signature-ocsp-timestamp in one transaction, they

Re: [iText-questions] how to autosize the form fields in pdf using itext

2009-08-10 Thread 1T3XT info
Swapna Matanam wrote: > > Hello Team, > > I am using iText to fill the acrofields of a PDF file. > My PDF file has only 8-10 pages , with acrofields in between. > I am trying to fill the forms programmatically and set the > stamper.setFormFlattening(*true*); > Sometimes when i am filling the ad