RE: [iText-questions] Signing a PDF file with a digital signature

2006-05-23 Thread Eliasen Jan
> > But once the document has been signed, a user can still edit the form. I > > need this to be disabled. How can I do that? > After creating the stamper call setEncryption(). Right... I called it with an empty userpassword and that did the trick. Thanks. Now, for something completely different;

[iText-questions] Keeping things together

2006-05-23 Thread Michael Caletka
Hi,I use the latest version of iText 1.4.1, which is a fabulous tool! However today I encountered a rather strange effect. I have declared a Paragrah, and want it to be kept together:    Paragraph p = new Paragraph();     p.setSpacingBefore(16);    p.setSpacingAfter(10);

[iText-questions] PDF document To ByteArrayOutputStream

2006-05-23 Thread M.Rameshkumar
Hi, I am trying to populate form-field values in the PDF file using PDF template file which has fillable fields. I need to populat values from the database. This should be opened in a browser where user can again edit the field values. what is approach I should tak

Re: [iText-questions] How draw a rectange in a Cell.

2006-05-23 Thread Joey Watson
Hi Bruno. Thanks for ur help. I will follow ur way to try it. I think use PdfTemplate or use low-level class should be a best way. Thanks. Joey. On 5/23/06, bruno <[EMAIL PROTECTED]> wrote: Joey Watson wrote: > Hello, > > I want to display a rectange in a cell (I use PdfPTable, PdfPCell) ,

Re: [iText-questions] Algorithm problem - use of PdfCopy and PdfStamper

2006-05-23 Thread Filipe Fedalto
Paulo,   Thanks for answering me.   I tried to use PdfStamper, but there was one catch which I couldn't figure out how to solve.   The cover Page has a pre-defined blank signature field and some legal information about digital signature and such. This field is there so the users can sign the docume

Re: [iText-questions] Algorithm problem - use of PdfCopy and PdfStamper

2006-05-23 Thread Paulo Soares
Just use PdfStamper, you can insert a blank page there and import the cover page. Paulo - Original Message - From: "Filipe Fedalto" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 23, 2006 9:32 PM Subject: [iText-questions] Algorithm problem - use of PdfCopy and PdfStamper Hi all, I am

Re: [iText-questions] Re: PdfStamper and PdfWriter

2006-05-23 Thread Paulo Soares
- Original Message - From: "Mark Rucker" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 23, 2006 9:00 PM Subject: [iText-questions] Re: PdfStamper and PdfWriter Sorry about that. I've included code - the first section is the template printer. The second code example is from the writer c

Re: [iText-questions] Signing a PDF file with a digital signature

