Re: [iText-questions] Why doesn't this work?

2009-01-23 Thread Lopes, James
That works just fine. Are you sure they can't? Seems to work to a point. -Original Message- From: Tony Stevens [mailto:tony.stev...@turnkey.com.au] Sent: Friday, January 23, 2009 3:53 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Why doesn't this work? Lo

Re: [iText-questions] Why doesn't this work?

2009-01-23 Thread Tony Stevens
Lopes, James wrote: > > I'm not seeing a huge space between the inner Paragraphs. > > ... > > ps0.add(ps1); > ps0.add(ps2); > > document.add(ps0); > > Paragraphs can't contain other paragraphs. When you add() a paragraph to another you're just copying the content (I think - haven't checked

Re: [iText-questions] Removing a signature thoroughly(acroFields.removeField not sufficient?)

2009-01-23 Thread Paulo Soares
Also remove the sigflags in acroform. You can remove all in the reader and just use the stamper to output the result. Paulo - Original Message - From: "Starke, Rico" To: "Post all your questions about iText here" Sent: Friday, January 23, 2009 5:50 PM Subject: Re: [iText-questions] R

Re: [iText-questions] Different transparency for cells in PdfPtable

2009-01-23 Thread tlc
That did it. Thanks. As the saying goes: "A program is worth a thousand words". Apologies to the wife. Please assure her that your fifteen minute was not spent in vain. 1T3XT info wrote: > > > See attachment. Now my wife is angry at me because I chose > to spend a quarter of an hour to yo

[iText-questions] Why doesn't this work?

2009-01-23 Thread Lopes, James
I'm not seeing a huge space between the inner Paragraphs. . document.open(); Chunk txt1 = new Chunk("See the image "); Chunk txt2 = new Chunk(" second half"); Paragraph ps0 = new Paragraph(); Paragraph ps1 = new Paragraph(); Paragraph ps2 = new Paragraph(); ps1.add(txt1); ps1.

Re: [iText-questions] Removing a signature thoroughly (acroFields.removeField not sufficient?)

2009-01-23 Thread Starke, Rico
Hi, using stamper.getAcroFields() still isn't enough to completely remove the signature. I still cannot apply password encryption to the resulting pdf file in acrobat pro v8 ("the security policy cannot be changed because the document is signed or certified"). Any other ideas? Kind regards,

Re: [iText-questions] Having Problem with iText onEndPage event to create a Dynamic Header

2009-01-23 Thread Keshav Arora
Thank you for pointing the mistake I was making. I can't believe it was something that silly. I've fixed the issue and finally I've got a dynamic header :) On Fri, Jan 23, 2009 at 12:12 PM, 1T3XT info wrote: > Keshav Arora wrote: > > Hey Guys, > > > > I'm trying to create a Dynamic Header in th

Re: [iText-questions] Having Problem with iText onEndPage event to create a Dynamic Header

2009-01-23 Thread 1T3XT info
Keshav Arora wrote: > Hey Guys, > > I'm trying to create a Dynamic Header in the pdf page based on the user > whose data is being displayed on the pdf page. But for some reasons > header displays the data for last user only on each page. > > That means onEndPage is getting fired at the end of

[iText-questions] Having Problem with iText onEndPage event to create a Dynamic Header

2009-01-23 Thread Keshav Arora
Hey Guys, I'm trying to create a Dynamic Header in the pdf page based on the user whose data is being displayed on the pdf page. But for some reasons header displays the data for last user only on each page. That means onEndPage is getting fired at the end of the document and not at the end of e

[iText-questions] Having Problem with iText onEndPage event to create a Dynamic Header

2009-01-23 Thread Keshav Arora
Hey Guys, I'm trying to create a Dynamic Header in the pdf page based on the user whose data is being displayed on the pdf page. But for some reasons header displays the data for last user only on each page. That means onEndPage is getting fired at the end of the document and not at the end of e

[iText-questions] (no subject)

2009-01-23 Thread Anand kumar
pls unsubscribe this id -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions ma

[iText-questions] HTMLWorker problem with ColumnText

2009-01-23 Thread native.human
I have an HTML snippet that looks like this: TEST 1 TEST 2TEST 3 I process it through HTMLWorker like this: StringReader HTMLreader = new StringReader(concatDesc); try{ ArrayList x = iTextHTMLWorker.parseToList(HTMLreader,null); Iterator itr = x.iterator(); while

Re: [iText-questions] Extract PKCS#7s from a PDF

2009-01-23 Thread Andreas Kuehne
Hi Gonçalo, I once stumbled across this, too. Within the signatures loop I grap the raw signature bytes and processed them using my favorite crypto toolkit ( in my case iaik ) : // get the bytes PdfDictionary dict = af.getSignatureDictionary( name ); PdfString contents =

Re: [iText-questions] when i add an image to a pdf the edges arecut off

2009-01-23 Thread Steve Cole
You should do some more research about the difference between image formats and find a java toolkit for working with images (which is what 1t3xt info has been suggesting in his own demented way). iText is not going to change the image or reduce the number of bytes. You need to use some other image

Re: [iText-questions] how to construct a geospatial measure dictionary?

2009-01-23 Thread sam krasnik
Matthias Uhler wrote: > > > sam krasnik wrote: >> >> >> I did the same thing (I created a sub-interface of PdfPageEvent to have >> an onAddPage method, which passes my a PdfPage which I can add stuff to), >> and came up with the attached pdf. Unfortunately, after looking at it for >> a while,

Re: [iText-questions] when i add an image to a pdf the edges are cut off

2009-01-23 Thread Rick Carback
I'm relatively bored today, so I'll talk to the wall. Ryan, JPG is a lossy image compression format. That means that it is designed to reduce the amount of information necessary to describe the image at the same height and width as another image. That is why your image is smaller when it is a JPG

[iText-questions] Extract PKCS#7s from a PDF

2009-01-23 Thread Gonçalo Almeida
Hello all I have a question regarding the extraction of PKCS#7 signatures from a signed PDF. I want to extract to a file, an array of bytes or whatever. How can I do this having the following code: *PdfReader reader = null;** ** reader = new PdfReader(signedFile);** AcroFields af = reader.get

Re: [iText-questions] keep pdf/a compliance with PdfStamper

2009-01-23 Thread Lukas Rössler
Oh I'm sorry - seems this is done automatically in 2.1.4. i thought i already had the latest version thnx for the help! pontomedon 2009/1/16 1T3XT info > Leonard Rosenthol wrote: > > You need to resync the metadata after modifying things > > If I'm not mistaken, this resyncing is only done in

Re: [iText-questions] keep pdf/a compliance with PdfStamper

2009-01-23 Thread Lukas Rössler
i still haven't figured out how i can resync the metadata... Can someone help me out with a piece of Java sample code? thnx pontomedon 2009/1/16 1T3XT info > Leonard Rosenthol wrote: > > You need to resync the metadata after modifying things > > If I'm not mistaken, this resyncing is only don

Re: [iText-questions] how to construct a geospatial measure dictionary?

2009-01-23 Thread Matthias Uhler
sam krasnik wrote: > > > I did the same thing (I created a sub-interface of PdfPageEvent to have an > onAddPage method, which passes my a PdfPage which I can add stuff to), and > came up with the attached pdf. Unfortunately, after looking at it for a > while, I can't see the difference between