[iText-questions] Fwd: downloaded src invalid archive

2006-07-06 Thread carl lang
I found out the reason I couldnt open the zip, I was using a download manager, flashget to get the source zip which caused it to be unreadable zip. Regards Carl Lang South Africa -- Forwarded message --From: carl lang <[EMAIL PROTECTED]>Date: Jul 7, 2006 8:29 AM Subject: Re: downlo

[iText-questions] Image and absolutePosition

2006-07-06 Thread Raphael Watier
Hi Everybody, I just have to generate a simple PDF document with texts and images. Could you explain me how works absolutePosition (units, and sens) ? Could you give me the position of top left and bottom right for a A4 page ? Are these Units the same for chunk.setSpacingBefore and setSpacin

Re: [iText-questions] downloaded src invalid archive

2006-07-06 Thread carl lang
Hi, I have downloaded the .zip file , not an html file since then it would have an html extension.   I just just need the source for itext, specifically the Tiff2Pdf Plugin src   regards Carl Lang South Africa Message: 1Date: Thu, 06 Jul 2006 16:24:23 +0200From: David Delbecq <[EMAIL PROTECTED]>Su

Re: [iText-questions] How to edit the appearance of an existing digitalsignature?

2006-07-06 Thread Paulo Soares
You're not the first to ask that and it's not possible without invalidating the signature. In effect, for that to work you would need to sign the signature itself a bit like an endless loop. Paulo - Original Message - From: "Luiz Kobayashi" <[EMAIL PROTECTED]> To: Sent: Thursday, July

Re: [iText-questions] How to edit the appearance of an existing digitalsignature?

2006-07-06 Thread Leonard Rosenthol
At 05:54 PM 7/6/2006, Mark Storer wrote: >Yes, it's possible... but in all likelyhood it would invalidate the >signature. It SHOULD invalidate the signature - though admittedly, if you do an "update" instead of a garbage collected save, then it won't. It would achieve your goal.

Re: [iText-questions] How to edit the appearance of an existing digitalsignature?

2006-07-06 Thread Mark Storer
> My next question is: How to edit the appearance of an > existing digital signature? Is this possible? Yes, it's possible... but in all likelyhood it would invalidate the signature. If iText is doing the initial signing, you could safely modify PdfSignatureAppearance.getAppearance() and stil

[iText-questions] How to edit the appearance of an existing digital signature?

2006-07-06 Thread Luiz Kobayashi
Hello all, first of all, many thanks again to Paulo, who helped me a lot in my previous question. My next question is: How to edit the appearance of an existing digital signature? Is this possible? One thing that I want to do is to sign a pdf and display the digital signature in base64 in the

Re: [iText-questions] Getting the bytes of the digital signature ?

2006-07-06 Thread Luiz Kobayashi
Thanks a lot, Paulo! Luiz Kobayashi Paulo Soares escreveu: > Probably easier this way: > > AcroFields af = reader.getAcroFields(); > PdfDictionary v = af.getSignatureDictionary("Signature1"); > PdfString ct = (PdfString)v.get(PdfName.CONTENTS); > byte[] b = ct.getBytes(); > > Paulo > Using

Re: [iText-questions] Paragraph and PdfContentByte

2006-07-06 Thread Mark Storer
PdfContentByte is strictly for things that appear in pages.  A bookmark's appearance is just a string... you can't even control the font or point size.   You can set the color, and have flags to control 'italic' and 'bold', but that's it.  I'm not sure that iText exposes this ability, let me

[iText-questions] PdfPTable, thin rectangle(s) and half empty pages (fwd)

2006-07-06 Thread Cathrine Tan
Hello, I have a document that contains 4 PdfPTable. One of these PdfPTable contains 6 columns, and one of these 6 columns could potentially contain a very long cell that spans over more than 1 page. The problem that I have notice is, whenever I have at least a cell that spans over more than 1 pag

[iText-questions] PdfPTable, thin rectangle(s) and half empty pages

2006-07-06 Thread Cathrine Tan
Hello, I have a document that contains 4 PdfPTable. One of these PdfPTable contains 6 columns, and one of these 6 columns could potentially contain a very long cell that spans over more than 1 page. The problem that I have notice is, whenever I have at least a cell that spans over more than 1 pag

[iText-questions] iText

