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

2011-07-07 Thread 1T3XT BVBA
On 8/07/2011 8:44, TvT wrote: > try upgrading at least to 2.1.7 That's not an option. If you do the effort to upgrade, why would you upgrade from a version that is 4 years old to a version that is 2 years old and for which there is no supported either? A future proof approach is to upgrade to i

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

2011-07-07 Thread Rajesh Shiggaon
Thanks ToM. I tried both, it does not work. Here is the code snippet I had pasted earlier which contains both the example. boolean newToMedicareFlag = form.setFieldProperty("newToMedicare", "setflags", PdfFormField.FF_READ_ONLY, null);

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

2011-07-07 Thread TvT
Ah didn't see the 2nd linethat would have been too easy... 2011/7/8 TvT > Hey, > > seems to me that your are setting the wrong flag: > > acroFields.setFieldProperty(fieldName, "setfflags", > PdfFormField.FF_READ_ONLY, null); > It is the double f you want to set: *setfflags* > > If the licen

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

2011-07-07 Thread TvT
Hey, seems to me that your are setting the wrong flag: acroFields.setFieldProperty(fieldName, "setfflags", PdfFormField.FF_READ_ONLY, null); It is the double f you want to set: *setfflags* If the license of the latest version is not possible for you try upgrading at least to 2.1.7 ... Regards T

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

2011-07-07 Thread 1T3XT BVBA
On 8/07/2011 1:07, Rajesh Shiggaon wrote: > I need to make sure that I have done everything correctly The recentlyMovedFlag is set to read only correctly, but maybe not all viewers respect that flag. Maybe you want to flatten the field... I don't know. Do you have a standalone example (iText 5 or

Re: [iText-questions] Unable to determine the font height

2011-07-07 Thread 1T3XT BVBA
On 7/07/2011 22:31, Wim Lambrechts (PeopleWare) wrote: > Is there a way to fix a font BTW? Yes, but that's off-topic on this list. -- All of the data generated in your IT infrastructure is seriously valuable. Why? It conta

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

2011-07-07 Thread Rajesh Shiggaon
Thanks Alexis. I Understand this is a old version not sure if this is exactly 1.4 but definitely older one based on the package names I am seeing. I was wondering if there is anything else I need to do. I need to make sure that I have done everything correctly before I tell the client to go for new

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

2011-07-07 Thread Alexis Pigeon
Hi Rajesh, On 7 July 2011 23:42, Rajesh Shiggaon wrote: > > Hello Guys - I am working on a code which modifies the PDF written by > someone. I am trying to make some of the fiels as read only. Below is my > code snippet. We are using Itext jar 1.4 version. > iText 1.4 is more than 5 years old :

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

2011-07-07 Thread Rajesh Shiggaon
Hello Guys - I am working on a code which modifies the PDF written by someone. I am trying to make some of the fiels as read only. Below is my code snippet. We are using Itext jar 1.4 version. Even I set some of the fields as read only, still I can edit it. Can someone tell me what am I doing wrong

Re: [iText-questions] Unable to determine the font height

2011-07-07 Thread Wim Lambrechts
the problem initially occurred with font Myriad Pro as found here: http://www.azfonts.net/load_font/myriadpro_blackcond.html Because this did not work, I downloaded the trial of Adobe Photoshop (just to try), and the problem is also in some of the Myriad Pro fonts there. I was unaware of the ter

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

2011-07-07 Thread TvT
@Mark Interessting approach, didn't thought of that... But Sudhakar be aware that this actually means coding something... There would also be another possibility, if your PDF has a certain structure like: Name: surname name (<- this was a field before, except name) Age: 18 Then one could retrieve

Re: [iText-questions] Retrieving Document Properties

2011-07-07 Thread 1T3XT BVBA
On 7/07/2011 16:34, William Bell wrote: Hi, I'm very 'new' to iTextSharp and to PDF documents in general (well, from a developers point of view). I am trying to retrieve the PDF document properties found on the Security TAB in the Document Properties dialog, normally accessed by selecting File

Re: [iText-questions] Retrieving Document Properties

2011-07-07 Thread Mark Storer
1. Yes. 2. You'll want to use the following functions: PdfReader.isEncrypted() PdfReader.is128Key() pdfReader.getPermissions() getPermissions will return an integer that is a number of different flags OR'ed together. These flags are defined in PdfWriter. Specifically, all the ALLOW_* values.

Re: [iText-questions] How to display HTML content in PDF ?

2011-07-07 Thread 1T3XT BVBA
On 7/07/2011 16:18, Ankit Desai wrote: > I tried using HTMLWorker Try http://demo.itextsupport.com/xmlworker/ and explain what isn't working for you. -- All of the data generated in your IT infrastructure is seriously valu

