Re: [iText-questions] Determining if a table will fit on a page.

2008-11-06 Thread 1T3XT info
Redefined Horizons wrote: > Let me first say that the IText library is one of the best Java > libraries that I have ever had the pleasure of working with, and the > IText book one of the easiest tech books I've come across. Thanks! > I'll be using IText to generate the report page as a PDF. I'll

Re: [iText-questions] Comments on com.lowagie.text.pdf.parser addition to SVN

2008-11-06 Thread 1T3XT info
Kevin Day wrote: > SVN just worked for me (no idea what changed) SVN @ SF has some hick ups from time to time. "Try again later" usually works ;-) (Also check the SF status page for planned outages.) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -

Re: [iText-questions] translates a String to a Rectangle

2008-11-06 Thread Byomokesh Sahoo
Hi, Plz anyone has give some sample code. I am new in Java. So i am struggling to get this method. Thanks Byomokesh >>Byomokesh Sahoo wrote: >> >> No. Not solved. I cant understand how it will be calculated. I am only >> doing manually changes in Rectangle and creating jar files-- >> > >like...

Re: [iText-questions] Unrecognized PDF content: The document contains PDF content or custom content not supported by the current version of Adobe Reader.

2008-11-06 Thread Leonard Rosenthol
Interesting... The validity checker expects that DR is a standard Resources dictionary and flags (as a WARNING) any key that isn't defined in the PDFRef. It doesn't make it wrong/invalid - but our syntax checker will flag it. Leonard On Nov 6, 2008, at 9:50 AM, Paulo Soares wrote: I'm

[iText-questions] Determining if a table will fit on a page.

2008-11-06 Thread Redefined Horizons
Let me first say that the IText library is one of the best Java libraries that I have ever had the pleasure of working with, and the IText book one of the easiest tech books I've come across. I had a question that relates to working with Table objects. I couldn't find the answer after cruising thr

Re: [iText-questions] Comments on com.lowagie.text.pdf.parseraddition to SVN

2008-11-06 Thread Kevin Day
I do use Eclipse, and I have compatablity level set to 1.4.  Unfortuantely, that catches language level stuff, but not API.  StringBuilder, for example, is part of my rt.jar file, so the compiler won't flag it.  I should be able to maintain discipline on this one project - if I stray, I'll take

Re: [iText-questions] Comments on com.lowagie.text.pdf.parseraddition to SVN

