Re: [iText-questions] Flattening of FreeText annotations

2005-08-12 Thread Mark Nelson
Paulo- I have it working by modifying PdfStamperImpl, but is there any way to do it in a separate package? None of the PdfAppearance constructors are "public", so I would have to recreate the appearances altogether. Is there a better way? Thanks, Mark Paulo Soares wrote: If you have app

Re: [iText-questions] Problem with section indentation in RTF doc

2005-08-12 Thread Mark Hall
On Thursday 11 August 2005 18:07, Valentin Baudot wrote: > I'm adding chapters and sections to a RTF document and I want to indent the > sections. I'm using the addSection method with 3 args: "chapter3.addSection > (20,title,2);" but the result is not indented. Even with the > "setIndentation ()" m

Re: [iText-questions] outofmemory error while concatenating 850 files

2005-08-12 Thread Paulo Soares
Next week I'll write a FAQ about this. - Original Message - From: "rk" <[EMAIL PROTECTED]> To: "Paulo Soares" <[EMAIL PROTECTED]>; Sent: Friday, August 12, 2005 7:19 PM Subject: Re: [iText-questions] outofmemory error while concatenating 850 files > same effect, what is the maximum siz

Re: [iText-questions] Flattening of FreeText annotations

2005-08-12 Thread Paulo Soares
If you have appearances in the annotations look at what is done in PdfStamperImpl, it's quite easy. I didn't add that feature as the most prevalent annotation is the note that generally doesn't have an appearance. - Original Message - From: "Mark Nelson" <[EMAIL PROTECTED]> To: Sent: Fri

[iText-questions] Flattening of FreeText annotations

2005-08-12 Thread Mark Nelson
Hello- I have some PDFs that have comments added using "FreeText" annotations. I'd like to flatten these annotations like "regular" annotations are flattened using PdfStamper. It appears that PdfStamper only flattens fields that are children of an AcroForm, which FreeText annotations are no

Re: [iText-questions] outofmemory error while concatenating 850 files

2005-08-12 Thread rk
same effect, what is the maximum size itext can handle? my each file is about 58kb with acrofields. Its failing below 200 page itself. Regards Ramesh - Original Message - From: "Paulo Soares" <[EMAIL PROTECTED]> To: "R K" <[EMAIL PROTECTED]>; Sent: Friday, August 12, 2005 1:21 PM Su

Re: [iText-questions] outofmemory error while concatenating 850 files

2005-08-12 Thread Paulo Soares
Use PdfCopy. - Original Message - From: "R K" <[EMAIL PROTECTED]> To: Sent: Friday, August 12, 2005 3:57 PM Subject: [iText-questions] outofmemory error while concatenating 850 files Hello I am trying to concatenate 850 files to one using the below mentioned code. PdfCopyFields copy

[iText-questions] outofmemory error while concatenating 850 files