2006-07-06 Thread rakib islam
Hi     I am RAKIB trying to use iText Library.To install iText library i follow the rules written by "Christoph Bartnick".But when i create the "CLASSPATH" variable with the value of iText Jar File's destination path I can compile every java program but fail to run any java program.When i run any

[iText-questions] Paragraph and PdfContentByte

2006-07-06 Thread Miguel Tablado
Hello.I have a problem writing into an existing pdf file. I want to write a Paragraph into a pdf bookmark, but I don't find what is the PdfContentByte's method to do add a Paragraph nor the funcionality to add a Paragraph at a specific position. If it is not posible, It will be enough if I could ju

Re: [iText-questions] dpi userunits

2006-07-06 Thread Peter B. West
Andrew, Leonard isn't just being pedantic. It's important to understand what's happening here. Peter Leonard Rosenthol wrote: > At 10:24 AM 7/6/2006, Andrew Thompson wrote: > >>Well basically I have an image that has a scale bar of 2.91 > > > At what resolution? 72dpi or 96dpi? >

[iText-questions] Fwd: iText

2006-07-06 Thread rakib islam
Note: forwarded message attached. Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta.--- Begin Message --- Hi     I am RAKIB trying to use iText Library.To install iText library i follow the rules written by "Christoph Bartnick".But when i create the "CLASSPATH" varia

Re: [iText-questions] Using AcroForm for form letter generation

2006-07-06 Thread Bruno Lowagie
Nick V wrote: >I want to create the PDF output in memory by sending >the output directly to the client via the servlet’s >output stream. I would rather not write files on the >server. > >One way I am considering doing this is by using an >Acrobat form (AcroForm), filling it in once for each >recor

[iText-questions] Using AcroForm for form letter generation

2006-07-06 Thread Nick V
I am working on a web application that needs to create form letters with data pulled from a database merged into those letters. The form letters are to appear as one long “page” in the user’s browser window. Then when he/she goes to print from the browser, the letters print out one after the other,

Re: [iText-questions] dpi userunits

2006-07-06 Thread Leonard Rosenthol
At 10:24 AM 7/6/2006, Andrew Thompson wrote: >Well basically I have an image that has a scale bar of 2.91 At what resolution? 72dpi or 96dpi? >but when it is inserted into the pdf document it is being displayed as 3.4cm, Are you providing a transform when you place it into t

Re: [iText-questions] cant get source code!

2006-07-06 Thread David Delbecq
Could it be you issued a 'save link as' from the itext Download & Compile webpage? If yes, you save an html file instead of the source :) The link direct you to a list of mirrors for downloading carl lang wrote: > Hi Paulo, > > I Downloaded the itext-src-1.4.2.zip file but I am unable to open wi

Re: [iText-questions] dpi userunits

2006-07-06 Thread Andrew Thompson
Well basically I have an image that has a scale bar of 2.91 but when it is inserted into the pdf document it is being displayed as 3.4cm, if the pdf does not have a dpi then where has this default of 72dpi arisen from? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

[iText-questions] cant get source code!

2006-07-06 Thread carl lang
Hi Paulo,   I Downloaded the itext-src-1.4.2.zip file but I am unable to open with winzip, error is "it does not appear to be a valid archive".   i also tried using wincvs to download src , but i'm having trouble using wincvs , it gives an error when i try log in : cvs -d :pserver:[EMAIL PROTECTED]

Re: [iText-questions] dpi userunits

