Hello,
There are a lot of confusions about HTMLWorker class of iTextSharp. Many people
are creating new libraries out of it and they don't know:
- It's obsolete
- It won't be maintained (correct me if I'm wrong)
- It's replaced with xml worker.
So its better to use the Obsolete attribute and
On 28/05/2012 10:11, alavyk wrote:
ColumnText and program reports an exception
java.lang.IllegalArgumentException: Element not allowed.
What are other options to display output from the XMLWorkerHelper me a
position on the pdf.
Yes, XML Worker passes objects that are interesting (such as the
Hello
I need help with the transition from the functionality class HTMLWorker to
XMLWorkerHelper class functionality. In HTMLWorker I selected my position on
display pdf output using html code ColumnText, but using XMLWorkerHelper
ColumnText and program reports an exception
Hi ,
I have a HTML code snippet which contains table in which the columns
contain Arabic text.
after rendering the html snippet by HTMLWorker class the resulting
element
is instance of a PdfPTable which is shown in the pdf file but the text
direction is from left to right.
i have tried with
On 2/11/2011 12:32, Abdelaziz Fitouri wrote:
I have a HTML code snippet which contains table in which the columns
contain Arabic text.
after rendering the html snippet by HTMLWorker class the resulting
element
is instance of a PdfPTable which is shown in the pdf file but the text
direction is
);
}
}
}
}
From: Abdelaziz Fitouri a...@picosoft.biz
To: itext-questions@lists.sourceforge.net
Sent: Wednesday, November 2, 2011 3:02 PM
Subject: [iText-questions] HTMLWorker and arabic direction RTL
Hi ,
I have a HTML code snippet which contains table
in which the columns
contain Arabic text.
after rendering
Thank you for your reply; i will try this.
De :Vahid Nasiri vahid_nas...@yahoo.com
A : Post all your questions about iText here
itext-questions@lists.sourceforge.net
Date : 02/11/2011 16:35
Objet : Re: [iText-questions] HTMLWorker and arabic direction RTL
Hello,
This should fix
I am using C# of iText version 5.0.6 and am having problem with using
HtmlWorker. Here is a very simple HTML I created:
html
body
div id=dvText runat=server
table border=1
trtd colspan=2This is a test of iTextSharp using
HTMLWorker/td/tr
Not that my comment will solve your problem but:
The iText 5.0.6 java version seems to have the same behaviour with your html
snippets, except that the border is only shown on the left edge and has the
height of the table, but no text in the cell.
On 23/02/2011 16:47, George Arpajian
It seems that 'padding-left' was fixed in 5.0.6 :
http://www.itextpdf.com/history/index.php?branch=50node=506
Maybe this is a similar issue. In the (old) version of iText I'm using, I
can't get margin-left to work either. I tried changing the markup to use
padding-left and that didn't work
Op 23/01/2011 3:31, Keith O schreef:
i checked the SVN for both the .NET and Java versions, the string
'img_provider' is hard-coded. so even if i did remember this, a typo would
kill the code. is there any way a constant or enum can be added for this
value? (and for the other interfaces
Date: Tue, 25 Jan 2011 13:05:35 +0100
From: i...@1t3xt.info
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] HTMLWorker / ImageProvider implementation
Op 23/01/2011 3:31, Keith O schreef:
i checked the SVN for both the .NET and Java versions, the string
hi,
last night i was experimenting with the HTMLWorker to parse some HTML generated
by ASP.NET. as the book makes clear you need absolute URLs when dealing with
images. so i implemented ImageProvider as suggested on pgs 309 and 311. the
problem was that i used a random key for the
+1 Good one. I concur. It is a good practice to define these values as
public constants in the API.
On Sat, Jan 22, 2011 at 9:31 PM, Keith O kuuji...@hotmail.com wrote:
hi,
last night i was experimenting with the HTMLWorker to parse some HTML
generated by ASP.NET. as the book makes clear
Hi all, sorry if this is slightly out of context but I posted it to the
iTextSharp mailing list and I got an automatic response which redirected me
to this more generic list. I'm probably doing something stupid but I cannot
let the HtmlWorker parser create a PDF output from a very simple HTML
]
Sent: Wednesday, December 15, 2010 9:50 AM
To: iText-questions@lists.sourceforge.net
Subject: [iText-questions] HtmlWorker newbie question
Hi all, sorry if this is slightly out of context but I posted it
to the iTextSharp mailing list and I got
Thank you, it did it :)
From: Mark Storer [mailto:msto...@autonomy.com]
Sent: mercoledì 15 dicembre 2010 18:58
To: Post all your questions about iText here
Subject: Re: [iText-questions] HtmlWorker newbie question
You need to close() the document when you're finished adding things
Hello Samuli Tuomola
You are not the only one how missed it. but I needed it in C#.
So I changed Your code to c# and it works. Thanks a lot
here the C# code:
in Htmlworker.cs
line 530
//--
System.Collections.ArrayList CellWidths = new
System.Collections.ArrayList();
Hello
I noticed the HTMLWorker does not support lettered lists. I needed them and
discovered the following change did the job for me:
if (tag.equals(ol)) {if (pendingLI)
endElement(li);skipText = true;
Sorry for the bad layout, another attempt:
if (tag.equals(ol)) {
if (pendingLI)
endElement(li);
skipText = true;
cprops.addToChain(tag, h);
com.lowagie.text.List list = new
, 2008 2:48 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] HTMLWorker - table cell width
There's no workaround, it's just not there the feature. It was not needed
initially and later I had other things to do.
Paulo
- Original Message -
From: Ziga
Hi,
I have the following HTML code:
p style=margin-left: 40pxindented/p
The margin left style doesn't seem to be parsed by HTMLWorker, so the
paragraph isn't indented as expected.
Anyone knows how to patch htmlworker to make this work?
Hi, i'm using HTMLWorker to convert some HTML to PDF.
The problem is that HTMLWorker is not supporting RowSpan. I readed in
some post that HTMLWorker was created before rowspan support.
I modified the class com.lowagie.text.html.simpleparser.IncCell adding
next code after the colspan check in
I have problems to print an html table. The problem is that the iText Class
HTMLWorker doesn´t recognize the rowspan atribute of the td elements.
Can somebody help me?
--
View this message in context:
http://old.nabble.com/HTMLWorker---Problems-with-Rowspan-tp26372248p26372248.html
Sent from
fabripautasso wrote:
I have problems to print an html table. The problem is that the iText Class
HTMLWorker doesn´t recognize the rowspan atribute of the td elements.
Can somebody help me?
HTMLWorker predates rowspan support. Support for rowspan in HTMLWorker
would involve further
I have a related question.
If the element is a paragraph (p), then you could use SpacingAfter to create
the desired white space after the paragraph. Something like this:
//--
ArrayList elementList = HTMLWorker.ParseToList(strReader, theStyleSheet);
Okay, answered my own question (sorry, I'm new to iText - I just downloaded
it today).
Because you can tell the type of each element you parse, then you can set
the spacing under a paragraph by simply using SpacingAfter:
//--
ArrayList elementList =
Hi Rahul,
2009/5/22 Rahul Anand rahul_an...@hotmail.com
*Resending, Please anybody help me resolving this, This is really
important for the project right now.*
You sent your messages respectively at 21.45 and 03.47 european time, and
that would be more or less 02.45 and 08.47 in Northern
Rahul Anand wrote:
*Resending, Please anybody help me resolving this, This is really
important for the project right now.*
It's the first time I see your post, so I don't know to which forum
you've sent it the first time.
http://www.myhost.com/content/static/images/Special Synopsis
Hi,
I'm using HTMLWorker to parse a html page into a pdf. I have the following img
tag in my html page
img id=staticFile alt=static file
src=http://www.myhost.com/content/static/images/Special Synopsis
Images/Syn.jpg /
but for some how i'm getting the following exception.
Resending, Please anybody help me resolving this, This is really important for
the project right now.
Hi,
I'm using HTMLWorker to parse a html page into a pdf. I have the following img
tag on my html page
img id=staticFile alt=static file
Pauli Borodulin wrote:
Is there any reason why not replace the call
currentParagraph = FactoryProperties.createParagraph(h);
in the above p tag processing with
currentParagraph = FactoryProperties.createParagraph(cprops);
I changed the code in the SVN repository so that p is
Rahul Anand wrote:
Hi Guys,
I'm trying to create a PDF using HTMLWorker, but the problem is, the
generated pdf is not showing the blue color and underline for any hyperlink.
The blue color and underline are defaults in most browsers, but... if
they are not defined in the styles, they
Hi Guys,
I'm trying to create a PDF using HTMLWorker, but the problem is, the generated
pdf is not showing the blue color and underline for any hyperlink.
Below is my code :
import java.io.FileOutputStream;
import java.io.FileReader;
import java.util.ArrayList;
import
Pauli Borodulin wrote:
Is there any reason why not replace the call
currentParagraph = FactoryProperties.createParagraph(h);
in the above p tag processing with
currentParagraph = FactoryProperties.createParagraph(cprops);
The major difference I see, is that
--- On Sun, 4/5/09, Pauli Borodulin pauli.borodu...@uta.fi wrote:
From: Pauli Borodulin pauli.borodu...@uta.fi
Since iText's HTMLWorker doesn't add any margin
after p elements while
web browsers by default do, I tried adding some using
StyleSheet object:
Hi!
Harakiri wrote:
Change the code of HTMLWorker - its not implemented correctly (depending on
your viewpoint =) - simply change the above code to
[...]
// create newline for P
currentParagraph.add(factoryProperties.createChunk(\n,
cprops));
[...]
Err...
--- On Mon, 4/6/09, Pauli Borodulin pauli.borodu...@uta.fi wrote:
From: Pauli Borodulin pauli.borodu...@uta.fi
Subject: Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements
To: harakiri...@yahoo.com, Post all your questions about iText here
itext-questions
Harakiri wrote:
[...]
i showed you how you can by default add a new line - this is exactly
what browsers do
If I read it correctly, the example showed how to add a new line in the
beginning of every paragraph. Based on my knowledge on web browsers, the
margin/spacing should be after each
Heya!
Since iText's HTMLWorker doesn't add any margin after p elements while
web browsers by default do, I tried adding some using StyleSheet object:
HTMLWorker hWorker = new HTMLWorker(doc);
StyleSheet styles = new StyleSheet();
styles.loadTagStyle(p, after, 10);
pickm wrote:
Which Chunk? I am generically changing all fonts that come out of the
HTMLWorker, but when the element that comes out is a PdfPTable, the
chunk.size() is zero. I have also tried to dig into the table, and the
rows, and use the getCells() method, but that throws a null pointer.
Any ideas on how to change the font in a PdfPTable after it has been created?
Is there a way to iterate through it and access each cell?
I attempted to use the newer getCells() method in PdfPRow, and then change
the font of the phrases, but that did not work.
Is there an example in the book
You'll to change the font in the Chunk.
Paulo
-Original Message-
From: pickm [mailto:picke...@hotmail.com]
Sent: Monday, March 02, 2009 1:51 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] HTMLWorker tables and fonts
Any ideas on how to change
-questions] HTMLWorker tables and fonts
Any ideas on how to change the font in a PdfPTable after it
has been created?
Is there a way to iterate through it and access each cell?
I attempted to use the newer getCells() method in PdfPRow,
and then change
the font of the phrases
I have a tried a couple different things, and I didn't find anything specific
in the mailing list.
I am parsing HTML text into a PDF and I want to change all fonts to be the
same. for most elements coming from HTMLWorker, I simply iterate through
the Chunks and
Hi Guys,
I've been working on this problem off and on for the last few weeks and no
matter what I do I still end up with a problem one way or another. I've
tried using dom4j and their testCrunch example on
http://www.dom4j.org/apidocs/org/dom4j/io/HTMLWriter.html to compress html
code. The
Dominic Maricic wrote:
Hi Guys,
I've been working on this problem off and on for the last few weeks and no
matter what I do I still end up with a problem one way or another.
I've looked at SimpleXMLParser, added some lines telling the parser to
ignore whitespace, and I think you're problem
I'll download the SVN version and let you know how it goes.
Thanks again,
Dominic
1T3XT info wrote:
Dominic Maricic wrote:
Hi Guys,
I've been working on this problem off and on for the last few weeks and
no
matter what I do I still end up with a problem one way or another.
I've
Hamilton, Ken wrote:
Does the ColumnText object handle the objects
differently?
Yes, there's a huge difference, and that's probably why it works for
document.add(), but not for ColumnText.go(). I didn't have the time to
test the problem yet (maybe it can be solved, but I'd have to dig into
Thanks. I'll focus on a workaround for now.
-Original Message-
From: 1T3XT info [mailto:i...@1t3xt.info]
Sent: Wednesday, January 28, 2009 4:24 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] HTMLWorker problem with ColumnText
Hamilton, Ken wrote:
Does
my posting that is causing a delay.
-Original Message-
From: Hamilton, Ken
Sent: Friday, January 23, 2009 9:39 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] HTMLWorker problem with ColumnText
I have an HTML snippet that looks like this:
olliTEST 1 tabletrtdTEST
I've never used either but I'll definitely check them out, thanks!
Dominic
1T3XT info wrote:
Dominic Maricic wrote:
There's no way to use another program to parse the html and the
insert it into a PdfPTable right?
I don't see the problem. In my applications I usually use dom4j to
I have an HTML snippet that looks like this:
olliTEST 1 tabletrtdTEST 2/td/tr/table/liliTEST
3/li/ol
I process it through HTMLWorker like this:
StringReader HTMLreader = new StringReader(concatDesc);
try{
ArrayListElement x = iTextHTMLWorker.parseToList(HTMLreader,null);
IteratorElement
Wow! In all this time, I never considered that HTMLWorker would be working
any differently than a browser would (which ignores all white space outside
of tags). So basically all white space between tags must be eliminated.
That's what I'll have to rework our editor for then, thanks! I did not
Dominic Maricic wrote:
I did not find
this noted in the book or anywhere else online. Did I miss something?
p459: You typically won’t use HtmlWorker to parse complete HTML files
with an html, head, and body tag, but rather to parse small
snippets of HTML.
I don’t say it’s good design, but I
I actually did read that, that's why I wrote in the last email By the way,
the HTMLWorker only generates about 10% of the content within the program.
The rest is all using normal Chunks, Paragraphs, etc.
I have exactly what you said, a few fields that users can input html and
then that gets
Dominic Maricic wrote:
There's no way to use another program to parse the html and the
insert it into a PdfPTable right?
I don't see the problem. In my applications I usually use dom4j to
preprocess the XML/HTML and I tell dom4j to remove the ignorable
whitespace. Another possibility would be
Dominic Maricic wrote:
As I mentioned before, sorry about not working through an example better.
You got a second chance to correct this, but:
I remember why I switched to instead of p
There's a tag missing in the above sentence.
Are you using a webform to post your mail?
It's as if the
Thanks for the quick response.
It seems the attachments went under your reply (I have to click show quoted
text to see them). I am using NABBLE to respond which I think is what caused
that and my tags to disappear. I think the issue will be clear when you see
these. Here are the two files (used
As I mentioned before, sorry about not working through an example better.
I remember why I switched to instead of p, now that I switched back to
fix the alignment issue, I'm running into the same problem. Using your code
below, I ran the attached html file and got the attached pdf out. Notice
Dominic Maricic wrote:
Hi Guys,
I'm using HTMLWorker to parse html and seem to be able to get almost
everything to work except for alignment. The editor I'm using generates
alignment as below. I couldn't figure out what the change with loadTagStyle
to get this to work. What am I missing?
I
Hi Guys,
I'm using HTMLWorker to parse html and seem to be able to get almost
everything to work except for alignment. The editor I'm using generates
alignment as below. I couldn't figure out what the change with loadTagStyle
to get this to work. What am I missing?
p align=centerCenter Me/p
Hi Damon,
To work around this create multiple dummy columns within your HTML table and
use the 'colspan' attribute to format the output of your table.
For example:
table
tr
tdnbsp;/td
tdnbsp;/td
tdnbsp;/td
tdnbsp;/td
Damon Getsman wrote:
Andrea, I'm trying to work on a project where I need to generate a PDF
Table from html table format, also, but I'm having a really hard time
finding definitive guidelines on how to get the functionality that I
need. I haven't even been able to dig up any decent code
Andrea Conti wrote:
I am trying
to format an html table using the htmlworker. When I use the
ParseToList it brings the whole table in as one object. The problem I
get with this is that the two columns are 50% each regardless of how I
set them up in the html table (TDs that are fixed
I am trying to format an html table using the htmlworker. When I use
the ParseToList it brings the whole table in as one object. The problem
I get with this is that the two columns are 50% each regardless of how I
set them up in the html table (TDs that are fixed width or percentage).
Andrea, I'm trying to work on a project where I need to generate a PDF Table
from html table format, also, but I'm having a really hard time finding
definitive guidelines on how to get the functionality that I need. I
haven't even been able to dig up any decent code using iText to give me an
Subject: Re: [iText-questions] HTMLWorker - table cell width
There's no workaround, it's just not there the feature. It was not needed
initially and later I had other things to do.
Paulo
- Original Message -
From: Ziga Janez [EMAIL PROTECTED]
To: Post all your questions about iText
Hi
I have a problem with htmlWorker.
I want to parse a html text like this : a part of my text isspan
style=text-decoration:underlineunderline/span
But in the pdf, the style is not apply.
After looking in the code the parser don't find style to apply.
I found in
Cell width is not supported in HTMLWorker.
Paulo
- Original Message -
From: Ziga Janez [EMAIL PROTECTED]
To: Post all your questions about iText here
itext-questions@lists.sourceforge.net
Sent: Friday, August 29, 2008 8:25 AM
Subject: [iText-questions] HTMLWorker - table cell width
questions about iText here
Subject: Re: [iText-questions] HTMLWorker - table cell width
Cell width is not supported in HTMLWorker.
Paulo
- Original Message -
From: Ziga Janez [EMAIL PROTECTED]
To: Post all your questions about iText here
itext-questions@lists.sourceforge.net
Sent
29, 2008 12:16 PM
Subject: Re: [iText-questions] HTMLWorker - table cell width
Hi,
any other tricks or hacks to control cell width?
I have tried with colspan, but in more complex HTML page I can not use this.
Žiga
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED
I know that HTMLWorker is not supposed to be an exhaustive HTML parser,
but I was wondering if there is a work around for the following: When
parsing in a table, rowspan attributes are not respected for TD elements.
That is, for the following,
table
tr
td rowspan=3foo/td
...
/table
Enrique Rojas wrote:
I have been looking high and low for a solution for this problem. The
underlines that are parsed from HTML via HTML worker is too low. It looked
like the line is drawn at the bottom limit of the font.
I tried extracting the underlined content and replacing it with chunks
You will have to loop through all the chunks in the element list check if
that chunk is underlined and then set the underline to your taste. Your
biggest problem will be eg tables/lists because the chunk is nested eg
table - row - cell - paragraph - chunk
list - listitem - chunk
a simple
Ernest Micklei wrote:
The implementation does detect the percentage suffix (%) but not px
After adding the statement below in class HTMLWorker, all worked fine.
if (txt.endsWith(px)){
return c;
}
I don't think your patch is correct.
The c that is passed is the
I have been looking high and low for a solution for this problem. The
underlines that are parsed from HTML via HTML worker is too low. It looked
like the line is drawn at the bottom limit of the font.
I tried extracting the underlined content and replacing it with chunks but
this breaks the HTML
Hi,
I am using the HTMLWorker to parse RSS feed entries.
Today, I got an unwanted NumberFormatException.
I traced it back to the static method lengthParse(String,int).
The implementation does detect the percentage suffix (%) but not px
After adding the statement below in class HTMLWorker, all
RM1X wrote:
I see that I can specify a *||*StyleSheet*||*, but
http://itext.ugent.be/library/api/com/lowagie/text/html/simpleparser/StyleSheet.html
is horribly sparse; which tag/key/value combinations are supported by
the loadTagStyle(str,str,str) function?
That part is currently
There are several examples in the mailing list.
Paulo
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of 1T3XT info
Sent: Tuesday, February 12, 2008 8:13 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] HTMLWorker
|*Hi ITexters,
reading through what's available online, I've managed to get
HTMLWorker to successfully parse HTML to PDF. It works alright! :)
I see that I can specify a *||*StyleSheet*||*, but
http://itext.ugent.be/library/api/com/lowagie/text/html/simpleparser/StyleSheet.html
is
Hello,
I am trying to parse a html string and print in pdf. When i try to
insert a table with half the width of the document, the document is
printed with the table taking the whole width of the document.
The html snippet is like this :
table border='1' style='width: 339px; height: 78px'
Please
Hello,
I am trying to parse a html string and print in pdf. When i try to
insert a table with half the width of the document, the document is printed
with the table taking the whole width of the document.
The html snippet is like this :
Niladri Bhattacharyya
Project CARAT
Hello,
I am trying to parse a html string and print in pdf. When i
try to insert a table with half the width of the document, the
document is printed with the table taking the whole width of the
document.
The html snippet is like this :
table border='1' style='width: 339px;
in this method? I can't find
any documentation.
-Original Message-
Message: 9
Date: Wed, 11 Jul 2007 16:05:36 +0200
From: Paul Jones [EMAIL PROTECTED]
Subject: [iText-questions] HTMLworker and Word strange behaviour
To: 'itext-questions@lists.sourceforge.net'
itext-questions
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Paul Jones
Sent: Wednesday, July 11, 2007 4:30 PM
To: 'itext-questions@lists.sourceforge.net'
Subject: Re: [iText-questions] HTMLworker and Word strange
behaviour (PaulJones)
I think
@lists.sourceforge.net
cc:
Assunto:Re: [iText-questions] HTMLWorker and Symbols
The font must be registered in FontFactory.
Paulo
- Original Message -
From: [EMAIL PROTECTED]
To: Post all your questions about iText here
itext-questions@lists.sourceforge.net
Sent
PROTECTED]
Enviado Por: [EMAIL PROTECTED]
27/06/2007 17:38
Favor responder a Post all your questions about iText here
Para: Post all your questions about iText here
itext-questions@lists.sourceforge.net
cc:
Assunto:Re: [iText-questions] HTMLWorker and Symbols
You
The font must be registered in FontFactory.
Paulo
- Original Message -
From: [EMAIL PROTECTED]
To: Post all your questions about iText here
itext-questions@lists.sourceforge.net
Sent: Thursday, June 28, 2007 8:10 PM
Subject: Re: [iText-questions] HTMLWorker and Symbols
Thanks Paulo
Hi.
My user create an html document using this symbol: rArr;. The
htmlworker didn't convert it, the pdf have nothing at that place.
How can include that symbols? It's possivel?
Thanks in advance!!!
Daniela-
This
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, June 27, 2007 1:53 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] HTMLWorker and Symbols
Hi.
My user create an html document
] HTMLWorker and Symbols
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, June 27, 2007 1:53 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] HTMLWorker and Symbols
Hi.
My user create
PROTECTED]
27/06/2007 11:47
Favor responder a Post all your questions about iText here
Para: Post all your questions about iText here
itext-questions@lists.sourceforge.net
cc:
Assunto:Re: [iText-questions] HTMLWorker and Symbols
-Original Message
robert engels wrote:
In general you should NEVER use concrete classes
when the interface suffices.
That's true, and we sin against this rule on many
places in iText. For the moment I uploaded the HashMap/Map
change. If I have the time to have a closer look at HTMLWorker
(also related to the
questions about iText here
itext-questions@lists.sourceforge.net
Sent: Saturday, May 26, 2007 11:05 AM
Subject: Re: [iText-questions] HTMLWorker image handling improvements
robert engels wrote:
In general you should NEVER use concrete classes
when the interface suffices.
That's true, and we sin
Having the ImageProvider interface allows for easy custom protocol
handling, and simple embedded image processing.
The code below is what we are doing in our custom 1.4.8 derivation.
Adding get/setImageProvider to HTMLWorker would be a better solution
than using the properties map.
In this
I'll keep the properties map instead of the get/setImageProvider to avoid
the proliferation of get/set methods.
Paulo
- Original Message -
From: robert engels [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: Saturday, May 26, 2007 6:51 PM
Subject: Re: [iText-questions
The attached files implement the discussed changes.
The DefaultImageProvider is not used since I was uncertain about the
image_path usage in cprops. I could not find anything that sets it,
but I am sure it is there for a reason. The original code is left the
startElement() to handle
-questions] HTMLWorker image handling improvements
(PauloSoares)
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click
Using HTMLWorker and dynamically providing images is a bit
cumbersome. Dynamic images are important when reducing maximum memory
uses, and having a catalog of available images for the user to select.
Currently, you need to do something similar to:
class MyImageProvider extends HashMap {
1 - 100 of 139 matches
Mail list logo