Re: [iText-questions] Invalid Index error from PdfContentReaderTool

2011-07-08 Thread Kevin Day
when you open the file in Acrobat, are you able to extract text from the file? -- View this message in context: http://itext-general.2136553.n4.nabble.com/Invalid-Index-error-from-PdfContentReaderTool-tp3654818p3655393.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] Invalid Index error from PdfContentReaderTool

2011-07-08 Thread Joseph Schmoley
Ok, thanks for that. But interestingly enough, when I use iText 5.1.1 it doesn't have that problem with the same original PDF. I was using iText 2.1.7 before. Thanks again, -Jac On Fri, Jul 8, 2011 at 11:29 AM, Dean Johnson wrote: > Try this one with the font embedded. >

Re: [iText-questions] Retrive flatten field with Itext

2011-07-08 Thread Mark Storer
> No tool can help you retrieving that original value. On the contrary. If he had an empty AcroForm version of the original, he could map out the "what and where" of every field. For radio fields, he'd have to record the caption so he'd know what text to look for in that particular field's BBox.

[iText-questions] Invalid Index error from PdfContentReaderTool

2011-07-08 Thread Joseph Schmoley
Folks, I'm getting this exception on a couple of different files I've tried to read using PdfContentReaderTool. I've attached one of them. java com.lowagie.text.pdf.parser.PdfContentReaderTool non-00.pdf java.lang. ArrayIndexOutOfBoundsException: Invalid index: 02 at com.lowagie.text.pd

Re: [iText-questions] Itext 1.4 - Fields read only not working.