Re: [iText-questions] Vertical word wrapped text in signature

2011-07-07 Thread 1T3XT BVBA
On 7/07/2011 14:11, Luis Villa wrote: > I've tried to add a ColumnText in the PdfTemplate of the signature. > The problem is that i cannot rotate the text. It's a matter of math: you can always change the CTM to rotate content. If you don't like the math, why don't you wrap the PdfTemplate inside

Re: [iText-questions] Some objects(type /pages ) are missing in pdffiles...??

2011-07-07 Thread Mark Storer
Can we see your "before" and "after" PDFs? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; > -Original Message- > From: sam_dev [mailto:gorgeious@gmail.com] > Sent: Thursday, July 07, 2011 12:02 AM > To: itext-questi

Re: [iText-questions] printing pdf stream

2011-07-07 Thread 1T3XT BVBA
On 7/07/2011 17:09, Kevin Day wrote: > Acrobat doesn't handle things very > well when you submit multiple print jobs in quick succession. When you call Acrobat or Reader from the Execute class, you start up a process that stays alive for a while even after the Java process has been terminated. Th

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

2011-07-07 Thread Mark Storer
There Is A Way. 1) Get the bounding boxes of all the fields from the unflattened form. 2) Create a RenderListener implementation that examines the page contents' text bounding boxes to see What Goes Where. Withou

Re: [iText-questions] Unable to determine the font height

2011-07-07 Thread 1T3XT BVBA
On 7/07/2011 17:18, Wim Lambrechts wrote: > If reposting a question is not done, please tell me. It's good to remind us, but... we've only seen this problem with broken fonts. The people who experienced this problem fixed the font, and their problem was solved. Two things surprise me: 1. the fon

Re: [iText-questions] printing pdf stream

2011-07-07 Thread Kevin Day
well... they certainly could save the byte[] to a file and print it from there... be careful with printing PDFs, though - Acrobat doesn't handle things very well when you submit multiple print jobs in quick succession. -- View this message in context: http://itext-general.2136553.n4.nabble.com/p

Re: [iText-questions] Text extraction - font height/bounding box

2011-07-07 Thread Kevin Day
What about getascentlist and getdescentline isn't working for you? That is the mechanism that you should be using for what you are trying to do. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Text-extraction-font-height-bounding-box-tp3327638p3651761.html Sent from t

[iText-questions] Unable to determine the font height

2011-07-07 Thread Wim Lambrechts
I don't know how there mailinglists work, but it has a been a few days and I seem not to have read any replies on this. If reposting a question is not done, please tell me. Hello, I would like to determine the height of a text for a given font.For most fonts the GetAscentPoint and GetDescentPo

Re: [iText-questions] Basic Question

2011-07-07 Thread Rhino
On 2011-07-07 09:45, Balder wrote: > > > On 7/07/2011 15:34, Rhino wrote: >> 1. Am I correct in believing that iText can generate PDF and RTF >>documents but _not_ Word .DOC or .DOCX files? > Only PDF, RTF has not been supported for a long time. I see. I worked with iText a few years

Re: [iText-questions] How to display HTML content in PDF ?

2011-07-07 Thread Ankit Desai
That piece of code I was using with RTF doc. I know it won't convert String in to HTML and that is exactly my question. How to convert in to HTML? I tried using HTMLWorker but that won't go by section and chapter. HTMLWorker just adds/pastes HTML formatted text in top of PDF without considering re

Re: [iText-questions] Text extraction - font height/bounding box

2011-07-07 Thread LIHE
^^ isn't it possible ? -- View this message in context: http://itext-general.2136553.n4.nabble.com/Text-extraction-font-height-bounding-box-tp3327638p3651543.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] Basic Question

2011-07-07 Thread Balder
On 7/07/2011 15:34, Rhino wrote: 1. Am I correct in believing that iText can generate PDF and RTF documents but _not_ Word .DOC or .DOCX files? Only PDF, RTF has not been supported for a long time. I saw an article yesterday which seemed to be claiming that iText can now

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

2011-07-07 Thread Balder
On 7/07/2011 15:26, TvT wrote: Why do you repeat yourself within 5 minutes? I was almost writing that too, till I saw the first message was send through nabble, after which the message author probably read http://itext-general.2136553.n4.nabble.com/Data-overflow-checking-for-static-XFA-form-t

[iText-questions] Basic Question

2011-07-07 Thread Rhino
1. Am I correct in believing that iText can generate PDF and RTF documents but _not_ Word .DOC or .DOCX files? I saw an article yesterday which seemed to be claiming that iText can now generate Word DOC files. That article was mistaken, right? --

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

