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*
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
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
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
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
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/ -
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
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
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
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
>>
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
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
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
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
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
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
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
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
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,
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
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
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
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
23 matches
Mail list logo