2006-05-23 Thread Paulo Soares
- Original Message - From: "Eliasen Jan" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 23, 2006 10:05 PM Subject: RE: [iText-questions] Signing a PDF file with a digital signature I now have this working: string alias = null; PKCS12Store pk12 = new PKCS12Store(new FileStream(@"D:\Wor

RE: [iText-questions] Signing a PDF file with a digital signature

2006-05-23 Thread Eliasen Jan
I now have this working: string alias = null; PKCS12Store pk12 = new PKCS12Store(new FileStream(@"D:\Work\Projekter\DubliNet\Sikkerhed\Certifikatet\PrivateKeyWithCert.p12", FileMode.Open, FileAccess.Read), "TooHot4u".ToCharArray()); IEnumerator i = pk12.aliases(); while (i.MoveNext()) {

RE: [iText-questions] Signing a PDF file with a digital signature

2006-05-23 Thread Eliasen Jan
Hi Using this code: X509CertificateParser p = new X509CertificateParser(new FileStream(@"D:\Work\Projekter\DubliNet\Sikkerhed\Certifikatet\PrivateKey.p12", FileMode.Open, FileAccess.Read)); X509Certificate x = p.ReadCertificate(); I get a System.ArgumentException in the second line. Aditional

[iText-questions] Re: Color info

2006-05-23 Thread Carsten Hammer
Hi, if you use Ghostscript you should consider to use the pscolor application in the contrib directory of ghostscript sourcecode. Tell me if you have problems to compile it. For a simple inputfile I get a analyzing throughput of 20-30 pages per second. Of course this depends on the complexity

[iText-questions] Re: PdfStamper and PdfWriter

2006-05-23 Thread Mark Rucker
Sorry about that. I've included code - the first section is the template printer. The second code example is from the writer class, no template. Please remember this is in development. Thank you for your help: PdfReader reader = null; reader = new PdfReader("201Templa

[iText-questions] Algorithm problem - use of PdfCopy and PdfStamper

2006-05-23 Thread Filipe Fedalto
Hi all, I am developing a program to Brazilian Post Mail Office "ECT - Empresa Brasileira de Correios e Telégrafos". Congratulations to Bruno and Paulo. You may add ECT to your list of huge companies which use iText. I'm proud of trying to spread iText use inside this company. Well, I'm developin

Re: [iText-questions] PdfStamper and PdfWriter

2006-05-23 Thread Paulo Soares
Who knows? You show no code or PDFs. Paulo - Original Message - From: "Mark Rucker" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 23, 2006 7:25 PM Subject: [iText-questions] PdfStamper and PdfWriter I am using a .pdf template and over stamping with PdfStamper content, etc. I also have

Re: [iText-questions] Locking (setting ReadOnly) renamed AcroFields

2006-05-23 Thread Paulo Soares
It might work if you only used AcroFields. Mixing it with PRAcroForm won't work. Paulo - Original Message - From: "Jim Bethancourt" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 23, 2006 6:40 PM Subject: [iText-questions] Locking (setting ReadOnly) renamed AcroFields Hello all, I'm re

[iText-questions] Locking (setting ReadOnly) renamed AcroFields

2006-05-23 Thread Jim Bethancourt
Hello all, I'm renaming a few fields with AcroFields.renameField, but I am unable to set them as ReadOnly when I iterate over all of the AcroFields and attempt to lock each one. The fields that are not renamed can be locked just fine, however. I would appreciate any help you could offer on how t

[iText-questions] PdfStamper and PdfWriter

2006-05-23 Thread Mark Rucker
I am using a .pdf template and over stamping with PdfStamper content, etc. I also have another class that uses the exact same placing for the content, and uses PdfWriter and document. However, when I compare the two, the placement on the output .pdf files are different, quite a bit off. Any idea

RE: [iText-questions] [NewBie] Feature equivalent of MS Word Bookmarks

2006-05-23 Thread Paulo Soares
A stamper.close() would help. See also http://www.lowagie.com/iText/faq.html#msie. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Abhishek Srivastava > Sent: Tuesday, May 23, 2006 4:44 PM > To: 'bruno'; itext-questions@lists.sourceforge.

RE: [iText-questions] [NewBie] Feature equivalent of MS Word Bookmarks

2006-05-23 Thread Abhishek Srivastava
Hello Bruno, Please ignore my prevous mail. In a console application, I am able to see Fields Text1, Text2 so the way I have created the PDF is correct and I am able to see Text1 and Text2 through iText! So now the only problem is to write the stamper to the HttpResponse. PdfReader reader = n

RE: [iText-questions] Color info

2006-05-23 Thread Leonard Rosenthol
At 10:38 AM 5/23/2006, Rudi Verago [vlain] wrote: -> If, however, your only concern is docs from Redmon + GS, -> then you could get a pretty high reliability GUESS by simply -> extracting all the images from the document -> (code for this has been -> posted previously to this list) and examining

[iText-questions] Keeping things together

2006-05-23 Thread Michael Caletka
Hi,I use the latest version of iText 1.4.1, which is a fabulous tool! However today I encountered a rather strange effect. I have declared a Paragrah, and want it to be kept together:    Paragraph p = new Paragraph();     p.setSpacingBefore(16);    p.setSpacingAfter(10);

RE: [iText-questions] Color info

2006-05-23 Thread Rudi Verago [vlain]
-> So you will NEVER get ANY other PDFs? Never! -> If, however, your only concern is docs from Redmon + GS, -> then you could get a pretty high reliability GUESS by simply -> extracting all the images from the document -> (code for this has been -> posted previously to this list) and examining eac

Re: [iText-questions] setting media box different to page size

2006-05-23 Thread Leonard Rosenthol
At 09:05 AM 5/23/2006, Martin Resch wrote: in which case(s) could be moving the point of origin a problem and why? Trying to move the origin in PDF - especially one which is top-left instead of bottom-left based involved application of a transformation matrix AND the use of 2D matrix

RE: [iText-questions] Signing a PDF file with a digital signature

2006-05-23 Thread Paulo Soares
What error do you get and in what part of the code? Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Eliasen Jan > Sent: Tuesday, May 23, 2006 2:54 PM > To: itext-questions@lists.sourceforge.net > Subject: RE: [iText-questions] Signing a P

RE: [iText-questions] Signing a PDF file with a digital signature

2006-05-23 Thread Eliasen Jan
Hi Thanks! But I can't seem to get it to work... I have a certificate which is a .p12 file - and I can not seem to get it to work. I have tried both the non-WSE approaches from the link you have provided, replacing the certificate file in the code with my .p12 file. But it doesn't seem to work

Re: [iText-questions] [NewBie] Feature equivalent of MS Word Bookmarks

2006-05-23 Thread bruno
Abhishek Srivastava wrote: Bruno, I went through your sample but I am not able to get things to work. Basically the requirement is. In jsp app open the pdf document and set the value of the text field. Change it to read only. And write the resultant document on the http response stream. Here

Re: [iText-questions] new line problem

2006-05-23 Thread bruno
saxenashyam wrote: Please find attach xml file and pdf file. Aha, thanks for sending the XML file. I have ran it through my Test.java file (I believe I have already sent it to you). In attachment you find my result. It doesn't have the _underscores_ but it looks different because another font

RE: [iText-questions] [NewBie] Feature equivalent of MS Word Bookmarks

2006-05-23 Thread Abhishek Srivastava
Bruno, I went through your sample but I am not able to get things to work. Basically the requirement is. In jsp app open the pdf document and set the value of the text field. Change it to read only. And write the resultant document on the http response stream. Here is what I have done. 1) Went

Re: [iText-questions] Paragraph setLeading

2006-05-23 Thread bruno
a b wrote: Hi, You are right, I'm using the document.add() method. So I suppose I'm stuck with the 1.5*Biggest_Font leading, unless I retrieve all the chunks in the paragraph and use the biggest font size to set my own leading using the setLeading(float leading) method, right? Yes, you are

Re: [iText-questions] setting media box different to page size

2006-05-23 Thread Martin Resch
in which case(s) could be moving the point of origin a problem and why? Leonard Rosenthol schrieb: At 03:49 AM 5/23/2006, Martin Resch wrote: - set the mediabox and the physical page size to the overall size (in my case to the size of the bleed box) - set the size of the crop box to the size of

Re: [iText-questions] Paragraph setLeading

2006-05-23 Thread a b
Hi, You are right, I'm using the document.add() method. So I suppose I'm stuck with the 1.5*Biggest_Font leading, unless I retrieve all the chunks in the paragraph and use the biggest font size to set my own leading using the setLeading(float leading) method, right? Thanks for your prompt repl

Re: Re: [iText-questions] new line problem

2006-05-23 Thread saxenashyam
Hi Bruno,   Please find attach xml file and pdf file. I am using a servlet to download the pdf and also using saxitexthandler for same Regards, shyam       "bruno"<[EMAIL PROTECTED]> wrote: saxenashyam wrote:> hi Please xml content ;>> > This is test docs > please look at it..> >I have made a file

RE: [iText-questions] Color info

2006-05-23 Thread Leonard Rosenthol
At 06:06 AM 5/23/2006, Rudi Verago [vlain] wrote: I like an huge amount of work... Good ;). BTW I create a pdf virtual printer using redmon Ghostscript. So you will NEVER get ANY other PDFs? PDF file are parsed (on another machine) in order to find informations about pri

Re: [iText-questions] Question about Bookmarks

2006-05-23 Thread bruno
Shoaib Gauhar wrote: Hello I am using SimpleBookmark class to get bookmarks from a PDF file by using SimpleBookmark.getBookmark(reader) method. The main problem is that when it returns a list, i am unable to extract the required information from the fields in it, especially Named field. Th

[iText-questions] Question about Bookmarks

2006-05-23 Thread Shoaib Gauhar
Hello I am using SimpleBookmark class to get bookmarks from a PDF file by using SimpleBookmark.getBookmark(reader) method. The main problem is that when it returns a list, i am unable to extract the required information from the fields in it, especially Named field. Some PDF files return Actio

Re: [iText-questions] Paragraph setLeading

2006-05-23 Thread bruno
jgomez wrote: What am I doing wrong? My first guess would be that you are using this paragraph in a document.add() instead of with ColumnText or PdfPCell. I don't think multipliedleading is supported outside the context of ColumnText/PdfPCell. br, Bruno --

[iText-questions] Paragraph setLeading

2006-05-23 Thread jgomez
Hi, I've just started using iText and I have a problem trying to use the setLeading(float fixedLeading, float multipliedLeading) method of the class Paragraph. I want to set the line spacing to the size of the biggest font in the paragraph. I've tried calling the method with fixedLeading = 0 and

[iText-questions] table query

2006-05-23 Thread Deepti_Nair
Hi, Chapters start on a new page, but this has a text within a section starting on a new page after the split table in the same section. Do you have any idea why that happens? Thanks, Deepti --- Using Tomcat but need to do more? Need to sup

Re: [iText-questions] setting media box different to page size

2006-05-23 Thread Leonard Rosenthol
At 03:49 AM 5/23/2006, Martin Resch wrote: - set the mediabox and the physical page size to the overall size (in my case to the size of the bleed box) - set the size of the crop box to the size of the trim box, to view the "final" document size by viewing the pdf - set the trim box and the crop

RE: [iText-questions] Color info

2006-05-23 Thread Rudi Verago [vlain]
I like an huge amount of work... BTW I create a pdf virtual printer using redmon Ghostscript. PDF file are parsed (on another machine) in order to find informations about printing settings. The only information I cannot find is if the pdf was printed in color or in grayscale. That's all, -> No

Re: [iText-questions] ColumnText.showTextAligned(...) exclamation mark problem

2006-05-23 Thread bruno
Thorben wrote: Document document = new Document(); try { PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("e:/testlauf_.pdf")); document.open(); ColumnText.showTextAligned( writer.getDirectContent(), Element.ALIGN_LEFT,

[iText-questions] ColumnText.showTextAligned(...) exclamation mark problem

2006-05-23 Thread Thorben
Document document = new Document(); try { PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("e:/testlauf_.pdf")); document.open(); ColumnText.showTextAligned( writer.getDirectContent(), Element.ALIGN_LEFT,

Re: [iText-questions] A question about iText.

2006-05-23 Thread bruno
山角 尚史 wrote: >Is iText thread safe ? > Yes, Bruno --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Ser

Re: [iText-questions] How draw a rectange in a Cell.

2006-05-23 Thread bruno
Joey Watson wrote: Hello, I want to display a rectange in a cell (I use PdfPTable, PdfPCell) , and I want to make it like a checkbox shape. I know I can use a small picture to make it. but I don't want to use picture. and I studied the iText Demo. but seems there are no graphics can be drawed

[iText-questions] A question about iText.

2006-05-23 Thread 山角 尚史
Is iText thread safe ? --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apach

Re: [iText-questions] setting media box different to page size

2006-05-23 Thread Martin Resch
hello, thanks for your answer, leonard. i have such a "certain workflow" you spoke of: i want to generate prepress documents for offset printing. there are a lot of data structures available yet and the one big thing i want to avoid is to change the x/y coordinates in these structures. so m

Re: [iText-questions] table query

2006-05-23 Thread Paulo Soares
Chapters always start in a new page. Paulo - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Tuesday, May 23, 2006 5:20 AM Subject: [iText-questions] table query Hi, This is a sample code for the problem am facing with itext, where anything following a table that overflows

Re: [iText-questions] Can iText be used with J#.Net?

2006-05-23 Thread Paulo Soares
You have the ports itextsharp and itextdotnet to do it. Paulo - Original Message - From: "Ibrahim Atoum" <[EMAIL PROTECTED]> To: Sent: Monday, May 22, 2006 11:45 PM Subject: [iText-questions] Can iText be used with J#.Net? Hi, Can I use iText to generate PDF files using J#.NET 2