2011-07-07 Thread TvT
Why do you repeat yourself within 5 minutes? Most likely it is not possible to retrieve the data from a "flattened" field. iText is quite good but it can't do magic. How do you want to differentiate where the field was? It is quite difficult to retrieve the text itself if your PDF is not tagged. D

Re: [iText-questions] Test

2011-07-07 Thread TvT
Yes you can. 2011/7/7 Rhino > > I just need to see if I can post questions here. Sorry! > > > -- > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of app

[iText-questions] Test

2011-07-07 Thread Rhino
I just need to see if I can post questions here. Sorry! -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, f

[iText-questions] Vertical word wrapped text in signature

2011-07-07 Thread Luis Villa
Hello all, First of all, sorry about my english, I'm from spain :-S I'm trying to add a paragraph of text in a signature. This text have to be written from bottom to top (as rotated 90ยบ), and word wrap is needed (in case the text is too long for the page height, it must be shown in two lines) I'

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

2011-07-07 Thread Narasayya DONEPUDI
Hi, Thanks for the guidance. I've now registered on the right mailing list. # The form needs to remain interactive - to allow people to make manual modifications after xml merge. # It's a pure XFA form - that has been created in LiveCycle by importing an existing PDF - and then adding fields to

Re: [iText-questions] API documentation for 2.1.7

2011-07-07 Thread TvT
Hey, just search google - you can easily find your javadoc or generate it yourself as Mark pointed out. One location for instance is here: http://grepcode.com/snapshot/repo1.maven.org/maven2/com.lowagie/itext/2.1.7 http://repo1.maven.org/maven2/com/lowagie/itext/2.1.7/itext-2.1.7-javadoc.jar Rega

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

2011-07-07 Thread 1T3XT BVBA
Please note that you're NOT subscribed to the mailing list. You are using Nabble; that's NOT an iText site. Further questions will be rejected (and ignored) unless you subscribe. On 7/07/2011 10:08, narasayya wrote: > Hi, > > I have a static XFA form (the form has to be static as I have to use the

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

2011-07-07 Thread narasayya
Hi, I have a static XFA form (the form has to be static as I have to use the background pdf as is). Some of the form elements have been created as tables with fixed number of rows/columns, depending on the actual space made available in the original pdf form. For a specific question in the form

Re: [iText-questions] (no subject)

2011-07-07 Thread 1T3XT BVBA
On 7/07/2011 11:21, Yevgeniy Cherniak wrote: I cannot see defined font in text field. What can be done? Maybe it's inherited, maybe it's in the AP. You'll have to read ISO-32000-1. Please note that the mailing list is no surrogate for paid consultancy, support or iText/PDF training. Clearly

Re: [iText-questions] printing pdf stream

2011-07-07 Thread 1T3XT BVBA
On 6/07/2011 17:08, bobsyouruncle wrote: > Hello, > > We have been using iText to print existing pdf's with the line: > > com.lowagie.tools.Executable.printDocument("c:/test.pdf"); > > We would like to change it so that some of the pdf's are dynamic, is it > possible to print a ByteArrayOutputStrea

Re: [iText-questions] Some objects(type /pages ) are missing in pdf files...??

2011-07-07 Thread 1T3XT BVBA
On 7/07/2011 9:01, sam_dev wrote: > once I have attached > another pdf file in that particular file. The file format will be changed > after attaching the file. The /pages type object is missing in the format. > The file is working well but some objects are missing after opening it in > its binary

[iText-questions] printing pdf stream

2011-07-07 Thread bobsyouruncle
Hello, We have been using iText to print existing pdf's with the line: com.lowagie.tools.Executable.printDocument("c:/test.pdf"); We would like to change it so that some of the pdf's are dynamic, is it possible to print a ByteArrayOutputStream or ByteArray? I have looked for examples but have b

[iText-questions] Some objects(type /pages ) are missing in pdf files...??

2011-07-07 Thread sam_dev
Hi , Thanks for your previous help, I have one another problem regarding the attachments in pdf files. Brief description: I have a normal pdf file. Everything is fine in it. But once I have attached another pdf file in that particular file. The file format will be changed after a

Re: [iText-questions] Import Annotated Comment from Pdf

2011-07-07 Thread 1T3XT BVBA
On 7/07/2011 8:49, SASEKUMAR1984 wrote: > How to convert PdfDictionary to PdfAnnotation cast? You don't. Create a PdfAnnotation like this: PdfAnnotation a = new PdfAnnotation(writer, null); Then copy all the elements of the PdfDictionary into the PdfAnnotation: a.putAll(curAnnot); --