2008-11-06 Thread Nathan ALDRIDGE
I'm not sure what your development environment is, but in Eclipse you can make project settings to ensure that you only compile JDK1.4 compatible stuff (i'm not entirely sure if that will trap everything though). From: Kevin Day [mailto:[EMAIL PROTECTED] Sent:

Re: [iText-questions] Comments on com.lowagie.text.pdf.parser addition to SVN

2008-11-06 Thread Kevin Day
SVN just worked for me (no idea what changed), but the changes are now committed.  If you see anything else that is not 1.4 compatible, please let me know.   - K   --- Original Message ---    From: Kevin Day <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: 

Re: [iText-questions] Comments on com.lowagie.text.pdf.parser addition to SVN

2008-11-06 Thread Kevin Day
Nathan-   Good catch.  When I wrote the code, I didn't realize there was a 1.4 JDK requirement.  Bruno stripped out all of the generics stuff, but the hashCode call and the StringBuilder are definitely issues, and there are suitable 1.4 compatible mechanisms.   I've got those corrected, but SVN

Re: [iText-questions] Comments on com.lowagie.text.pdf.parser addition to SVN

2008-11-06 Thread Kevin Day
hmmm - well that is certainly a compelling idea.  We currently use a commerical OCR engine in one of our products, but it has the limitation of converting the PDF to a full image prior to processing it, then export the result to PDF.  If there was any annotation or form content, it gets lost.  I

Re: [iText-questions] Comments on com.lowagie.text.pdf.parser addition to SVN

2008-11-06 Thread Nathan ALDRIDGE
I understand that this is very bleeding edge but what is the policy for which JDK Itext is targetted at - some JDK 5.0 (Arrays.hashCode(float[]) and JDK6.0 (StringBuilder)? Stuff has snuck in here that is definitely not JDK 1.4. (also, thanks for doing something that has been in my 'get around t

Re: [iText-questions] Search PDF content using iText

2008-11-06 Thread Kevin Day
There is no zip file anymore (that was just until the code could make it into SVN).   Just get the SVN HEAD folder, then look at the com.lowagie.text.pdf.parser.PdfTextExtractor#getTextFromPage() method.   - K     --- Original Message ---    From: "Maheen

[iText-questions] Comments on com.lowagie.text.pdf.parser addition to SVN

2008-11-06 Thread Schalück , Elmar
Hi, another idea was to extract the images and do some OCR on them (e.g. with tesseract) and put the text behind the image to be better searchable. Elmar >Kevin Day wrote: >> I saw mention a bit earlier of using the content parser to determine >> embedded image (or other xobject) location, etc...

Re: [iText-questions] Search PDF content using iText

2008-11-06 Thread 1T3XT info
Maheen Alaudeen wrote: > Bruno/Kevin/Some one > > Will you please give me location in SVN from where i can download the > .zip file for extracting pdf content functionality? http://itext.svn.sourceforge.net/viewvc/itext/trunk/src/ (Look for Download GNU tarball at the bottom of the page.) --

Re: [iText-questions] modifying an XFA form via its XML?

2008-11-06 Thread 1T3XT info
Ekstrom, Max wrote: > Any help is much appreciated. It's evening overhere (Belgium). I'll have a look tomorrow. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info - This SF.Net email is sp

Re: [iText-questions] Comments on com.lowagie.text.pdf.parser addition to SVN

2008-11-06 Thread 1T3XT info
Kevin Day wrote: > I saw mention a bit earlier of using the content parser to determine > embedded image (or other xobject) location, etc... I'm wondering about > some examples where this would be useful (outside of maybe trying to > actually render a PDF page into a JComponent or a TIFF image)

Re: [iText-questions] Comments on com.lowagie.text.pdf.parser addition to SVN

2008-11-06 Thread Kevin Day
I saw mention a bit earlier of using the content parser to determine embedded image (or other xobject) location, etc...  I'm wondering about some examples where this would be useful (outside of maybe trying to actually render a PDF page into a JComponent or a TIFF image).   - K       --

Re: [iText-questions] Search PDF content using iText

2008-11-06 Thread Maheen Alaudeen
Bruno/Kevin/Some one Will you please give me location in SVN from where i can download the .zip file for extracting pdf content functionality? Regards, Maheen On Wed, Nov 5, 2008 at 10:36 AM, 1T3XT info <[EMAIL PROTECTED]> wrote: > Maheen Alaudeen wrote: > > Kevin > > > > I tried to find '

Re: [iText-questions] Setting the Image Field in ITextSharp

2008-11-06 Thread Darkpea
Sorry to bother you did you have an example in vb? Paulo Soares wrote: > > > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of Brad Daniels >> Sent: Thursday, September 20, 2007 2:58 PM >> To: itext-questions@lists.sourceforge.net >> Subje

Re: [iText-questions] Comments on com.lowagie.text.pdf.parser addition to SVN

2008-11-06 Thread Paulo Soares
Nevermind the limitations, what's important is to have something to work on and from what I saw there's already a lot of functionality available. A big thank you. Paulo From: Kevin Day [EMAIL PROTECTED] Sent: Thursday, November 06, 2008 4:40 PM To: itext

Re: [iText-questions] Unrecognized PDF content: The document contains PDF content or custom content not supported by the current version of Adobe Reader.

2008-11-06 Thread Paulo Soares
I'm confused. I've just generated a signature with Acrobat 7 and I have in the /DR key: /Encoding<> In the implementation note the PDF reference says: Acrobat viewers may insert additional entries in the DR resource dictionary, such as Encoding, as a convenience for keeping track of objects b

Re: [iText-questions] Unrecognized PDF content: The document contains PDF content or custom content not supported by the current version of Adobe Reader.

2008-11-06 Thread Shadow Man
Hi, Ok, with what you tell me seems like half the battle has been won (by being able to identify the problem). So... Since im not familiar with the development cycle on iText, do i have to request a bug ticket on the project site, or has it been noted already by you (i dont know if you are part o

Re: [iText-questions] How to take this message from reader: The validity of the document certification is Unknown.

2008-11-06 Thread Leonard Rosenthol
If the user doesn't know who you are, why should they trust your document? Leonard On Nov 6, 2008, at 4:25 AM, Sr. Miguel wrote: Hello, I have a pdf file with a server-generated digital signature. When the PDf is opened in a browser I get the following message: The validity of the docum

Re: [iText-questions] Unrecognized PDF content: The document contains PDF content or custom content not supported by the current version of Adobe Reader.

2008-11-06 Thread Leonard Rosenthol
You are correct - it _IS_ the /Encoding/WinANSIEncoding value inside that DR dictionary. That isn't a valid value there - hence the error being thrown. I suspect that's a bug in iText - easy to fix. Leonard On Nov 6, 2008, at 3:43 AM, Shadow Man wrote: Hello again, The code for signing

[iText-questions] Comments on com.lowagie.text.pdf.parser addition to SVN

2008-11-06 Thread Kevin Day
In the interest of self criticism, I thought I'd post some of the things that I think need work in the new content parser implementation: 1. The CMapAwareDocumentFont, I suspect, is an ugly, ugly hack that would be better handled in a different way. It seems to me that almost all fonts will h

[iText-questions] modifying an XFA form via its XML?

2008-11-06 Thread Ekstrom, Max
Dear iText Folks, I've merrily and productively used iText to extract XML from an XFA form and am pleased with this newfound power. What I'd like to do now is insert changed XML back into the XFA form. Here's a simple snippet to illustrate the round trip: ... PdfReader reader = new PdfReader(sou

Re: [iText-questions] Why doesn't this code work?

2008-11-06 Thread 1T3XT info
Lopes, James wrote: > The Hello Avatar prints ok but the image that is to follow doesn’t. It works for me. Of course, I've created my own barimg, and I've defined its position. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info

Re: [iText-questions] Use a table is the better way, in this case?

2008-11-06 Thread 1T3XT info
Mirco Piccin wrote: > Hi all. > Maybe a silly question. > > I need to produce a PDF structured as exampled in the image attached > (example.jpg). > I'm a newbie with iText (and to be honest, also with java ... :-D). > > I'm doing the job in this way: > > create a table, set property of table > c

Re: [iText-questions] Adding chapters to ColumnText

2008-11-06 Thread 1T3XT info
hikl wrote: > is there a way to add chapters? No. > i need them for my table of contents. There are other ways to create a table of contents. Use PdfOutline objects. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -

[iText-questions] How to take this message from reader: The validity of the document certification is Unknown.

2008-11-06 Thread Sr. Miguel
Hello, I have a pdf file with a server-generated digital signature. When the PDf is opened in a browser I get the following message: The validity of the document certification is Unknown. The author could not be verified. My goal is to make that message disappear without user interaction.

Re: [iText-questions] Unrecognized PDF content: The document contains PDF content or custom content not supported by the current version of Adobe Reader.

2008-11-06 Thread Shadow Man
Hello again, The code for signing is mostly from the iTextSharp examples Paulo provided, and most of the low level manipulation is done to insert the pkcs7 signature into the signature dictionary. If you want i could provide some code if it would help you find whats causing it. Just let me know.

Re: [iText-questions] Unrecognized PDF content: The document contains PDF content or custom content not supported by the current version of Adobe Reader.

2008-11-06 Thread Leonard Rosenthol
Doubtful that you are on the right track - nothing wrong with using WinANSI encoding for font data... It is more likely either a bug in iText itself or something you did in some low level code that you wrote. Let me take another look at the file for more details... Leonard On Nov 6, 2008,

Re: [iText-questions] Unrecognized PDF content: The document contains PDF content or custom content not supported by the current version of Adobe Reader.

2008-11-06 Thread Shadow Man
Hello Leonard, First of all, thanks for your response. After reading your mail I checked the syntax with Adobe Professional 8 and the same error came up, except for the part where the error trigger is mentioned (since no trigger was shown). For what I've seen it seems like a resource dictionary h

Re: [iText-questions] Retrieve element position when creating PDF document

2008-11-06 Thread 1T3XT info
nicolas DOS SANTOS wrote: > OK Thanks a lot! In doc1.pdf, you have a link pointing to a local destination named "defaultdestination". However, there is no local destination with that name in doc1.pdf. When the document is closed, iText goes through this code: for (Iterator i = dest.ent

Re: [iText-questions] Retrieve element position when creating PDF document

2008-11-06 Thread nicolas DOS SANTOS
OK Thanks a lot! 2008/11/6 1T3XT info <[EMAIL PROTECTED]> > nicolas DOS SANTOS wrote: > > Hi > > > > Here is a little sample of what I want to do. > > The principle: > > - create a link in a PDF, > > - create an anchor in another PDF > > - Concatenate the 2 PDFs and have the link that points to t

Re: [iText-questions] enabled_form_prefilled.pdf (from FAQ) breaks after one save

2008-11-06 Thread 1T3XT info
Darren wrote: > I had the same problem, I am wondering when would be the next release. It's scheduled for November 11. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info - This SF.Net emai

Re: [iText-questions] Retrieve element position when creating PDF document

2008-11-06 Thread 1T3XT info
nicolas DOS SANTOS wrote: > Hi > > Here is a little sample of what I want to do. > The principle: > - create a link in a PDF, > - create an anchor in another PDF > - Concatenate the 2 PDFs and have the link that points to the anchor . Great example. It explains what you try to achieve, but... eve

Re: [iText-questions] enabled_form_prefilled.pdf (f rom FAQ) breaks after one save

2008-11-06 Thread Darren
Bruno Lowagie lowagie.com> writes: > > Leonard Rosenthol wrote: > > Sorry I've been offline today with this issue... > > > > I'll look into it as well... > > I found the problem. > The fix will be in the next release. > br, > Bruno > > -

Re: [iText-questions] a question

2008-11-06 Thread Alexis Pigeon
Hello Thierry, On 06/11/2008, Thierry Maire <[EMAIL PROTECTED]> wrote: > > Hello, > > i would like to download iText but which version may i use ? > - iText core > - iText RTF > - iText RUPS > It all depends on what you want to do with it. I guess you are most likely to want to create or manipula

[iText-questions] Use a table is the better way, in this case?

2008-11-06 Thread Mirco Piccin
Hi all. Maybe a silly question. I need to produce a PDF structured as exampled in the image attached (example.jpg). I'm a newbie with iText (and to be honest, also with java ... :-D). I'm doing the job in this way: create a table, set property of table create cell, set content and property of ce

Re: [iText-questions] a question

2008-11-06 Thread 1T3XT info
Thierry Maire wrote: > Hello, > > i would like to download iText but which version may i use ? > - iText core > - iText RTF > - iText RUPS These aren't different versions. iText core is the core library. iText RTF needs iText core and adds RTF functionality. iText RTF needs iText core and can be

[iText-questions] a question

2008-11-06 Thread Thierry Maire
Hello, i would like to download iText but which version may i use ? - iText core - iText RTF - iText RUPS Thanks for answer ... Best regards. Thierry - This SF.Net email is sponsored by the Moblin Your Move Deve

Re: [iText-questions] Retrieve element position when creating PDF document

2008-11-06 Thread nicolas DOS SANTOS
Hi Here is a little sample of what I want to do. The principle: - create a link in a PDF, - create an anchor in another PDF - Concatenate the 2 PDFs and have the link that points to the anchor . Unfortunately, this does not work because the anchor is not in the same file that the link It may be l