Re: [iText-questions] Patch for PdfStamperImp

2007-08-28 Thread Paulo Soares
I would like to see the PDF that causes the error. Paulo - Original Message - From: "nando.dev" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 28, 2007 6:31 PM Subject: [iText-questions] Patch for PdfStamperImp > Hi, > I'd found a problem when using iText to add text over an existing

Re: [iText-questions] .SetFields misaligned

2007-08-28 Thread Paulo Soares
Each Acrobat version has a different layout, you'll have to complain to Adobe about this. There's no way to make it look consistent in all versions. Paulo - Original Message - From: "seedy" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 28, 2007 5:55 PM Subject: [iText-questions] .SetFi

[iText-questions] Patch for PdfStamperImp

2007-08-28 Thread nando . dev
Hi, I'd found a problem when using iText to add text over an existing pdf document throwed a ClassCastException. I'd correct this problem in iText 2.0.4. I send a patch which resolve this problem. Bye, Index: /datos/workspace/iText-core/src/com/lowagie/text/pdf/PdfStamperImp.java =

[iText-questions] .SetFields misaligned

2007-08-28 Thread seedy
Ok I realize this is a known thing, Just looking for some advice. Using .SetFields doesn't seem to put the text in the right place, depending on both the creator of the pdf and the viewer . I also know I can use .SetExtraMargin to correct for this. My question is, is there a consistent way to u

Re: [iText-questions] One page PDF takes 7-8 minutes to merge ??

2007-08-28 Thread BorisTheCat
The approach we took to get around the problem was to load the file ourselves and then pass the byte array to the library instead of the filename as shown below, thus ensuring that the input source file only gets read in once. Any reOpen()'s within the library results in a re-read of the byte str

[iText-questions] an idea how to remove/replease text

2007-08-28 Thread rumen varbanov
Hi, with the following source can you replease test with blanks NO WARRANTY! -- public static void main(String argv[]) { System.out.println("input file: " + argv[0] + ";putputfile: " + argv[1]); String existingPdf = argv[0];

Re: [iText-questions] Best way to determine page sizes

2007-08-28 Thread Richard Michael
> Because that method has a different purpose than > the getPageSizeWithRotation method. Ah, thanks. :) > It's better that you write your own code so that > you know which page sizes are equals according to > your requirements, because not every page that > is equal to you, will be equal to me.

Re: [iText-questions] Embedding external signatures inside PDF files

2007-08-28 Thread Martin Paljak
On 28.08.2007, at 17:29, Leonard Rosenthol wrote: > So why not simply write a Digital Signature Handler plugin for > Acrobat/Reader? That's what they are for... Because there might be a chance I could do this with pipeline (take some data -> put it into a PDF as a fake signature -> extract t

Re: [iText-questions] Embedding external signatures inside PDF files

2007-08-28 Thread Martin Paljak
On 28.08.2007, at 16:19, Paulo Soares wrote: > You can put whatever you want in the digital signature payload and > in the > signature dictionary. Yes. I've successfully implemented it based on examples found on the web (http://itextpdf.sourceforge.net/howtosign.html) and with little help fro

Re: [iText-questions] Printing a footer on the first page of a multi-page document

