[iText-questions] Signing pdf hash with external signature

2009-04-06 Thread racsor
Hi I have a pdf to sign and external signature. When I send completed array bytes to sign, I get correct signature but when I send hash of bytes I get a "The document has been altered or corrupted since the Signature was applied" My code is: PdfReader reader = new PdfReader(thePDF);

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-04-06 Thread Pauli Borodulin
Harakiri wrote: > [...] > i showed you how you can by default add a new line - this is exactly > what browsers do If I read it correctly, the example showed how to add a new line in the beginning of every paragraph. Based on my knowledge on web browsers, the margin/spacing should be after each

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-04-06 Thread Harakiri
--- On Mon, 4/6/09, Pauli Borodulin wrote: > From: Pauli Borodulin > Subject: Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements > To: harakiri...@yahoo.com, "Post all your questions about iText here" > > Date: Monday, April 6, 2009, 12:31 PM > Hi! > > Harakiri wrote: >

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-04-06 Thread Pauli Borodulin
Hi! Harakiri wrote: > Change the code of HTMLWorker - its not implemented correctly (depending on > your viewpoint =) - simply change the above code to > [...] > // create newline for P > currentParagraph.add(factoryProperties.createChunk("\n", > cprops)); > [...]

Re: [iText-questions] About the performance issue of the iText

2009-04-06 Thread Mike Marchywka
> Date: Mon, 6 Apr 2009 18:15:17 +0200 > From: > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] About the performance issue of the iText > > Hi Imgen, > > 2009/4/6 Imgen : >> I use iText to add bookmarks to an existing pdf file.

Re: [iText-questions] About the performance issue of the iText

2009-04-06 Thread Alexis Pigeon
Hi Imgen, 2009/4/6 Imgen : > I use iText to add bookmarks to an existing pdf file. It's about 750k. But > it takes > 25s for the PdfStamper.close() to write the file to the disk. My computer's > configuration > is Intel Core2 Duo T7500 2.2GHZ + 2G Memory + Win7, not very bad. But the > close metho

Re: [iText-questions] Printing takes a long time

2009-04-06 Thread kumarmenon
Never mind. I made a boo boo. -- This message was sent on behalf of kumarme...@hotmail.com at openSubscriber.com http://www.opensubscriber.com/message/itext-questions@lists.sourceforge.net/11864680.html -- ___

[iText-questions] About the performance issue of the iText

2009-04-06 Thread Imgen
I use iText to add bookmarks to an existing pdf file. It's about 750k. But it takes 25s for the PdfStamper.close() to write the file to the disk. My computer's configuration is Intel Core2 Duo T7500 2.2GHZ + 2G Memory + Win7, not very bad. But the close method takes too long to complete the acti

[iText-questions] About the performance issue of the iText

2009-04-06 Thread Imgen
I use iText to add bookmarks to an existing pdf file. It's about 750k. But it takes 25s for the PdfStamper.close() to write the file to the disk. My computer's configuration is Intel Core2 Duo T7500 2.2GHZ + 2G Memory + Win7, not very bad. But the close method takes too long to complete the acti

Re: [iText-questions] Why PdfTemplate.reset() throws "Unbalanced save/restore state operators" Exception?

2009-04-06 Thread 1T3XT info
slon wrote: > I need to use PdfTemplate in recursive function and sometimes to "clear" this > template. > But by calling "reset()" it throws "Unbalanced save/restore state operators" > Exception. > In Javadoc by lowagie written: "public void reset() - Makes this > PdfContentByte empty.". > how c

Re: [iText-questions] Printing takes a long time

2009-04-06 Thread 1T3XT info
Arun Menon wrote: > > Hi > > This is really very silly. I am able to succesfully create pdf documents > without any issues using Itext. But printing the same document takes a > long time. I am sure the file size is not the issue (903 bytes). I am > using Itext 2.1.5. At first i thought it had

Re: [iText-questions] adding an out

2009-04-06 Thread 1T3XT info
hpchr wrote: > hi, > you mean adding a table into pdf and then adding images into the pdf > cells.but i dont want them to show in a table format. In one page i need to > show 9 images with layouts and titles for each image. I have attached an > example file. IIRC, an Image is a rectangle, so you c

Re: [iText-questions] adding an out

2009-04-06 Thread hpchr
hi, you mean adding a table into pdf and then adding images into the pdf cells.but i dont want them to show in a table format. In one page i need to show 9 images with layouts and titles for each image. I have attached an example file. thanks honey Paulo Soares-3 wrote: > > That's just a matt

[iText-questions] Printing takes a long time

2009-04-06 Thread Arun Menon
Hi This is really very silly. I am able to succesfully create pdf documents without any issues using Itext. But printing the same document takes a long time. I am sure the file size is not the issue (903 bytes). I am using Itext 2.1.5. At first i thought it had to do with my printing images

[iText-questions] Why PdfTemplate.reset() thr ows "Unbalanced save/restore state oper ators" Exception?

2009-04-06 Thread slon
I need to use PdfTemplate in recursive function and sometimes to "clear" this template. But by calling "reset()" it throws "Unbalanced save/restore state operators" Exception. In Javadoc by lowagie written: "public void reset() - Makes this PdfContentByte empty.". how can i make it empty whithou

Re: [iText-questions] adding an out

2009-04-06 Thread Paulo Soares
That's just a matter of layout, maybe with a table. Paulo > -Original Message- > From: Honey Paul [mailto:honey.p...@crowderconsult.co.uk] > Sent: Monday, April 06, 2009 12:39 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] adding an out > > Hi , > > > >

Re: [iText-questions] doc.newPage clears up PdfContentByte.saveState() ?

2009-04-06 Thread Paulo Soares
The PDF format only works a page at a time. You must have balanced savestate()/restorestate() before calling newpage(). Paulo > -Original Message- > From: hel...@gportal.hu [mailto:hel...@gportal.hu] > Sent: Monday, April 06, 2009 12:16 PM > To: itext-questions@lists.sourceforge.net > S

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-04-06 Thread Harakiri
--- On Sun, 4/5/09, Pauli Borodulin wrote: > From: Pauli Borodulin > > Since iText's HTMLWorker doesn't add any margin > after p elements while > web browsers by default do, I tried adding some using > StyleSheet object: > HTMLWorker.startElement(String, > HashMap) has the following proce

[iText-questions] doc.newPage clears up PdfContentByte.saveState() ?

2009-04-06 Thread helasz
Hi All, Apparently in an open PdfDocument the newPage() command celars up the relative state PdfContentByte.saveState(). Is this the way it should work? The scene is as follows: cb.saveState(); for i = ... { cb.restoreState(); cb.saveState(); // inserting (eventually many) texts cb.r