2011-07-08 Thread TvT
> Preview does NOT properly implement the PDF standard - and lack of > read-only support is just another example of that :(. That is indeed bad :-( > It does not support JavaScript either. This is understandable since JavaScript (and how its interpreted in a reader) is proprietary adobe stuff...

Re: [iText-questions] Retrieving Document Properties

2011-07-08 Thread William Bell
Thanks to all that replied - now have working code as follows: PdfReader reader = new PdfReader (textBoxPDFfile.Text); int permissions = reader.Permissions; String verbose = PdfEncryptor.GetPermissionsVerbose(permissions); MessageBox.Show(verbose); When applied to a file (with no password set

Re: [iText-questions] Itext 1.4 - Fields read only not working.

2011-07-08 Thread Leonard Rosenthol
Preview does NOT properly implement the PDF standard - and lack of read-only support is just another example of that :(. It does not support JavaScript either. On 7/8/11 10:32 AM, "1T3XT BVBA" wrote: >On 8/07/2011 9:24, Rajesh Shiggaon wrote: >> is there anything I can do to make it work in th

Re: [iText-questions] Data overflow checking for static XFA form tables during xml merging

2011-07-08 Thread Leonard Rosenthol
You can add pages via XFA, but not via standard PDF content. On 7/8/11 10:13 AM, "1T3XT BVBA" wrote: >On 7/07/2011 13:17, Narasayya DONEPUDI wrote: >> # The form needs to remain interactive - to allow people to make >> manual modifications after xml merge. >> # It's a pure XFA form > >That's a

Re: [iText-questions] Data overflow checking for static XFA form tables during xml merging

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 14:35, Narasayya Donepudi wrote: > Is iText useful in knowing such details - like number of rows for a > structure etc. If not, should we simply store the xml source of the > form and parse it? Or is there any better solution? iText can extract the XML source from the PDF, and you ca

Re: [iText-questions] Retrieving Document Properties

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 16:52, Paulo Soares wrote: See the property PdfReader.Permissions. If you can't find a get/set method name it was most probably converted into a property. I think the problem is that PdfReader fails too early if you don't provide a password. There should be a way to check the permis

Re: [iText-questions] Retrieving Document Properties

2011-07-08 Thread Paulo Soares
See the property PdfReader.Permissions. If you can't find a get/set method name it was most probably converted into a property. Paulo From: William Bell [mailto:wrb...@btinternet.com] Sent: Friday, July 08, 2011 3:19 PM To: itext-questions@lists.sourceforge.net S

Re: [iText-questions] Checkboxes and Radiobuttons do not render in pdf

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 16:43, Sunil wrote: I have a webform in ASP.Net with some radio buttons and checkboxes. You're using HTMLWorker. This object will be replaced with XML Worker soon. As documented, HTMLWorker nor XML Worker support form fields because PDF forms are different from HTML forms. If you

Re: [iText-questions] Checkboxes and Radiobuttons do not render in pdf

2011-07-08 Thread Sunil
I have a webform in ASP.Net with some radio buttons and checkboxes. I am using the following code. I do get a pdf which is attached but with missing radio buttons and checkboxes. // Create a Document object var document = new Document(PageSize.A4, 50, 50, 25, 25); // Create a

Re: [iText-questions] Retrieving Document Properties

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 16:19, William Bell wrote: Sorry - I'm obviously being a bit thick here or missing something! Yes I have created a PdfReader object but this object cannot invoke getPermissions() iTextSharp.text.pdf.PdfReader r = new PdfReader (fileName); r.getPermissions();// That's part

Re: [iText-questions] Retrieving Document Properties

2011-07-08 Thread William Bell
Sorry - I'm obviously being a bit thick here or missing something! Yes I have created a PdfReader object but this object cannot invoke getPermissions()     iTextSharp.text.pdf.PdfReader r = new PdfReader (fileName);   r.getPermissions(); is NOT possible the getPermissions function is a memb

[iText-questions] Filling a dynamic Xfa table

2011-07-08 Thread Roberto
In order to realize the potential of the fillXfaForm() method, I would like to fill the rows of a dynamic table created with LiveCycle. I'm following paragraph 8.6.2 from the 2nd edition of the book iText in Action. The XML stream in the book example references a subform containing the names of

Re: [iText-questions] iText2.1.7 how to replace the pdf content and make a new pdf

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 16:02, Spandana V wrote: > Please share me the piece of code to do so, if you have any. Any help > is greatly appreciated. I assume the double post was made by error, in which case you are forgiven. However: it is generally not appreciated to double post the same question, and recidi

Re: [iText-questions] replace pdf content using itext PdfStamper

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 16:01, Sunil wrote: > I found version 4 from http://www.4guysfromrolla.com/articles/030911-1.aspx That's iTextSharp, not iText. Just like for iText, all iTextSharp versions older than iText 5 aren't supported anymore. Please upgrade. -

Re: [iText-questions] Replace pdf content using itext2.1.7 PdfStamper

2011-07-08 Thread Balder
On 8/07/2011 15:59, Spandana V wrote: Hi All, I have a requirement that I have to replace a few placeholders in pdf with a set of values, into another pdf, using itext2.1.7 , without changing the paragraphs and format of the pdf. Is tried a lot but could not make it through PdfStamper. P

Re: [iText-questions] Replace pdf content using itext2.1.7 PdfStamper

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 15:59, Spandana V wrote: > Please share me the piece of code to do so iText 2.1.7 is no longer supported. It is more than 2 years old! Please upgrade. If something doesn't work with iText 5 or later, we'll take a look at it. If something doesn't work with earlier version, you'll waste

[iText-questions] iText2.1.7 how to replace the pdf content and make a new pdf

2011-07-08 Thread Spandana V
Hi All, I have a requirement that I have to replace a few placeholders in pdf with a set of values, into another pdf, using itext2.1.7 , without changing the paragraphs and format of the pdf. Is tried a lot but could not make it through PdfStamper. Please share me the piece of code to do so, i

Re: [iText-questions] replace pdf content using itext PdfStamper

2011-07-08 Thread Sunil
I found version 4 from http://www.4guysfromrolla.com/articles/030911-1.aspx Thanks Sunil -Original Message- From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: Friday, July 08, 2011 8:51 AM To: Post all your questions about iText here Subject: Re: [iText-questions] replace pdf content using

Re: [iText-questions] Checkboxes and Radiobuttons do not render in pdf

2011-07-08 Thread Balder
On 8/07/2011 15:46, Sunil wrote: When I am converting my web page to pdf, Please clarify, what are you using, how do you do it, show us a standalone working example of the relevant code. I found that it does not render the checkboxes and radiobuttons on my web page, but just the text for t

Re: [iText-questions] Checkboxes and Radiobuttons do not render in pdf

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 15:46, Sunil wrote: When I am converting my web page to pdf, I found that it does not render the checkboxes and radiobuttons on my web page, but just the text for them. Is there a way to render radio buttons and checkboxes from my web page in pdf using iText? The first time

Re: [iText-questions] replace pdf content using itext PdfStamper

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 15:36, Spandana V wrote: > using itext3.7 There is no iText 3.7, there has never been an iText 3.7. See http://itextpdf.com/history/ If you're using iText 3.7, you are not using an official (probably an illegal) version, and we would like to hear where you've found it before we answer

Re: [iText-questions] Retrieving Document Properties

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 12:25, William Bell wrote: > how do I link/attach the getPermissions() function to the PDF document > I have read in? What do you mean by this? You have created a PdfReader object, and you've invoked getPermissions() to find out what is allowed. Now what do you want to do? Do you wan

Re: [iText-questions] Retrive flatten field with Itext

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 13:03, sudhakarnv wrote: > Hi All > > Please find the doscusign flattened file. Ouch, this isn't just a matter of retrieving text fields, you also want to retrieve the state of a radio field / check box. The actual value of such a field (true/false, on/off, yes/no) gets lost in the

Re: [iText-questions] How to reply to a post

2011-07-08 Thread Balder
On 8/07/2011 12:58, William Bell wrote: Sorry - a trivial question I know - but can someone please confirm that if I have received a reply post to one of my posts, then to respond to that reply post I simply reply to that email? Or is there another way? Always include the list (as long as it's

Re: [iText-questions] How to reply to a post

2011-07-08 Thread Alessandro Ferrucci
No different than how you would respond to an email from a friend. Hit Reply, and/or Reply All. Reply All will just include both the list and the email of the user who responded to your last email sent, either way will work fine. On Fri, Jul 8, 2011 at 6:58 AM, William Bell wrote: > Sorry - a

Re: [iText-questions] Retrive flatten field with Itext

2011-07-08 Thread sudhakarnv
Hi All Please find the doscusign flattened file. http://itext-general.2136553.n4.nabble.com/file/n3653721/Docusignflat.pdf Docusignflat.pdf THanks In Advance Sudhakar -- View this message in context: http://itext-general.2136553.n4.nabble.com/Retrive-flatten-field-with-Itext-tp3651314p365

Re: [iText-questions] Itext 1.4 - Fields read only not working.

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 9:24, Rajesh Shiggaon wrote: > is there anything I can do to make it work in the Preview also? I could suggest to add a JavaScript alert and JavaScript code to prevent changing the field, but chances are Preview won't execute the JavaScript code either. Some may say the fact that Pre

Re: [iText-questions] Itext 1.4 - Fields read only not working.

2011-07-08 Thread Rajesh Shiggaon
Thanks for your hint to test it in different version of reader. When I tested the same PDF generated by my code in Acrobat Reader (10.x.x) it works fine but the MAC Preview (5.0.3) software fails to recognize the read only flag. So my next question is there anything I can do to make it work in the

Re: [iText-questions] Data overflow checking for static XFA form tables during xml merging

2011-07-08 Thread 1T3XT BVBA
On 7/07/2011 13:17, Narasayya DONEPUDI wrote: > # The form needs to remain interactive - to allow people to make > manual modifications after xml merge. > # It's a pure XFA form That's a pity. I don't know if it's possible to add extra pages to a pure XFA form. We'd have to test this. > # We wa

Re: [iText-questions] Itext 1.4 - Fields read only not working.

2011-07-08 Thread 1T3XT BVBA
On 8/07/2011 8:57, Rajesh Shiggaon wrote: > is there any workaround for this? No, if you flatten the fields, the fields are gone. You've now heard from two people that setting the read only flag works. If you want us to help you, you need to provide a standalone example (iText 5 or higher) that