2007-08-28 Thread Bruno Lowagie (iText)
Thompson, Mark wrote: > This question may have been asked already. Yes, it has been answered over and over again. > How do I have the footer print at the bottom of the first page as well > as all subsquent pages? Either you are using the HeaderFooter class (a class you shouldn't use) and you ar

Re: [iText-questions] About Tables

2007-08-28 Thread Bruno Lowagie (iText)
Anup HJ wrote: > Is there any method by which we can add a radio button(s) into a > table(cell). > I know that the text box can be added to the table. > I want to know about the radio button(Check Box also). > Please can any body help me? Have a look at the source code of the first example in Cha

Re: [iText-questions] Why single quotation marks will be disappear in the PDF document ?

2007-08-28 Thread Bruno Lowagie (iText)
andychi12 wrote: > Hi, > Excuse me , I'm confuse about your answer . > Could I ask again ? Yes, but you'll get the same answer over and over again. > Your mean was , single quotation mark can't be shown when I setting below ? > > == >> PDF font na

Re: [iText-questions] READING custom-named, document-level JavaScript?

2007-08-28 Thread Bruno Lowagie (iText)
steve poling wrote: > I started writing some butt-ugly code (in iTextSharp) to explicitly look > in the PdfReader's Catalog for NAMES then JAVASCRIPT in that then KIDS > in that then from that PdfArray look at NAMES... I'm hoping there's a > better way. I'm sorry, but if you dig into the lower

Re: [iText-questions] how to parse the content stream from PdfContentByte

2007-08-28 Thread rumen varbanov
I'm sorry Bruno! The same :-) ! Repleasing from text. I will be look about an example from the PRTokeniser br rumen --- rumen varbanov wrote: > Hi, > how to to parse the content stream from PdfContentByte? With PRTokeniser. But what is the purpose? You'll nee

[iText-questions] READING custom-named, document-level JavaScript?

2007-08-28 Thread steve poling
Bruno, Thank you. I'll check out your changes. > If you use the version of iText that is in SVN, you can > execute the adapted Calculator example (see attachment). > As you can see: I used custom names for every piece of JS. > br, > Bruno > When you implemented a mechanism to WRITE these cust

Re: [iText-questions] Best way to determine page sizes

2007-08-28 Thread Bruno Lowagie (iText)
Richard Michael wrote: > System.out.println doc.getPageSize(): > Rectangle: 612.0x792.0 (rot: 0 degrees) > > System.out.println doc.getPageRotation(): > 90 And System.out.println doc.getPageSizeWithRotation(): Rectangle: 612.0x792.0 (rot: 90 degrees) > Why doesn't getPageSize indicate th

Re: [iText-questions] how to to parse the content stream from PdfContentByte

2007-08-28 Thread Bruno Lowagie (iText)
rumen varbanov wrote: > Hi, > how to to parse the content stream from PdfContentByte? With PRTokeniser. But what is the purpose? You'll need to keep your PDF Reference close to understand the meaning of every operator and operand. br, Bruno

Re: [iText-questions] Embedding external signatures inside PDF files

2007-08-28 Thread Leonard Rosenthol
So why not simply write a Digital Signature Handler plugin for Acrobat/Reader? That's what they are for... Leonard On Aug 28, 2007, at 3:07 PM, Martin Paljak wrote: > > On 28.08.2007, at 15:53, Paulo Soares wrote: > >> Each time a signature is applied new ids are created. Signing the >> same

[iText-questions] how to to parse the content stream from PdfContentByte

2007-08-28 Thread rumen varbanov
Hi, how to to parse the content stream from PdfContentByte? br rumen begin:vcard fn:Rumen Varbanov n:Varbanov;Rumen org:dox.at;Software adr;quoted-printable:;;Wartingergasse 43/13;Graz;Steiermark;8010;=C3=96sterreich email;internet:[EMAIL PROTECTED] title:Dipl. Ing. tel;work:+43 316 811 966 -40 t

Re: [iText-questions] Embedding external signatures inside PDF files

2007-08-28 Thread Paulo Soares
You can put whatever you want in the digital signature payload and in the signature dictionary. I don't see any issue here. If you add the signature in append mode you can even get the original PDF before signing. Paulo - Original Message - From: "Martin Paljak" <[EMAIL PROTECTED]> To:

Re: [iText-questions] Embedding external signatures inside PDF files

2007-08-28 Thread Martin Paljak
On 28.08.2007, at 15:53, Paulo Soares wrote: > Each time a signature is applied new ids are created. Signing the > same PDF > twice will never have the same hash. That's not a requirement. The only requirement is to have a single PDF and a single signature that should be verifiable only with

Re: [iText-questions] Embedding external signatures inside PDF files

2007-08-28 Thread Paulo Soares
Each time a signature is applied new ids are created. Signing the same PDF twice will never have the same hash. Paulo - Original Message - From: "Martin Paljak" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 28, 2007 1:26 PM Subject: [iText-questions] Embedding external signatures insid

Re: [iText-questions] Question about Itext library and pdf signature

2007-08-28 Thread Paulo Soares
With Designer created forms you can only sign an existing empty field. Paulo - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Tuesday, August 28, 2007 1:05 PM Subject: Re: [iText-questions] Question about Itext library and pdf signature Thanks for your quick answer :) How cou

[iText-questions] Embedding external signatures inside PDF files

2007-08-28 Thread Martin Paljak
Hello! I'd like to know if the following is possible: 1. User has a PDF file which he/she signs with some external application. The hash of the original PDF file can not change for the signature be valid, of course. 2. The external signature format is embedded inside the PDF as a custom sign

Re: [iText-questions] NAMED JavaScript functions at a document-level

