[iText-questions] PDF file does not generate from byte array

2010-07-12 Thread pa7751
Hi I have a requirement to generate a pdf file in the file system from a byte array. The input is an html string. The pdf that is generated is corrupted and acrobat does not open it. Below is my code. Also attached the file. Could anyone please suggest what is it that I am doing wrong: * public*

Re: [iText-questions] iText5 Upgrad Resulting in No Message Found Exceptions

2010-07-12 Thread Paulo Soares
Wouldn't be better to make it work first with the official jar? That one works and has all the resources in the right places. Paulo - Original Message - From: 1T3XT info To: Post all your questions about iText here Sent: Monday, July 12, 2010 7:31 PM Subject: Re: [iText-quest

Re: [iText-questions] iText5 Upgrad Resulting in No Message Found Exceptions

2010-07-12 Thread 1T3XT info
Ed M wrote: > Thanks for the quick response. > > Which language files are you referring to and where should they go? These: http://itext.svn.sourceforge.net/viewvc/itext/trunk/src/core/com/itextpdf/text/error_messages/ So you need to include *.lng files in directory com/itextpdf/text/error_mes

Re: [iText-questions] iText5 Upgrad Resulting in No Message Found Exceptions

2010-07-12 Thread Ed M
Thanks for the quick response. Which language files are you referring to and where should they go? I did notice the Helvetica AFM files were located at the root of my iText jar file, so I am moving them to the com.itextpdf.pdf.fonts folder. I believe this is where they belong? Ed M -- View

Re: [iText-questions] Blank page

2010-07-12 Thread Ed M
Alexis, You mentioned that Alexis Pigeon wrote: > the jump from 2.x to 5.x will imply some refactoring in > your existing code, it's no drop-in upgrade. Can you elaborate more on > what refactoring might not be obvious when upgrading? I changed my source code imports references to reflect "itex

Re: [iText-questions] '>' not expected at file pointer 558

2010-07-12 Thread 1T3XT info
Andreas Ebbert-Karroum wrote: > I've now patched the current trunk, it works for me with my limited > understanding of PDF, etc. Maybe you want to consider it. Certainly! Thanks for the patch. I'll try having a look at it tomorrow. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ -

Re: [iText-questions] iText5 Upgrad Resulting in No Message Found Exceptions

2010-07-12 Thread 1T3XT info
McGee, Edwin F. Sr. wrote: > I recently pulled some old code out of storage which previously ran > under iText 1.4. I modified my code to recognize the new package > structure "itextpdf" rather than "lowagie" but when I attempt to execute > even the simplest "Hello World" code, I constantly get

Re: [iText-questions] object level document analyis of PDF files

