[iText-questions] request a help from china!(merging pdf with the same named acrofields)

2003-12-23 Thread li hongbin
hi Now I am using itext to generate a pdf to print,and I met some questions as following: first, I use word to generate a pdf document as a template, in the pdf I add a form and some acrofields. in my program i want to use the pdf as a template.when i use it only one time,it works well.bu

[iText-questions] Strange problem with iText and Weblogic

2003-12-23 Thread Pradeep Shekade
Hi,   We are using Weblogic 7.0 and JDK 1.3.   We are using iText for pdf generation. In the class that I have written,the call - PdfWriter.getInstance() seems to behaving very strangely.   ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();Document document = new Document();

[iText-questions] Embed .mp3 or .au and access via anchor

2003-12-23 Thread Dirk Leas
I need to produce a PDF that encapsulated both textual material and sound files (either .mp3 or .au) where the sound files are activated/played through links in the PDF. The current implementation is with a HTML page with a referencing the served sound file(s). This solution requires the servi

[iText-questions] Problems rotating pages

2003-12-23 Thread Graham Leggett
Hi all, I am having a problem generating a many page PDF file, with pages that alternate between landscape and portrait. Before I open each new page, I do one of the following: document.setPageSize(PageSize.A4.rotate()); or document.setPageSize(PageSize.A4); depending on whet

[iText-questions] RE: Form button's Values

2003-12-23 Thread Paulo Soares
Title: RE: Form button's Values You should use "Off". Other values may be valid and case matters. See AcroFields.getAppearanceStates(). Best Regards, Paulo Soares -Original Message- From:   wang yun [SMTP:[EMAIL PROTECTED] Sent:   Tuesday, December 23, 2003 17:47 To: Paulo S

[iText-questions] RE: Form button's Values

2003-12-23 Thread wang yun
Dear Paulo, I want to uncheck the buttons. I can use form.setField(name, "") or form.setField(name, "OFF"); Which way is better? Does "OFF" always mean unchecked state? Is there other term that means unchecked state? Thank very much, yun

[iText-questions] [SOVLED] How to get AcroField rectangle?

2003-12-23 Thread Andrzej Jan Taramina
To get the rectangle (extents) for a specific AcroField this seems to work: AcroFields = pdfStamper.getAcroFields(); AcroFields.Item item= (AcroFields.Item)pdfFields.getFields().get( fieldID ); ArrayList widgets = item.widgets; PdfDictionar

[iText-questions] How to get AcroField rectangle?

2003-12-23 Thread Andrzej Jan Taramina
I'm trying to figure out how to get the rectangle (extents) for a specific AcroField. I have all the fields, which I get from my stamper as follows: fields = pdfStamper.getAcroFields(); and I can get the AcroFields.Item as follows: AcroFields.Item item = (AcroFields.Item)fields

Re: [iText-questions] How to stop PdfPTable from wrapping and page numbering

2003-12-23 Thread Glenn Holmer
Cameron Hart wrote: The other thing was I read that to do a footer like "Page x of y" I need to use templates, but I couldn't understand how to use templates to acheive this. Can anyone point me at an example? private BaseFont baseFont; (when doc is created:) doc = new Document(PageSize.LETTER);

[iText-questions] PDF: Table Borders

2003-12-23 Thread Dunstall, Christopher
Hi all, I hope someone's come across this one before... In a PDF, I want to have a table with no border... I've tried the Table.setBorder method with Rectangle.NO_BORDER but it doesn't seem to have any affect. Anyone have any insight on how to get around this? I have version 1.01 of iText

[iText-questions] problems adding data to forms created by concat_pdf.

2003-12-23 Thread brain wave
Hi, I able to concatenate pdfs and generate a new pdf.All these forms have controls.I use outputFDF.SetValue() to set data to the form fields. However,only the form fields in the last attached form get filled while the initial files remain empty. DoctorData.pdf has the controls but only the last

RE: [iText-questions] Flattening only part of the fileds in PDF Form

2003-12-23 Thread Paulo Soares
Title: RE: [iText-questions] Flattening only part of the fileds in PDF Form You'll have to modify PdfStamper to do that. Not an easy task. It's an interesting idea for a future release, though. Best Regards, Paulo Soares -Original Message- From:   [EMAIL PROTECTED] [SMTP:[EMAIL

RE: [iText-questions] Problems in Arabic Diactrics (tashkeel)

2003-12-23 Thread Paulo Soares
Title: RE: [iText-questions] Problems in Arabic Diactrics (tashkeel) I'll add that option for the next release. When I've it ready I'll send it to you first for testing. Best Regards, Paulo Soares -Original Message- From:   Ayman Zarroug [SMTP:[EMAIL PROTECTED] Sent:   Tuesday,

RE: [iText-questions] problem with bookmark

2003-12-23 Thread Paulo Soares
Title: RE: [iText-questions] problem with bookmark That code would be correct for a GOTOR but not for a GOTO action as in this case. I suspect the pdf is broken. Best Regards, Paulo Soares -Original Message- From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of PIGEYRE

RE: [iText-questions] problem with bookmark

2003-12-23 Thread PIGEYRE Bastien
Title: RE: [iText-questions] problem with bookmark I found a problem in your source code in the method bookmarkDepth():     you try to cast a PdfNumber into a PdfIndirectReference. or this is not possible. //s.append(pages.get(((PdfIndirectReference)arr.get(0)).getNumber()));    

Re: [iText-questions] Problems in Arabic Diactrics (tashkeel)

2003-12-23 Thread Ayman Zarroug
Yes, you were right. When using the font arialuni.ttf, the arabic letters and diacritics are all displayed correctly. I guess I was mistaken in believing diacritics are not being handled. Thank you for that. There is another issue though. We are using JasperReports to generate PDF documents an

RE: [iText-questions] problem with bookmark

2003-12-23 Thread PIGEYRE Bastien
Title: RE: [iText-questions] problem with bookmark ok thanks this looks like what I'm looking for:) but when I try it I have a bug during execution: this is my code:         PdfReader pdfReader = new PdfReader(myPdfDocuments[currIdx]);         List list = SimpleBookmark.g