2007-08-28 Thread Bruno Lowagie (iText)
steve poling wrote: Hello, If I go into Adobe Acrobat, I can menupick Advanced | JavaScript | Document JavaScrpts... and then I can define named JavaScript functions, that is, I can enter a function name, and associate with it some JavaScript. Then if I look at the PDF at a low level, I see R

Re: [iText-questions] Best way to determine page sizes

2007-08-28 Thread Richard Michael
Hi Bruno, > You are assuming that class Rectangle has its own implementation > of the equals() method, which it hasn't. And even if you were able Ah, sorry I was just hoping something similar would be possible, and writing pseudo-code. I noticed the height and width related methods, but it seeme

Re: [iText-questions] Question about Itext library and pdf signature

2007-08-28 Thread Michael.MARECHAL
Thanks for your quick answer :) How could I know the security settings? Because I create all my different pdf in Adobe Designer without changing settings :( So it's for that I don't understand the difference!!! De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De

Re: [iText-questions] Question about Itext library and pdf signature

2007-08-28 Thread Paret, Thierry
Bonjour Michael, Your different PDF files may have different security setting in which signing is not allowed. Regards, Thierry Paret From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, August 28, 2007 1:44

[iText-questions] Question about Itext library and pdf signature

2007-08-28 Thread Michael.MARECHAL
Hi, I use your library Itext in a project to sign pdf file. I try to follow the code example that I saw on your website but I have a problem. This is my java code : try{ KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); ks.load(new FileInputSt

Re: [iText-questions] One page PDF takes 7-8 minutes to merge ??

2007-08-28 Thread Paulo Soares
You are right, it was the re-opening. I commited some changes in the SVN and now in my machine what took 2 minutes takes just 5 seconds to run. Paulo - Original Message - From: "BorisTheCat" <[EMAIL PROTECTED]> To: Sent: Monday, August 27, 2007 3:31 PM Subject: Re: [iText-questions] On

[iText-questions] Printing a footer on the first page of a multi-page document

2007-08-28 Thread Thompson, Mark
This question may have been asked already. How do I have the footer print at the bottom of the first page as well as all subsquent pages? I'm writing a report that uses iText to create the PDF version, and the clients would like a footer printed at the bottom of each page. Thanks for your response

[iText-questions] Question about itext library

2007-08-28 Thread Michael.MARECHAL
Hi, I use your library Itext in a project to sign pdf file. I try to follow the code example that I saw on your website but I have a problem. This is my java code : try{ KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); ks.load(new FileI

[iText-questions] About Tables

2007-08-28 Thread Anup HJ
Hi, I am using iText for some project. Actually I am trying to build acroforms. Is there any method by which we can add a radio button(s) into a table(cell). I know that the text box can be added to the table. I want to know about the radio button(Check Box also). Please can any body help me?

Re: [iText-questions] Why single quotation marks will be disappear in the PDF document ?

2007-08-28 Thread andychi12
Hi, Excuse me , I'm confuse about your answer . Could I ask again ? > You could try finding a glyph in the font that looks like > a single quote and replace the quote in your String with > the value that corresponds with that glyph. > You could try using FontSelector so that an other font >

Re: [iText-questions] Best way to determine page sizes

2007-08-28 Thread Bruno Lowagie (iText)
Richard Michael wrote: > Something such as.. > > PdfReader source = new PdfReader("test.pdf"); > if ( source.getPageSize(1).equals(PageSize.LETTER) ) { > (..do stuff..) > } > > Am I on the right track? No, you aren't. You are assuming that class Rectangle has its own implementation of

Re: [iText-questions] PdfPTable splitting columns

2007-08-28 Thread Bruno Lowagie (iText)
iTEXT USER wrote: Hi Bruno, Please find the attached file. The code is available. When you run this and generate the pdf , you can see the tables are being splitted . I dont want them to be splitted. Please suggest some alternatives. http://www.nabble.com/file/p12361961/Test.java Test.java

Re: [iText-questions] NAMED JavaScript functions at a document-level

2007-08-28 Thread Bruno Lowagie (iText)
steve poling wrote: > It appears that writer.addJavaScript(string code) somehow assigns the > name of "0" unlike the names I'd like to provide. yes, the names are attributed in PdfDocument. > Is there a way to defined NAMED document-level JavaScript functions? Not yet, but maybe I could impleme

Re: [iText-questions] Error in Paragraph object

2007-08-28 Thread Bruno Lowagie (iText)
Eric Summkeller wrote: > Thanks for your help! I understand that. Now I have another question. If I > create the Paragraph with the font of the Phrase that I want to add I will > get > another problem if I want to add another Phrase into the Paragraph where the > font style is for example not b