2010-07-12 Thread Leonard Rosenthol
Unless the PDF producer used marked content operators to delineate the chart (as is done by Adobe's applications), then you are correct - there is no easy way to do it. You will need to create your own heuristics. Leonard -Original Message- From: sal salaimani [mailto:newoutlo...@yahoo

[iText-questions] iText5 Upgrad Resulting in No Message Found Exceptions

2010-07-12 Thread McGee, Edwin F. Sr.
I recently pulled some old code out of storage which previously ran under iText 1.4. I modified my code to recognize the new package structure "itextpdf" rather than "lowagie" but when I attempt to execute even the simplest "Hello World" code, I constantly get the "No message found for l.not.f

Re: [iText-questions] '>' not expected at file pointer 558

2010-07-12 Thread Andreas Ebbert-Karroum
Hi, Am 12.07.2010 14:00, schrieb 1T3XT info: > Andreas Ebbert-Karroum wrote: > >> Not sure if this is still of interest to the others, who are subscribed >> to the mailing list/group. I hope I don't annoy anybody. With the >> knowledge, I could now probably fix that particular document, but >>

Re: [iText-questions] object level document analyis of PDF files

2010-07-12 Thread sal salaimani
Bruno wrote: I think it's feasible to extend the available parser functionality. In the book, there's an example that draws a rectangle that contains all the text on a page. There is no such functionality (yet) to get the bounding rectangle of a shape, but it should be doable with some extra prog

Re: [iText-questions] how to put multi pages onto one?

2010-07-12 Thread oyster
thanks I translate your code into python as following in a few minutes :) ''' * This class is part of the book "iText in Action - 2nd Edition" * written by Bruno Lowagie (ISBN: 9781935182610) * For more info, go to: http://itextpdf.com/examples/ * This example only works with the AGPL version

Re: [iText-questions] Recompressing the iText PDF library jar

2010-07-12 Thread Andreas Kuehne
Hi Marko, did you try proGuard ( http://proguard.sourceforge.net/downloads.html ) ? This is an impressive compression tool for jars. Our applet using iText source shrinked dramatically ( 2 MB -> 90KB ). This ratio will usually be less in other usage scenarios, but I would guess 5% will be bea

Re: [iText-questions] Creating TextFields in Itext 5.0

2010-07-12 Thread 1T3XT info
Anil Kumar wrote: > Hello, > > Can anyone pls let me know the best way to create text fields. I am > required to create plenty of them in a PDF page. The easiest way is to use the TextField class as described in "iText in Action". > One more problem is that iam not able to place them besides S

Re: [iText-questions] '>' not expected at file pointer 558

2010-07-12 Thread 1T3XT info
Andreas Ebbert-Karroum wrote: > Not sure if this is still of interest to the others, who are subscribed > to the mailing list/group. I hope I don't annoy anybody. With the > knowledge, I could now probably fix that particular document, but > there's the risk, that the next document will show the

Re: [iText-questions] '>' not expected at file pointer 558

2010-07-12 Thread Andreas Ebbert-Karroum
Am 12.07.2010 10:48, schrieb Andreas Ebbert-Karroum: > > >endbfchar > endcmap CMapName currentdict /CMap defineresource pop end end > D > ><00p > > The byte array has a length of 561 and the error occurs after reading > byte 558. When I look into the sources of PRTokeniser, this looks > surprisin

[iText-questions] Creating TextFields in Itext 5.0

2010-07-12 Thread Anil Kumar
Hello, Can anyone pls let me know the best way to create text fields. I am required to create plenty of them in a PDF page. One more problem is that iam not able to place them besides Static text. Thanks, Anil. -- This

Re: [iText-questions] '>' not expected at file pointer 558

2010-07-12 Thread Andreas Ebbert-Karroum
Hi, Am 12.07.2010 09:47, schrieb 1T3XT info: >> I'm getting the error message as I posted in the stack trace. How >> can I analyze from that, what particular part is causing that error? >> > > How can I tell? > > Look inside the PDF document. > Maybe this helps: I've debugged into P

Re: [iText-questions] '>' not expected at file pointer 558

2010-07-12 Thread Andreas Ebbert-Karroum
Hi, Am 12.07.2010 09:47, schrieb 1T3XT info: > Andreas Ebbert-Karroum wrote: > >> Maybe? >> > You'll have to check. > > I'd love to :) I already installed a trial version of Adobe Acrobat Pro. There's a content tool in Acrobat which allowed me to delete some parts of the document,

Re: [iText-questions] '>' not expected at file pointer 558

2010-07-12 Thread 1T3XT info
Andreas Ebbert-Karroum wrote: > Maybe? You'll have to check. > I'm getting the error message as I posted in the stack trace. How > can I analyze from that, what particular part is causing that error? > How can I tell? Look inside the PDF document. > Happy to try the snapshot. I'm currently ch

Re: [iText-questions] '>' not expected at file pointer 558

2010-07-12 Thread Andreas Ebbert-Karroum
Hi, Am 12.07.2010 09:16, schrieb 1T3XT info: > Is this about inline images? > Maybe? I'm getting the error message as I posted in the stack trace. How can I analyze from that, what particular part is causing that error? > Is this about a font dictionary that can't be parsed? > How can I t

Re: [iText-questions] '>' not expected at file pointer 558

2010-07-12 Thread 1T3XT info
Andreas Ebbert-Karroum wrote: > Hi, > > so far I have not received a reply to my question. If I can provide you > with more detail or background, what do you still need to know? Or has > the question already been answered somewhere? I'm also willing to patch > iText myself, when I get a rough h

Re: [iText-questions] '>' not expected at file pointer 558

2010-07-12 Thread Andreas Ebbert-Karroum
Hi, so far I have not received a reply to my question. If I can provide you with more detail or background, what do you still need to know? Or has the question already been answered somewhere? I'm also willing to patch iText myself, when I get a rough hint how and where. We're currently blocke