Re: [iText-questions] How is the baseline for a columnText determined ?

2009-09-04 Thread 1T3XT info
Adam Mork wrote: > For example does the lly value represent the baseline for text? No, ColumnText starts writing at the top. > Also how does the height of the column affect the output. Either the content fits the height (and everything is sent to the output), or not (in which case, some content

Re: [iText-questions] Annotations in layers

2009-09-04 Thread Leonard Rosenthol
On 9/5/09 11:05 AM, "Tony Stevens" wrote: > I'm doing some experiments to see what I can achieve with PDF optional > content, and I'm confused with what's happening when I add an annotation in > a specific layer. In the PDF below, page 1 layer 2 has a link (the red X) to > show the alternate versi

Re: [iText-questions] IllegalArgumentException Thrown When I Call Document.close()

2009-09-04 Thread 1T3XT info
Art Purcell wrote: > EXCEPTION : java.lang.IllegalArgumentException: Font size too small: 0.0 > java.lang.IllegalArgumentException: Font size too small: 0.0 Somewhere in your HTML, something causes to create a font with size 0. If you find out where, we may be able to help you, but we can't guess

[iText-questions] Annotations in layers

2009-09-04 Thread Tony Stevens
I'm doing some experiments to see what I can achieve with PDF optional content, and I'm confused with what's happening when I add an annotation in a specific layer. In the PDF below, page 1 layer 2 has a link (the red X) to show the alternate version of the page in layer 1. This works, but when la

[iText-questions] How is the baseline for a columnText determined ?

2009-09-04 Thread Adam Mork
I am re-writing a pdf output component for a software program that needs to accurately match common office document formats. I decided to use ColumnText to write out lines of text. I create a new column text for each line of text that I output. For the most part my x-values are spot on, but my y

[iText-questions] IllegalArgumentException Thrown When I Call Document.close()

2009-09-04 Thread Art Purcell
Hi, I'm using iText 2.1.7. I'm creating a PDF from data pulled from a DB. I'm rendering text components and using HTMLWorker.parseToList() to render some HTML components. This doesn't always work, but that's OK for now, I understand the supported functionality is limited. (Some of the exceptio

Re: [iText-questions] Help Required

2009-09-04 Thread 1T3XT info
vikas sharma wrote: > Hi, > > I am using Adobe Acrobat Pro 9 to create pdf template. > I am using iText API to fill this template with my required values to > make a result pdf file. > > I have a requirement. > What should i do if i need to insert an array in the exisiting template, > with the

Re: [iText-questions] PdfStamper and large PDFs

2009-09-04 Thread Paulo Soares
Big docs will need big memory and iText has some optimizations but it's not really stellar in memory usage. You can add annotation with PdfCopy.createPageStamp().addAnnotation(). Paulo > -Original Message- > From: merco [mailto:d.merca...@sygest.it] > Sent: Friday, September 04, 2009 7

[iText-questions] Help Required

2009-09-04 Thread vikas sharma
Hi, I am using Adobe Acrobat Pro 9 to create pdf template. I am using iText API to fill this template with my required values to make a result pdf file. I have a requirement. What should i do if i need to insert an array in the exisiting template, with the help of iText.? How the templat

Re: [iText-questions] Page Number problem when table ends at the complete end of the page

2009-09-04 Thread 1T3XT info
chennupati wrote: > I am using ChapterAutoNumber, Why? It adds complexity to your app, and it makes your app error prone. Don't use Chapters, but use document.newPage() every time you've added a table. Remove: > public void onChapter(PdfWriter arg0, Document arg1, float arg2, >

Re: [iText-questions] Keep the background in pdf

2009-09-04 Thread Paulo Soares
You must have a saveState()/restoreState(). Paulo > -Original Message- > From: Mathias Nilsson [mailto:wicket.program...@gmail.com] > Sent: Friday, September 04, 2009 9:15 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Keep the background in pdf > > > I ha

Re: [iText-questions] Working with an existing secured pdf

2009-09-04 Thread Paulo Soares
If you don't use PdfCopy or PdfStamper you can use whatever PdfReader provides you even with protected documents. This includes getting the content and looking for text in it. Paulo > -Original Message- > From: Sophia Cheng [mailto:sophia.ch...@gmail.com] > Sent: Friday, September 04,

Re: [iText-questions] JavaScript action after a signature field is signed

2009-09-04 Thread webpointz
Using this method to add a signature, how would you go about setting the signature field to READ ONLY so that Adobe Reader v9.1 doesn't show the "Lock document after signing" checkbox? 1T3XT info wrote: > > This is completely wrong: >> PdfAcroForm acroForm = stamp.getWriter().getA

[iText-questions] Working with an existing secured pdf

2009-09-04 Thread Sophia Cheng
Hello, Hopefully this isn't a stupid question... Here is what I am trying to do. I have a folder of journal articles (in pdf format) that have been downloaded (legally) for research. What am I trying to do is to write a little java app that will go through each article and extract the digital o

Re: [iText-questions] PdfCopy and javascript

2009-09-04 Thread Paulo Soares
PdfCopy.addJavaScript() should work. Paulo > -Original Message- > From: Zoran Avtarovski [mailto:zo...@sparecreative.com] > Sent: Friday, September 04, 2009 2:18 PM > To: Post all your questions about iText here > Subject: [iText-questions] PdfCopy and javascript > > I've noticed what m

Re: [iText-questions] DottedLineSeparator and borders

2009-09-04 Thread Bruno Lowagie
Mathias Nilsson wrote: and I'm not implying that itext is doing anything wrong. It's just that I can't get it right. Then you have to provide a standalone example that reproduces the problem, just as I'm now providing you with an example mashed up from two existing examples that works as expe

Re: [iText-questions] PdfCopyFields looses Javascript

2009-09-04 Thread Paulo Soares
The removal of all javascript is intended. When joining several PDFs it's impossible to make sure that the javascript will still work. You can use PdfCopyFields.AddJavaScript() to add the javasript that you want to include. Paulo > -Original Message- > From: Goel, Manoj [mailto:manoj.g

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mkl
Manfred, mamueller wrote: > i have found the error: > > sap.setExternalDigest(new byte[2048], null, "RSA"); > > must be changed to: > > sap.setExternalDigest(new byte[128], null, "RSA"); > > I dont know why but i works. Ok, when trying to make the expected and actual signature size match,

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mkl
Hi Manfred, mamueller wrote: > - How can i inspect the signed pdf? With a text editor or a special tool? For a first look I use a viewer that has a hex mode of some kind (e.g. PSPad or the viewer of TotalCommander, but there are many alternatives). This is what I used for your file. For a more

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mamueller
Hello, i have found the error: sap.setExternalDigest(new byte[2048], null, "RSA"); must be changed to: sap.setExternalDigest(new byte[128], null, "RSA"); I dont know why but i works. Thanks to all Manfred mamueller wrote: > > Hello Michael, > > im a newbie to pdf sign with itext. > I

[iText-questions] PdfCopy and javascript

2009-09-04 Thread Zoran Avtarovski
I¹ve noticed what might be an oversight in the code with regards to adding javascript to documents when using PdfCopy to create the documents. The PdfAction class has method signatures to add javascript when using a PdfWriter, public static PdfAction javaScript(String code, PdfWriter writer, boole

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mamueller
Hello Michael, im a newbie to pdf sign with itext. Im a little bit confused. - How can i inspect the signed pdf? With a text editor or a special tool? - How can you see that the /Contents only span the bytes from position 837 through 1100? - Where do you get the information from that the /ByteR

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mkl
Hello Manfred, mamueller wrote: > original.pdf, signed.pdf and .keystore attached. > Password for key and keystore: my_password If you inspect the signed.pdf, you see that the /Contents only span the bytes from position 837 through 1100 while according to the /ByteRange array they should end at

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mamueller
original.pdf, signed.pdf and .keystore attached. Password for key and keystore: my_password Thanks in advance Manfred Andreas Kuehne-2 wrote: > > Hi Manfrrad, > > can you make the PDF doc available ? > > Greetings > > Andreas > > > > - Original Message > From: mamueller > T

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread Andreas Kuehne
Hi Manfrrad, can you make the PDF doc available ? Greetings Andreas - Original Message From: mamueller To: itext-questions@lists.sourceforge.net Sent: Friday, September 4, 2009 9:46:23 AM Subject: Re: [iText-questions] Need Help! Self Signed external siganture example fails ma

Re: [iText-questions] DottedLineSeparator and borders

2009-09-04 Thread Mathias Nilsson
I am adding it to the chunk. Separator is the chunk and sep the dottedline. and I'm not implying that itext is doing anything wrong. It's just that I can't get it right. -- View this message in context: http://www.nabble.com/DottedLineSeparator-and-borders-tp25288829p25290372.html Sent from the

[iText-questions] Keep the background in pdf

2009-09-04 Thread Mathias Nilsson
I have a pdf that I stamp on. I add some blocks with backgrounds colors. when adding the last block I want the null color ( ie the color used when no color was set for background ). How can this be done? -- View this message in context: http://www.nabble.com/Keep-the-background-in-pdf-tp25289941

Re: [iText-questions] DottedLineSeparator and borders

2009-09-04 Thread Bruno Lowagie
Mathias Nilsson wrote: > Also when using the DottedLineSeparator my pdf get's corrupted. If I open > it in acrobat and resave then everythings works fine again. Please read these simple rules: Provide us with a standalone example that allows us to reproduce the problem, and we'll have a look

Re: [iText-questions] DottedLineSeparator and borders

2009-09-04 Thread 1T3XT info
And by the way: Mathias Nilsson wrote: > DottedLineSeparator sep = new DottedLineSeparator(); > paragraph.add( separator ); You're adding a separator straight to the Paragraph? Why aren't you wrapping the separator in a Chunk as is done in the examples? br, Bruno -

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mamueller
mamueller wrote: > > I have checked the certificate. It seems to be RSA, 1024 > > > System.out.println(chain[0].getPublicKey()); > > prints: > > Sun RSA public key, 1024 bits > modulus: > 97230408356031235204215703559799504011052133827156008351259515758061051903247576405647097468084878026

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mamueller
mamueller wrote: > > I have checked the certificate. It seems to be RSA, 1024 > > > System.out.println(chain[0].getPublicKey()); > > prints: > > Sun RSA public key, 1024 bits > modulus: > 97230408356031235204215703559799504011052133827156008351259515758061051903247576405647097468084878026

Re: [iText-questions] PdfStamper and large PDFs

2009-09-04 Thread merco
Now i'm using _reader = New PdfReader(New RandomAccessFileOrArray(_fromfile, True), Nothing) _Dest = New PdfStamper(_reader, New FileStream(_tofile, FileMode.CreateNew), PdfWriter.VERSION_1_4, _appendMode) the memory goes from 65924KB to 343164KB, so about a half. I'm wondering if i can add an

[iText-questions] PdfCopyFields looses Javascript

2009-09-04 Thread Goel, Manoj
Hi All, When merging pdf's using PdfCopyfields the javascript is lost. How can we get the javascript to work or fire automatically/ So I have code like this: ByteArrayOutputStream pdfBAOS = new ByteArrayOutputStream(); InputStream dataStream = externalContext.

Re: [iText-questions] DottedLineSeparator and borders

2009-09-04 Thread Mathias Nilsson
Also when using the DottedLineSeparator my pdf get's corrupted. If I open it in acrobat and resave then everythings works fine again. -- View this message in context: http://www.nabble.com/DottedLineSeparator-and-borders-tp25288829p25288833.html Sent from the iText - General mailing list arc