[iText-questions] HTMLWorker

2012-08-13 Thread Vahid Nasiri
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

Re: [iText-questions] HTMLWorker to XMLWorkerHelper

2012-05-29 Thread 1T3XT BVBA
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

[iText-questions] HTMLWorker to XMLWorkerHelper

2012-05-28 Thread alavyk
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

[iText-questions] HTMLWorker and arabic direction RTL

2011-11-02 Thread Abdelaziz Fitouri
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

Re: [iText-questions] HTMLWorker and arabic direction RTL

2011-11-02 Thread 1T3XT BVBA
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

Re: [iText-questions] HTMLWorker and arabic direction RTL

2011-11-02 Thread Vahid Nasiri
);     }     }     }     } 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

Re: [iText-questions] HTMLWorker and arabic direction RTL

2011-11-02 Thread Abdelaziz Fitouri
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

[iText-questions] HtmlWorker still buggy?

2011-02-23 Thread George Arpajian
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

Re: [iText-questions] HtmlWorker still buggy?

2011-02-23 Thread Balder
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

Re: [iText-questions] HTMLWorker : how to make it support margin-left

2011-02-23 Thread les2
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

Re: [iText-questions] HTMLWorker / ImageProvider implementation

2011-01-25 Thread 1T3XT BVBA
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

Re: [iText-questions] HTMLWorker / ImageProvider implementation

2011-01-25 Thread Keith O
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

[iText-questions] HTMLWorker / ImageProvider implementation

2011-01-22 Thread Keith O
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

Re: [iText-questions] HTMLWorker / ImageProvider implementation

2011-01-22 Thread Nurettin DAG
+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

[iText-questions] HtmlWorker newbie question

2010-12-15 Thread Daniele Fusi
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

Re: [iText-questions] HtmlWorker newbie question

2010-12-15 Thread Mark Storer
] 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

Re: [iText-questions] HtmlWorker newbie question

2010-12-15 Thread Daniele Fusi
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

Re: [iText-questions] HTMLWorker - table cell width for c#

2010-06-17 Thread karl56
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();

[iText-questions] HTMLWorker and support for lettered lists

2010-04-16 Thread Joke Pol
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;

Re: [iText-questions] HTMLWorker and support for lettered lists

2010-04-16 Thread Joke Pol
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

Re: [iText-questions] HTMLWorker - table cell width

2010-03-04 Thread Samuli Tuomola
, 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

[iText-questions] HTMLWorker : how to make it support margin-left

2010-02-08 Thread lixoaqui
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?

[iText-questions] HTMLWorker support for ROWSPAN - Modifying IncCell.java

2009-12-07 Thread Sebastian Ariel Cortes
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

[iText-questions] HTMLWorker - Problems with Rowspan

2009-11-16 Thread fabripautasso
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

Re: [iText-questions] HTMLWorker - Problems with Rowspan

2009-11-16 Thread 1T3XT info
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

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-06-12 Thread danparks
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);

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-06-12 Thread danparks
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 =

Re: [iText-questions] HTMLWorker throwing exception not a recognized imageformat

2009-05-22 Thread Alexis Pigeon
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

Re: [iText-questions] HTMLWorker throwing exception not a recognized imageformat

2009-05-22 Thread 1T3XT info
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

[iText-questions] HTMLWorker throwing exception not a recognized imageformat

2009-05-21 Thread Rahul Anand
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.

Re: [iText-questions] HTMLWorker throwing exception not a recognized imageformat

2009-05-21 Thread Rahul Anand
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

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-04-22 Thread 1T3XT info
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

Re: [iText-questions] HTMLWorker removing underline from href

2009-04-15 Thread 1T3XT info
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

[iText-questions] HTMLWorker removing underline from href

2009-04-13 Thread Rahul Anand
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

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-04-07 Thread 1T3XT info
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

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-04-06 Thread Harakiri
--- 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:

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-04-06 Thread Pauli Borodulin
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...

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-04-06 Thread Harakiri
--- 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

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-04-06 Thread Pauli Borodulin
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

[iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-04-05 Thread Pauli Borodulin
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);

Re: [iText-questions] HTMLWorker tables and fonts

2009-03-03 Thread 1T3XT info
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.

Re: [iText-questions] HTMLWorker tables and fonts

2009-03-02 Thread pickm
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

Re: [iText-questions] HTMLWorker tables and fonts

2009-03-02 Thread Paulo Soares
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

Re: [iText-questions] HTMLWorker tables and fonts

2009-03-02 Thread pickm
-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

[iText-questions] HTMLWorker tables and fonts

2009-02-26 Thread pickm
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

Re: [iText-questions] HTMLWorker Alignment

2009-02-07 Thread Dominic Maricic
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

Re: [iText-questions] HTMLWorker Alignment

2009-02-07 Thread 1T3XT info
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

Re: [iText-questions] HTMLWorker Alignment

2009-02-07 Thread Dominic Maricic
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

Re: [iText-questions] HTMLWorker problem with ColumnText

2009-01-28 Thread 1T3XT info
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

Re: [iText-questions] HTMLWorker problem with ColumnText

2009-01-28 Thread Hamilton, Ken
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

Re: [iText-questions] HTMLWorker problem with ColumnText

2009-01-26 Thread Hamilton, Ken
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

Re: [iText-questions] HTMLWorker Alignment

2009-01-24 Thread Dominic Maricic
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