2005-08-12 Thread R K
Hello I am trying to concatenate 850 files to one using the below mentioned code. PdfCopyFields copy = new PdfCopyFields(new FileOutputStream(output)); PdfReader reader = null; for (int i = 0; i < pages.size(); i++) { reader = new PdfReader

Re: [iText-questions] Can Signature & Encryption exist together?

2005-08-12 Thread Paulo Soares
You must call PdfStamper.setEncryption() if you want the signature to be encrypted. - Original Message - From: "Keith Tang" <[EMAIL PROTECTED]> To: Sent: Friday, August 12, 2005 9:48 AM Subject: [iText-questions] Can Signature & Encryption exist together? > Hi, > > > > I'm currently cr

[iText-questions] Alignment of images in table's cell with text in HTMLWorker (HTML-to-PDF)

2005-08-12 Thread Sergey Vlasov
Hello, I'm trying to enhance HTMLWorker to be able to handle images (I've used some ideas from SAXiTextHandler). Here is what I did: public void startElement(String tag, HashMap h) { ... if (tag.equals("img")) { Image img; try { Properties p = new Properties();

[iText-questions] Font Face is not Worling With HTMLWorker ,Urgent solution requied.

2005-08-12 Thread sunil rajput
hi, i have written simple code using the HTML , i want to change the Font Face to Times New Roaman, but when i run the below code it is not working , PDF is generated with the Arial Font.  is there any solution for that and tag is also not working. do i need to include any other file for that???

Re: [iText-questions] Images get lost when converting PDF to PS

2005-08-12 Thread Leonard Rosenthol
At 07:37 AM 8/12/2005, Sven Loth wrote: I'm trying to add several informations and images to existing PDF files. HOW are you adding them? PdfStamper? As annotations? What? If I convert PDFs to PS using pdf2ps the images disappear in the printout. What version of pdf2ps?

Re: [iText-questions] Can Signature & Encryption exist together?

2005-08-12 Thread Leonard Rosenthol
At 04:48 AM 8/12/2005, Keith Tang wrote: The problem started here when I used ITEXT to add in the signature with the certificate I have created into the encrypted PDF doc I have created earlier. It seems that when I open the PDF document this time, it doesn’t prompt for user password but it has

Re: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-12 Thread bruno
Roger Misteli wrote: Now I have a PDF document that contains PDF Form fields which I want to fill and flatten and that file contains XMP metadata. I want to remove that metadata and write my own metadata (using the code above) If you have a PdfReader, you can ask for its catalog with getCatalo

[iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-12 Thread Roger Misteli
Hiyas In a previous life, I added my XMP metadata using this: byte[] xmpBuffer = getXMLDocumentAsByteArray(); PdfStream xmp = new PdfStream(xmpBuffer); xmp.put(PdfName.TYPE, PdfName.METADATA); xmp.put(PdfName.SUBTYPE, new PdfName("XML")); PdfIndirectReference ref = w

Re: [iText-questions] Add signatures in a existing blank signature

2005-08-12 Thread Juan Sanchez
Hi Paulo. Can I control when I build PDFApparence that byterange only has two parts ? Diffrence betwen my code and the sample that use keyStore before call preclose is : With KeyStore : sap.setCrypto(key, chain, null, PdfSignatureAppearance.WINCER_SIGNED);

[iText-questions] Images get lost when converting PDF to PS

2005-08-12 Thread Sven Loth
Hi list, I'm trying to add several informations and images to existing PDF files. Everything works fine and if I'm viewing the result in AcrobatReader or gpdf under linux the images are displayed and the document can be printed with no loss. If I convert PDFs to PS using pdf2ps the images disapp

Re: [iText-questions] link toward a new page

2005-08-12 Thread bruno
Farid KHEZZAR wrote: hi, i am generating a pdf in a web page using the httpservletresponse outputstream, i ues reference to other files using the anchor object : the problem is these files are open in the same window and i want it to be open in a new window like "target=_blank" is it possib

[iText-questions] link toward a new page

2005-08-12 Thread Farid KHEZZAR
hi, i am generating a pdf in a web page using the httpservletresponse outputstream, i ues reference to other files using the anchor object : the problem is these files are open in the same window and i want it to be open in a new window like "target=_blank" is it possible ? I've read the doc

[iText-questions] Can Signature & Encryption exist together?

2005-08-12 Thread Keith Tang
Hi,   I’m currently creating a PDF file using jasper report and after creating a simple pdf document, I try writing some java code using ITEXT to add in some PDF scripting and also encrypt the document using PDF own 128-bit encryption. Up until this part, the document work perfectly fine

[iText-questions] How to verify all signatures externally

2005-08-12 Thread Juan Sanchez
Hello I want to verify all signature in a PDF file using my propietary keyStore. I think that, following verification sample that apeear in the HowtoSign.html , i can follow the same to obtain the names of signature. My propietary funtion has as parameters the p7 and data signed (if signature w

Re: [iText-questions] Pdf to Excel

2005-08-12 Thread bruno
Petr wrote: Hi, I'm currently doing some R&D on iText and i have a question which i couldnt find an answer by my own browsing. Is there a way to convert a pdf file into an Excel based format or is there a way to use iText to generate Excel files? iText doesn't produce XLS files, nor does it co

[iText-questions] Problem with section indentation in RTF doc

2005-08-12 Thread Valentin Baudot
Hi, I'm adding chapters and sections to a RTF document and I want to indent the sections. I'm using the addSection method with 3 args: "chapter3.addSection (20,title,2);" but the result is not indented. Even with the "setIndentation ()" method of the section object it doesn't work. Am I missing

[iText-questions] Pdf to Excel

2005-08-12 Thread Petr
Hi, I'm currently doing some R&D on iText and i have a question which i couldnt find an answer by my own browsing. Is there a way to convert a pdf file into an Excel based format or is there a way to use iText to generate Excel files? Thank you in advance. ___

Re: [iText-questions] Add signatures in a existing blank signature

2005-08-12 Thread Juan Sanchez
Hi to all. How can I make my signature only with a Byte range in two parts ? I'm building the messagedigest to invoke my p7 construtor, then when the iText builds the byterange in 3 parts ? When I execute sample "external has and signature in Windows Certificate Mode" , i only find byte ra