2006-07-06 Thread Leonard Rosenthol
At 09:09 AM 7/6/2006, Andrew Thompson wrote: >But the problem is that depending on the resolution of the screen >the image that is sent to the pdf is of different sizes, You mean you are putting different images INTO the PDF document? Or you are talking about what Acrobat (or w

Re: [iText-questions] dpi userunits

2006-07-06 Thread Andrew Thompson
But the problem is that depending on the resolution of the screen the image that is sent to the pdf is of different sizes, is there definetely no way in itext to alter the default dpi? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leonard Rosenthol Se

Re: [iText-questions] Silently printing a PDF to a network printer

2006-07-06 Thread Leonard Rosenthol
At 03:00 AM 7/6/2006, Matt Krevs wrote: >Sadly, the printer in question is on a Windows platform. Do you know of a >Windows specific solution? The best solutions for Windows involve calling out to a native component - be it Adobe Acrobat or some other 3rd party solution. Leonard -

Re: [iText-questions] dpi userunits

2006-07-06 Thread Leonard Rosenthol
At 06:25 AM 7/6/2006, Andrew Thompson wrote: >Is this what is meant by userunits? If you are referring to the key on the /Page called /UserUnits - then no. >Basically I am putting a map image as a jpg into a pdf document, but >this is generated using 96dpi, when the pdf is created the

Re: [iText-questions] Embedding external PKCS7 Signature- Debugging...

2006-07-06 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Oliver Welter > Sent: Thursday, July 06, 2006 12:42 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Embedding external PKCS7 > Signature- Debugging... > > Hi P

Re: [iText-questions] Embedding external PKCS7 Signature - Debugging...

2006-07-06 Thread Oliver Welter
Hi Paulo, You need to calculate the hash only over the bytes that you get from In the meantime I found the error - my Application is not able to sign binary data :( subfilter PdfName.ADBE_PKCS7_SHA1 but it all depends on what is inside the generated PKCS#7. Is there somewhere a usable d

Re: [iText-questions] Embedding external PKCS7 Signature - Debugging...

2006-07-06 Thread Paulo Soares
You need to calculate the hash only over the bytes that you get from PdfSignatureAppearance.getRangeStream(). You may also need to use the subfilter PdfName.ADBE_PKCS7_SHA1 but it all depends on what is inside the generated PKCS#7. Paulo > -Original Message- > From: [EMAIL PROTECTED] >

Re: [iText-questions] Getting the bytes of the digital signature ?

2006-07-06 Thread Paulo Soares
Probably easier this way: AcroFields af = reader.getAcroFields(); PdfDictionary v = af.getSignatureDictionary("Signature1"); PdfString ct = (PdfString)v.get(PdfName.CONTENTS); byte[] b = ct.getBytes(); Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On

Re: [iText-questions] PdfPCell in a layer...

2006-07-06 Thread Paulo Soares
You can do it with a cell event and apply the layer to canvases. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Marco Schoolenberg > Sent: Thursday, July 06, 2006 9:31 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-quest

Re: [iText-questions] tiff2pdf can it create pdf from certain tiff page?

2006-07-06 Thread Paulo Soares
Those tools are not only useful as they are but are also there as an example of what can be done. Look at the source and change it according to your needs. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of carl lang > Sent: Thursday, July 0

Re: [iText-questions] dpi userunits

2006-07-06 Thread Paulo Soares
http://itextdocs.lowagie.com/tutorial/objects/images/index.html#transfor mations Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Andrew Thompson > Sent: Thursday, July 06, 2006 11:25 AM > To: Post all your questions about iText here > Sub

Re: [iText-questions] dpi userunits

2006-07-06 Thread Andrew Thompson
Is this what is meant by userunits? Basically I am putting a map image as a jpg into a pdf document, but this is generated using 96dpi, when the pdf is created the scale is being altered as itext is creating at 72dpi, I have a requirement to maintain the accurancy of the map image, can someone p

[iText-questions] tiff2pdf can it create pdf from certain tiff page?

2006-07-06 Thread carl lang
Hi Paulo,   I am able to run Tiff2Pdf , but it creates pdf from the entire tiff file, I want to be able to specifiy which page of the tiff must be used to create the pdf, is that possible? also when Tiff2Pdf creates pdf it adds file name to the top of each page in the pdf , is it possible to leave

[iText-questions] PdfPCell in a layer...

2006-07-06 Thread Marco Schoolenberg
Dear Itext contributers, I am new to iText. First of I want to say "very nice package". Though I have a question. In my code I am in a for loop hitting the elements of a Vector object with some db entries. I am wondering if there is a good way to add a specific PdfPCell to a PdfLayer. The issue i

[iText-questions] example tiff2pdf

2006-07-06 Thread carl lang
Hi Paulo,   Would you please be able to tell me where to find an example for using com.lowagie.tools.plugins.Tiff2Pdf, and how to create pdf from multiple page tiff?   Thanks, Carl Lang South Africa       Message: 1Date: Wed, 5 Jul 2006 15:02:25 +0100From: "Paulo Soares" <[EMAIL PROTECTED]>Subjec

Re: [iText-questions] Silently printing a PDF to a network printer

2006-07-06 Thread Matt Krevs
Leonard Rosenthol pdfsages.com> writes: > > At 07:30 PM 7/5/2006, Matt Krevs wrote: > >It seems the ability to send a PDF to a network printer from within > >a java app is some sort of holy grail right now. > > Depends on the printer and OS involved. > > If the printer is an