[iText-questions] How to delete an AA

2010-12-01 Thread kpgraci
Hi all, I have an existing PDF and I want to delete the AA responsible for applying the format to a field. I know how to get the AA I'm interested in by using pdfReader, but even after reading the book (well, skimming) I have no idea how to remove an AA. Guidence? Thanks! -- View this message

[iText-questions] Remove field level formatting

2010-11-18 Thread kpgraci
I have pdf files with formatting applied to some of the fileds and I want to remove that formatting. Below I list the routine I use to inspect the format and get the javascript name and therefore determine the type of formatting - although this is not important as all I want to do is remove the f

Re: [iText-questions] open new browser window on pdfaction

2010-10-15 Thread kpgraci
solution: (sorry for taking up so much bandwidth but here is the solution) 2nd parameter is openInNewWindow submit3.Action = PdfAction.JavaScript("app.launchURL(""http://www.google.com/"";, true);", stamper.Writer) -- View this message in context: http://itext-general.2136553.n4.nabble.com/o

Re: [iText-questions] open new browser window on pdfaction

2010-10-15 Thread kpgraci
EDIT: The first one does work (as I recall) but it navigates using the same window, I want to open a new window. The others do nothing. -- View this message in context: http://itext-general.2136553.n4.nabble.com/open-new-browser-window-on-pdfaction-tp2995968p2997058.html Sent from the iText -

Re: [iText-questions] Fields with same name?

2010-10-15 Thread kpgraci
That helps a bit, yes. So pdf does support duplicate names, but iText does not, but the reader fixes it so they do work. OK. You said there is not really a valid case where field names should be the same, and if you wanted different data I agree (not withstanding the radio button issue) but I ha

Re: [iText-questions] open new browser window on pdfaction

2010-10-15 Thread kpgraci
Right, I figured it would require Javascript, which, I assume, is beyond the scope of this forum, but here is what I've been able to scrounge up: (non of which work fo me) submit3.Action = New PdfAction("www.google.com") submit3.Action = PdfAction.JavaScript("app.launchURL(\'www.ebay.com\',true)

[iText-questions] open new browser window on pdfaction

2010-10-14 Thread kpgraci
Using iTextsharp on an asp.net website to serve pdf files. I'm adding a button to a pdf, setting the action to open a file like this: submit3.Action = New PdfAction(helpFile(i - 1), Nothing, "open", helpFilePath) This works, but I wnat instead to open an html page in a new browser window. How

Re: [iText-questions] Renaming acrofields to a different (shorter) name

2010-10-12 Thread kpgraci
after looking around it seems I may be dealing with a form created with Designer. Until yesterday I had no idea there was a difference between pdf files, what a mess. My form fields have the form: F[0]..P1[0].[0], that apparently indicate it was created with designer and iText will not work with

[iText-questions] Fields with same name?

2010-10-11 Thread kpgraci
I read this on this mailing list: "As you pointed out: you risk ending up with duplicate names, and that doesn't work. You can have duplicate field names in a PDF form, but fields with the same name, should also have the same content (and that may not be what you want). " I've read similar th

[iText-questions] Renaming acrofields to a different (shorter) name

2010-10-11 Thread kpgraci
Hi all, iTextShart Novice, waiting on my copy of iText 2nd edition... Question 1: I want to rename all the acrofields on a form. I tried this and I can append to a name but I cannot change the name itself. Is there a way to rename a field to a shorter name? Assuming 'No' to Q1: Question 2:

[iText-questions] Acro Fields not copied to duplicate pages

2010-09-08 Thread kpgraci
I am merging several PDF files that each have acrofields on them. It works when the PDFs are unique, that is, none of the pdfs are the same. If, however, I try to merge two of the same pdf files the form fields only appear on the last copy of the page. So if I have a pdf file and I merge it to