[iText-questions] HTMLWorker problem with ColumnText

2009-01-23 Thread native.human
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

Re: [iText-questions] HTMLWorker Alignment

2009-01-22 Thread Dominic Maricic
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

Re: [iText-questions] HTMLWorker Alignment

2009-01-22 Thread 1T3XT info
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

Re: [iText-questions] HTMLWorker Alignment

2009-01-22 Thread Dominic Maricic
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

Re: [iText-questions] HTMLWorker Alignment

2009-01-22 Thread 1T3XT info
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

Re: [iText-questions] HTMLWorker Alignment

2009-01-21 Thread 1T3XT info
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

Re: [iText-questions] HTMLWorker Alignment

2009-01-21 Thread Dominic Maricic
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

Re: [iText-questions] HTMLWorker Alignment

2009-01-18 Thread Dominic Maricic
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

Re: [iText-questions] HTMLWorker Alignment

2009-01-16 Thread 1T3XT info
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

[iText-questions] HTMLWorker Alignment

2009-01-15 Thread Dominic Maricic
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

Re: [iText-questions] htmlworker html table parsing (for Andrea Conti)

2009-01-07 Thread sherm
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

Re: [iText-questions] htmlworker html table parsing (for Andrea Conti)

2008-12-16 Thread Andrea Conti
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

Re: [iText-questions] htmlworker html table parsing

2008-12-16 Thread Andrea Conti
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

[iText-questions] htmlworker html table parsing

2008-12-15 Thread Andrea Conti
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).

Re: [iText-questions] htmlworker html table parsing (for Andrea Conti)

2008-12-15 Thread Damon Getsman
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

Re: [iText-questions] HTMLWorker - table cell width

2008-09-01 Thread Ziga Janez
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

[iText-questions] htmlWorker style underline

2008-09-01 Thread Dorchies, Jean-Christophe
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

Re: [iText-questions] HTMLWorker - table cell width

2008-08-29 Thread Paulo Soares
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

Re: [iText-questions] HTMLWorker - table cell width

2008-08-29 Thread Ziga Janez
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

Re: [iText-questions] HTMLWorker - table cell width

2008-08-29 Thread Paulo Soares
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

[iText-questions] HTMLWorker: rowspan

2008-06-26 Thread Chris Bourke
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

Re: [iText-questions] HTMLWORKER parsed underlines too low

2008-03-06 Thread 1T3XT info
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

Re: [iText-questions] HTMLWORKER parsed underlines too low

2008-03-06 Thread porcupine
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

Re: [iText-questions] HTMLWorker cannot read 120px for width

2008-03-03 Thread 1T3XT info
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

[iText-questions] HTMLWORKER parsed underlines too low

2008-03-03 Thread Enrique Rojas
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

[iText-questions] HTMLWorker cannot read 120px for width

2008-03-02 Thread Ernest Micklei
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

Re: [iText-questions] HTMLWorker Stylesheets. Supported tag styles?

2008-02-12 Thread 1T3XT info
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

Re: [iText-questions] HTMLWorker Stylesheets. Supported tag styles?

2008-02-12 Thread Paulo Soares
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

[iText-questions] HTMLWorker Stylesheets. Supported tag styles?

2008-02-11 Thread RM1X
|*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

[iText-questions] HTMLWorker problem.

2007-11-27 Thread Bhattacharyya Niladri (KSFJ 311)
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

[iText-questions] HTMLWorker problem.

2007-11-26 Thread Bhattacharyya Niladri (KSFJ 311)
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

[iText-questions] HTMLWorker problem.

2007-11-26 Thread Bhattacharyya Niladri (KSFJ 311)
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;

Re: [iText-questions] HTMLworker and Word strange behaviour (Paul Jones)

2007-07-11 Thread Paul Jones
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

Re: [iText-questions] HTMLworker and Word strange behaviour (PaulJones)

2007-07-11 Thread Paulo Soares
-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

Re: [iText-questions] HTMLWorker and Symbols

2007-06-29 Thread mdcapurro
@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

Re: [iText-questions] HTMLWorker and Symbols

2007-06-28 Thread mdcapurro
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

Re: [iText-questions] HTMLWorker and Symbols

2007-06-28 Thread Paulo Soares
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

[iText-questions] HTMLWorker and Symbols

2007-06-27 Thread mdcapurro
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

Re: [iText-questions] HTMLWorker and Symbols

2007-06-27 Thread Paulo Soares
-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

Re: [iText-questions] HTMLWorker and Symbols

2007-06-27 Thread mdcapurro
] 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

Re: [iText-questions] HTMLWorker and Symbols

2007-06-27 Thread mdcapurro
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

Re: [iText-questions] HTMLWorker image handling improvements

2007-05-26 Thread Bruno Lowagie
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

Re: [iText-questions] HTMLWorker image handling improvements

2007-05-26 Thread Paulo Soares
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

Re: [iText-questions] HTMLWorker image handling improvements (Paulo Soares)

2007-05-26 Thread robert engels
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

Re: [iText-questions] HTMLWorker image handling improvements (PauloSoares)

2007-05-26 Thread Paulo Soares
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

[iText-questions] HTMLWorker code changes

2007-05-26 Thread robert engels
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

Re: [iText-questions] HTMLWorker image handling improvements (PauloSoares)

2007-05-26 Thread robert engels
-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

[iText-questions] HTMLWorker image handling improvements

2007-05-25 Thread robert engels
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   2   >